:root {
  --navy:      #0B1F3A;
  --navy-mid:  #122848;
  --navy-lt:   #1A3A5C;
  --gold:      #C9922A;
  --gold-lt:   #E8B96A;
  --gold-pale: #FDF3E3;
  --cream:     #FAFAF7;
  --white:     #FFFFFF;
  --border:    #D4C5A9;
  --border-lt: #EDE6D8;
  --text:      #1A1A2E;
  --muted:     #6B7280;
  --error:     #C0392B;
  --success:   #1A6B3A;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--navy);
  min-height: 100vh;
  color: var(--text);
  background-image:
    radial-gradient(ellipse 900px 700px at 0% 0%,   rgba(201,146,42,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 700px 600px at 100% 100%, rgba(26,58,92,0.6) 0%, transparent 70%);
}

/* ── HERO ── */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 50%, #0D2B4A 100%);
  padding: 60px 24px 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(201,146,42,0.2);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(201,146,42,0.04) 0px, rgba(201,146,42,0.04) 1px, transparent 1px, transparent 80px),
    repeating-linear-gradient(0deg,  rgba(201,146,42,0.04) 0px, rgba(201,146,42,0.04) 1px, transparent 1px, transparent 80px);
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 50px;
  background: linear-gradient(to bottom right, transparent 49%, var(--cream) 50%);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 4.5vw, 52px);
  color: var(--white);
  line-height: 1.18;
  margin-bottom: 16px;
  position: relative;
}
.hero h1 em {
  color: var(--gold-lt);
  font-style: italic;
}
.hero-sub {
  color: rgba(255,255,255,0.65);
  font-size: 15px;
  max-width: 580px;
  margin: 0 auto 36px;
  line-height: 1.75;
  font-weight: 300;
  position: relative;
}
.hero-sub strong { color: var(--gold-lt); font-weight: 500; }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  position: relative;
  max-width: 646px;
  margin: 0 auto;
}
.stat-item {
  padding: 12px 28px;
  border-right: 1px solid rgba(201,146,42,0.3);
  text-align: center;
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--gold-lt);
  font-weight: 700;
  line-height: 1;
}
.stat-label {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── FORM WRAPPER ── */
.form-outer {
  max-width: 820px;
  margin: -44px auto 64px;
  padding: 0 16px;
  position: relative;
  z-index: 2;
}
.form-card {
  background: var(--cream);
  border-radius: 24px;
  box-shadow:
    0 40px 100px rgba(0,0,0,0.45),
    0 0 0 1px rgba(201,146,42,0.15);
  overflow: hidden;
  animation: slideUp 0.6s cubic-bezier(.22,.68,0,1.2) both;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gold-bar {
  height: 4px;
  background: linear-gradient(90deg, var(--navy), var(--gold) 40%, var(--gold-lt) 70%, var(--gold));
}

.progress-wrap { height: 3px; background: var(--border-lt); }
.progress-fill {
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  width: 0%;
  transition: width 0.4s ease;
}

.form-inner { padding: 48px 52px; }
@media(max-width:620px){ .form-inner { padding: 28px 20px; } }

/* ── SECTION HEADER ── */
.section-hd {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 40px 0 22px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--border-lt);
}
.section-hd:first-child { margin-top: 0; }
.sec-num {
  width: 34px; height: 34px;
  background: var(--navy);
  color: var(--gold-lt);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}
.sec-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--navy);
  font-weight: 600;
}
.sec-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,146,42,0.35);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ── FIELD GRID ── */
.frow   { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.frow.one  { grid-template-columns: 1fr; }
.frow.three { grid-template-columns: 1fr 1fr 1fr; }
@media(max-width:580px){ .frow, .frow.three { grid-template-columns: 1fr; } }

.fg { display: flex; flex-direction: column; gap: 7px; }

label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
label .req { color: var(--error); margin-left: 2px; }
label .opt { font-weight: 400; color: var(--muted); text-transform: none; font-size: 11px; margin-left: 4px; letter-spacing: 0; }

input[type=text], input[type=email], input[type=tel],
select, textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,146,42,0.12);
}
input.err, select.err, textarea.err {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.1);
}
.ferr { font-size: 11px; color: var(--error); display: none; margin-top: 2px; }
.ferr.show { display: block; }

textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
select {
  cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9922A' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* ── CHECKBOX & RADIO ── */
.cb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 8px; }
.cb-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px;
  border: 1.5px solid var(--border-lt);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  background: var(--white);
  font-size: 13px;
  color: var(--text);
  user-select: none;
}
.cb-item:hover { border-color: var(--gold); background: var(--gold-pale); }
.cb-item.on { border-color: var(--gold); background: var(--gold-pale); font-weight: 600; color: var(--navy); }
.cb-item input[type=checkbox] {
  width: 15px; height: 15px; accent-color: var(--gold); cursor: pointer;
  flex-shrink: 0; border: none; padding: 0; box-shadow: none;
}

.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 18px;
  border: 1.5px solid var(--border-lt);
  border-radius: 30px;
  cursor: pointer;
  font-size: 13px;
  background: var(--white);
  transition: all 0.15s;
  user-select: none;
}
.radio-pill input { width: 14px; height: 14px; accent-color: var(--gold); cursor: pointer; flex-shrink:0; border:none; padding:0; box-shadow:none; }
.radio-pill:hover { border-color: var(--gold); background: var(--gold-pale); }
.radio-pill.on { border-color: var(--navy); background: var(--navy); color: white; font-weight: 600; }
.radio-pill.on input { accent-color: var(--gold-lt); }

.reveal-field {
  display: none;
  margin-top: 12px;
  padding: 14px 16px;
  background: var(--gold-pale);
  border: 1.5px solid rgba(201,146,42,0.35);
  border-radius: 10px;
}
.reveal-field label { text-transform: none; letter-spacing: 0; font-size: 12px; }

/* ── SUBMIT ── */
.submit-wrap {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.btn-submit {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lt) 100%);
  color: white;
  border: 2px solid var(--gold);
  padding: 15px 52px;
  border-radius: 50px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}
.btn-submit::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  opacity: 0;
  transition: opacity 0.25s;
}
.btn-submit:hover::before { opacity: 1; }
.btn-submit:hover { color: var(--navy); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201,146,42,0.4); }
.btn-submit span, .btn-submit svg { position: relative; z-index: 1; }
.btn-submit:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.privacy-note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  max-width: 460px;
  line-height: 1.6;
}
.privacy-note a { color: var(--gold); text-decoration: none; }

/* ── SUCCESS ── */
.success-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 80px 48px;
  text-align: center;
  gap: 18px;
}
.success-panel.show { display: flex; }
.success-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--navy), var(--navy-lt));
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px;
}
.success-panel h2 {
  font-family: 'Playfair Display', serif;
  font-size: 30px;
  color: var(--navy);
}
.success-panel p { color: var(--muted); font-size: 15px; max-width: 420px; line-height: 1.7; }
.ref-badge {
  background: var(--navy);
  color: var(--gold-lt);
  padding: 12px 28px;
  border-radius: 8px;
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  border: 1px solid var(--gold);
}

/* ── PHONE DIAL CODE ── */
.phone-wrap {
  position: relative;
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.phone-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,146,42,0.12);
}
.phone-wrap.err { border-color: var(--error) !important; box-shadow: 0 0 0 3px rgba(192,57,43,0.1) !important; }
.phone-wrap input[type=tel] {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 8px 8px 0;
  flex: 1;
  min-width: 0;
  padding-left: 10px;
}
.phone-wrap input[type=tel]:focus { border: none; box-shadow: none; }
.phone-dial-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 10px 9px 12px;
  background: none;
  border: none;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s;
  line-height: 1;
}
.phone-dial-btn:hover, .phone-dial-btn.open { background: var(--gold-pale); }
.phone-flag { font-size: 19px; line-height: 1; }
.phone-code { color: var(--navy); letter-spacing: 0.3px; }
.phone-chevron { color: var(--gold); flex-shrink: 0; transition: transform 0.2s; }
.phone-dial-btn.open .phone-chevron { transform: rotate(180deg); }
.phone-divider { width: 1px; height: 22px; background: var(--border); flex-shrink: 0; }
.phone-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  width: 300px;
  background: var(--white);
  border: 1.5px solid var(--gold);
  border-radius: 12px;
  box-shadow: 0 10px 32px rgba(0,0,0,0.16);
  z-index: 300;
  overflow: hidden;
}
.phone-dropdown.open { display: block; }
.phone-dd-search {
  width: 100%;
  padding: 10px 14px;
  border: none !important;
  border-bottom: 1.5px solid var(--border-lt) !important;
  border-radius: 0 !important;
  font-size: 13px;
  background: var(--gold-pale);
  outline: none;
  box-shadow: none !important;
}
.phone-dd-search:focus { background: var(--white); border-color: transparent !important; box-shadow: none !important; }
.phone-dd-list { max-height: 220px; overflow-y: auto; }
.phone-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  transition: background 0.1s;
}
.phone-dd-item:hover, .phone-dd-item.highlighted { background: var(--gold-pale); }
.phone-dd-item.selected { background: var(--navy); color: var(--white); }
.phone-dd-flag { font-size: 18px; flex-shrink: 0; line-height: 1; }
.phone-dd-name { flex: 1; }
.phone-dd-code { font-weight: 700; color: var(--gold); font-size: 12px; }
.phone-dd-item.selected .phone-dd-code { color: var(--gold-lt); }
.phone-dd-no-results { padding: 14px; text-align: center; font-size: 13px; color: var(--muted); }

/* ── SEARCHABLE SELECT ── */
.searchable-select { position: relative; }
.ss-input {
  cursor: pointer;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9922A' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.ss-input.open {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,146,42,0.12);
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  cursor: text;
}
.ss-input.err { border-color: var(--error); box-shadow: 0 0 0 3px rgba(192,57,43,0.1); }
.ss-dropdown {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: 0; right: 0;
  background: var(--white);
  border: 1.5px solid var(--gold);
  border-top-color: var(--border);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.14);
  z-index: 200;
  max-height: 240px;
  overflow-y: auto;
}
.ss-dropdown.open { display: block; }
.ss-group {
  padding: 6px 12px 3px;
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  background: var(--gold-pale);
  border-top: 1px solid var(--border-lt);
  position: sticky;
  top: 0;
}
.ss-group:first-child { border-top: none; }
.ss-option {
  padding: 9px 14px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.1s;
}
.ss-option:hover, .ss-option.highlighted { background: var(--gold-pale); color: var(--navy); }
.ss-option.selected { background: var(--navy); color: var(--white); font-weight: 600; }
.ss-no-results { padding: 16px 14px; font-size: 13px; color: var(--muted); text-align: center; }

/* ── FOOTER ── */
.form-footer {
  background: var(--navy);
  padding: 18px 52px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.form-footer span { font-size: 12px; color: rgba(255,255,255,0.4); }
.footer-brand {
  font-family: 'Playfair Display', serif;
  color: var(--gold-lt);
  font-size: 13px;
  font-weight: 600;
}
