/* ═══════════════════════════════════════════
   PORUTHAM FORM — site-matched styles
   Colors: #fa8907 orange · #2c241d dark brown
   ═══════════════════════════════════════════ */

/* ── Form card wrapper ── */
.pf-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(44,36,29,0.10);
  overflow: hidden;
  margin: 0 auto;
}

/* ── Top accent bar ── */
.pf-topbar {
  height: 4px;
  background: linear-gradient(90deg, #fa8907 0%, #ffb347 50%, #fa8907 100%);
  background-size: 200% 100%;
  animation: pf-shimmer 3s linear infinite;
}
@keyframes pf-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Header ── */
.pf-header {
  background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
  padding: 24px 20px 18px;
  text-align: center;
  border-bottom: 1px solid #fde8c8;
}
.pf-header-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, #fa8907, #ffb347);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  box-shadow: 0 4px 14px rgba(250,137,7,0.35);
}
.pf-header-icon svg { width: 26px; height: 26px; color: #fff; }
.pf-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #2c241d;
  margin: 0 0 4px;
}
.pf-subtitle {
  font-size: 0.82rem;
  color: #8a6a50;
}
.pf-divider {
  display: flex; align-items: center; gap: 8px;
  margin: 12px auto 0;
  max-width: 200px;
}
.pf-divider::before, .pf-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, #fa8907, transparent);
}
.pf-divider span { color: #fa8907; font-size: 0.75rem; }

/* ── Body ── */
.pf-body {
  padding: 20px 16px 24px;
}
@media (min-width: 640px) {
  .pf-body { padding: 24px 28px 32px; }
}

/* ── Two-col grid ── */
.pf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .pf-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
}

/* ── Person card ── */
.pf-person {
  border-radius: 14px;
  padding: 16px;
  border: 1.5px solid;
}
.pf-person-bride {
  background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
  border-color: rgba(250,137,7,0.25);
}
.pf-person-groom {
  background: linear-gradient(135deg, #f5f8ff 0%, #fff 100%);
  border-color: rgba(44,36,29,0.12);
}

/* ── Gender pill ── */
.pf-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px 4px 8px;
  border-radius: 99px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.pf-pill-bride {
  background: linear-gradient(135deg, #fff1e0, #fde0b8);
  color: #b35a00;
  border: 1px solid rgba(250,137,7,0.3);
}
.pf-pill-groom {
  background: linear-gradient(135deg, #e8f0ff, #d0e0ff);
  color: #1a3a7a;
  border: 1px solid rgba(26,58,122,0.18);
}
.pf-pill svg { width: 14px; height: 14px; }

/* ── Field label ── */
.pf-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #4a3222;
  margin-bottom: 5px;
  display: flex; align-items: center; gap: 4px;
}
.pf-label-dot {
  width: 5px; height: 5px;
  background: #fa8907;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

/* ── Field group ── */
.pf-field { margin-bottom: 12px; }
.pf-field:last-child { margin-bottom: 0; }

/* ── Inputs ── */
.pf-input {
  width: 100%;
  background: #fff;
  border: 1.5px solid #e8d5b8;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
  font-family: 'Noto Sans Malayalam', sans-serif;
  color: #2c241d;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  box-sizing: border-box;
}
.pf-input::placeholder { color: #c4a882; }
.pf-input:focus {
  border-color: #fa8907;
  box-shadow: 0 0 0 3px rgba(250,137,7,0.13);
}
/* Prevent iOS zoom */
@media (max-width: 640px) {
  .pf-input { font-size: 16px; padding: 13px 14px; }
}

/* ── 3-col row for date/time ── */
.pf-row3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

/* ── Custom select display ── */
.pf-sel-wrap { position: relative; }

.pf-sel-display {
  width: 100%;
  background: #fff;
  border: 1.5px solid #e8d5b8;
  border-radius: 10px;
  padding: 11px 30px 11px 12px;
  font-size: 13px;
  font-family: 'Noto Sans Malayalam', sans-serif;
  color: #2c241d;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
  outline: none;
  box-sizing: border-box;
  min-height: 44px;
  display: flex; align-items: center;
}
.pf-sel-display:hover,
.pf-sel-display:focus { border-color: #fa8907; box-shadow: 0 0 0 3px rgba(250,137,7,0.13); }

.pf-sel-arrow {
  position: absolute; right: 9px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #fa8907;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.pf-sel-display.open .pf-sel-arrow { transform: translateY(-50%) rotate(180deg); }

.pf-sel-opts {
  position: absolute;
  top: calc(100% + 3px); left: 0; right: 0;
  background: #fff;
  border: 1.5px solid #e8d5b8;
  border-radius: 10px;
  z-index: 9999;
  max-height: 190px;
  overflow-y: auto;
  display: none;
  box-shadow: 0 8px 24px rgba(44,36,29,0.13);
  scrollbar-width: thin;
  scrollbar-color: #fa8907 #fff8f0;
}
.pf-sel-opts.open { display: block; }

.pf-sel-opts::-webkit-scrollbar { width: 4px; }
.pf-sel-opts::-webkit-scrollbar-track { background: #fff8f0; }
.pf-sel-opts::-webkit-scrollbar-thumb { background: #fa8907; border-radius: 4px; }

.pf-opt {
  padding: 9px 12px;
  font-size: 13px;
  font-family: 'Noto Sans Malayalam', sans-serif;
  cursor: pointer;
  border-bottom: 1px solid #fdf0e0;
  color: #2c241d;
  transition: background 0.12s;
}
.pf-opt:last-child { border-bottom: none; }
.pf-opt:hover { background: #fff3e0; color: #fa8907; }
.pf-opt.active { background: #fff0d4; color: #fa8907; font-weight: 600; }

/* ── Place input wrapper ── */
.pf-place-wrap { position: relative; }
.pf-place-icon {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #fa8907;
}
.pf-place-icon svg { width: 16px; height: 16px; }

/* ── Place suggestions dropdown ── */
.pf-place-drop {
  position: absolute;
  top: calc(100% + 3px); left: 0; right: 0;
  background: #fff;
  border: 1.5px solid #e8d5b8;
  border-radius: 10px;
  z-index: 9999;
  display: none;
  box-shadow: 0 8px 24px rgba(44,36,29,0.13);
  overflow: hidden;
}
.pf-place-drop.open { display: block; }

.pf-place-search-wrap {
  padding: 8px;
  border-bottom: 1px solid #fde8c8;
  background: #fff8f0;
  position: sticky; top: 0;
}
.pf-place-search {
  width: 100%;
  border: 1.5px solid #e8d5b8;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
  font-family: 'Noto Sans Malayalam', sans-serif;
  box-sizing: border-box;
}
.pf-place-search:focus { border-color: #fa8907; }

.pf-place-list { max-height: 160px; overflow-y: auto; }
.pf-place-list::-webkit-scrollbar { width: 4px; }
.pf-place-list::-webkit-scrollbar-thumb { background: #fa8907; border-radius: 4px; }

.pf-place-opt {
  padding: 9px 14px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid #fdf0e0;
  transition: background 0.12s;
  font-family: 'Noto Sans Malayalam', sans-serif;
}
.pf-place-opt:hover { background: #fff3e0; }
.pf-place-opt strong { color: #2c241d; font-weight: 600; }
.pf-place-opt span { color: #9a6f4a; font-size: 11px; }

.pf-place-loading,
.pf-place-empty {
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: #9a6f4a;
}

/* ── Alert ── */
.pf-alert {
  margin: 12px 0 0;
  padding: 11px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  display: none;
}
.pf-alert.show { display: block; }
.pf-alert.error {
  background: #fff4f0; border: 1.5px solid #ffcbb0; color: #b84000;
}
.pf-alert.success {
  background: #f0fff4; border: 1.5px solid #a8e6bf; color: #1a6635;
}

/* ── Divider ── */
.pf-sep {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0 16px;
}
.pf-sep::before, .pf-sep::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, #fad8a0, transparent);
}
.pf-sep span { color: #fa8907; font-size: 0.75rem; }

/* ── Submit button ── */
.pf-submit-wrap { text-align: center; }

.pf-submit {
  background: linear-gradient(135deg, #fa8907 0%, #ffaa35 50%, #fa8907 100%);
  background-size: 200% 100%;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 14px 36px;
  font-size: 16px;
  font-family: 'Noto Sans Malayalam', sans-serif;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background-position 0.4s;
  box-shadow: 0 4px 18px rgba(250,137,7,0.38);
  width: 100%;
  max-width: 340px;
  position: relative;
  overflow: hidden;
}
.pf-submit::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 60%);
}
.pf-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(250,137,7,0.45);
  background-position: right center;
}
.pf-submit:active { transform: translateY(0); }
.pf-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.pf-submit-note {
  margin-top: 8px;
  font-size: 11px;
  color: #c4a882;
}

/* ── Spinner ── */
.pf-spinner {
  display: inline-block;
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pf-spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes pf-spin { to { transform: rotate(360deg); } }

/* ── Fade-in ── */
@keyframes pf-fadeup {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.pf-card { animation: pf-fadeup 0.45s ease both; }
