
:root {
  --navy:     #0B3D6B;
  --tide:     #1A6B9A;
  --teal:     #2ABFBF;
  --amber:    #E8A325;
  --amber-dk: #C98C1A;
  --sand:     #F5F1E8;
  --chalk:    #FFFFFF;
  --ink:      #1A2535;
  --muted:    #5E6E85;
  --border:   #D4DCE8;
  --err:      #D93526;
  --ok:       #1E9E6E;
  --shadow:   0 2px 16px rgba(11,61,107,.10);
  --shadow-lg:0 8px 40px rgba(11,61,107,.18);
  --radius:   10px;
  --radius-lg:16px;
}

*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--sand);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: var(--tide); }

/* ═══════════ NAV ═══════════ */
.nav {
  background: var(--navy);
  padding: 0 24px;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 16px rgba(0,0,0,.28);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo {
  font-family: 'DM Serif Display', serif;
  color: var(--chalk); font-size: 1.25rem;
  text-decoration: none; letter-spacing: -.4px;
}
.logo span { color: var(--teal); }
.nav-back {
  font-size: .82rem; color: rgba(255,255,255,.65);
  text-decoration: none; display: flex; align-items: center; gap: 6px;
  transition: color .15s;
}
.nav-back:hover { color: var(--teal); }
.nav-back::before { content: '←'; }

/* ═══════════ PAGE SHELL ═══════════ */
.page {
  min-height: calc(100vh - 60px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1100px;
  margin: 100px auto;
  gap: 0;
}

/* ═══════════ LEFT PANEL ═══════════ */
.panel-left {
  background: linear-gradient(160deg, var(--navy) 0%, var(--tide) 100%);
  padding: 64px 52px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
/* Signature: teal arc decoration */
.panel-left::after {
  content: '';
  position: absolute;
  bottom: -120px; right: -120px;
  width: 380px; height: 380px;
  border: 2px solid rgba(42,191,191,.18);
  border-radius: 50%;
  pointer-events: none;
}
.panel-left::before {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 220px; height: 220px;
  border: 2px solid rgba(42,191,191,.10);
  border-radius: 50%;
  pointer-events: none;
}
.panel-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(42,191,191,.15);
  border: 1px solid rgba(42,191,191,.30);
  color: var(--teal);
  font-size: .72rem; font-weight: 700;
  letter-spacing: 1.3px; text-transform: uppercase;
  padding: 6px 14px; border-radius: 100px;
  margin-bottom: 24px; width: fit-content;
}
.panel-left h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
  color: var(--chalk);
  line-height: 1.18;
  margin-bottom: 20px;
}
.panel-left h1 em {
  color: var(--teal); font-style: normal;
}
.panel-lead {
  color: rgba(255,255,255,.75);
  font-size: .98rem;
  line-height: 1.72;
  margin-bottom: 40px;
}

/* Promise list */
.promise-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.promise-list li {
  display: flex; align-items: flex-start; gap: 12px;
  color: rgba(255,255,255,.80);
  font-size: .90rem; line-height: 1.5;
}
.p-icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  background: rgba(42,191,191,.18);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  margin-top: 1px;
}

/* Panel bottom contact strip */
.panel-contact {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-direction: column; gap: 8px;
}
.panel-contact a {
  color: rgba(255,255,255,.60);
  font-size: .83rem;
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  transition: color .15s;
}
.panel-contact a:hover { color: var(--teal); }
.panel-contact .pc-icon { font-size: 1rem; }

/* ═══════════ RIGHT PANEL — FORM ═══════════ */
.panel-right {
  background: var(--chalk);
  padding: 56px 52px;
  display: flex;
  flex-direction: column;
}
.form-header { margin-bottom: 36px; }
.form-header h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem; color: var(--navy);
  line-height: 1.2; margin-bottom: 8px;
}
.form-header p { font-size: .9rem; color: var(--muted); }

/* ═══════════ FORM FIELDS ═══════════ */
.form-body { display: flex; flex-direction: column; gap: 22px; flex: 1; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: .2px;
}
.field label .req { color: var(--err); margin-left: 2px; }

.field input,
.field textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  color: var(--ink);
  background: var(--chalk);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 16px;
  width: 100%;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  -webkit-appearance: none;
}
.field select {
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  color: var(--ink);
  background: var(--chalk);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 13px 40px 13px 16px;
  width: 100%;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
  /* Keep native appearance so OS dropdown opens correctly */
  -webkit-appearance: auto;
  -moz-appearance: auto;
  appearance: auto;
  cursor: pointer;
}
.field input::placeholder,
.field textarea::placeholder { color: #A8B5C4; }
.field input:focus,
.field textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,191,191,.14);
}
.field select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,191,191,.14);
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

/* Select wrapper — no pseudo arrow, native OS dropdown handles it */
.select-wrap { position: relative; }

.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

/* ── INTERNATIONAL PHONE PICKER ── */
.phone-wrap { display: flex; gap: 0; position: relative; }

/* Country code dropdown trigger */
.country-btn {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 0 12px 0 14px;
  background: var(--sand);
  border: 1.5px solid var(--border);
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
  font-size: .88rem; color: var(--ink);
  font-family: 'DM Mono', monospace;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  min-width: 100px;
  transition: background .15s, border-color .15s;
}
.country-btn:hover { background: #E8E4DB; }
.country-btn.open { border-color: var(--teal); background: #E8F8F8; }
.country-btn .cb-flag { font-size: 1.1rem; line-height: 1; }
.country-btn .cb-dial { font-size: .82rem; }
.country-btn .cb-arrow { font-size: .62rem; color: var(--muted); margin-left: 2px; transition: transform .2s; }
.country-btn.open .cb-arrow { transform: rotate(180deg); }

/* Dropdown panel */
.country-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px); left: 0;
  width: 300px;
  background: var(--chalk);
  border: 1.5px solid var(--teal);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  overflow: visible;
}
.country-dropdown.open { display: flex; flex-direction: column; }

/* Search box inside dropdown */
.country-search {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.country-search input {
  border: none; outline: none;
  font-family: 'DM Sans', sans-serif;
  font-size: .88rem; color: var(--ink);
  background: transparent; width: 100%;
  padding: 0;
}
.country-search input::placeholder { color: #A8B5C4; }
.cs-icon { color: var(--muted); font-size: .9rem; flex-shrink: 0; }

/* Country list */
.country-list {
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.country-list::-webkit-scrollbar { width: 4px; }
.country-list::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.country-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px;
  cursor: pointer;
  font-size: .88rem; color: var(--ink);
  transition: background .12s;
}
.country-list li:hover, .country-list li.highlighted { background: #F0FCFC; }
.country-list li.selected { background: #E0F8F8; font-weight: 600; }
.cl-flag { font-size: 1.05rem; flex-shrink: 0; }
.cl-name { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.cl-dial { font-family: 'DM Mono', monospace; font-size: .78rem; color: var(--muted); flex-shrink: 0; }
.country-list .no-results { color: var(--muted); font-style: italic; cursor: default; }
.country-list .no-results:hover { background: none; }

/* Phone number input */
.phone-wrap input#phone {
  border-radius: 0 var(--radius) var(--radius) 0;
  flex: 1;
}
.phone-wrap input#phone:focus { z-index: 1; }

/* Validation states */
.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: var(--err);
  box-shadow: 0 0 0 3px rgba(217,53,38,.10);
}
.field.valid input,
.field.valid select,
.field.valid textarea {
  border-color: var(--ok);
}
.field-error {
  font-size: .78rem;
  color: var(--err);
  display: none;
  align-items: center;
  gap: 4px;
  min-height: 18px;
}
.field-error::before { content: '⚠ '; }
.field.invalid .field-error { display: flex; }

/* Char counter */
.field-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.char-count {
  font-family: 'DM Mono', monospace;
  font-size: .72rem;
  color: var(--muted);
}
.char-count.near { color: var(--amber-dk); }
.char-count.over  { color: var(--err); }

/* ═══════════ SUBMIT BUTTON ═══════════ */
.submit-btn {
  position: relative;
  background: var(--amber);
  color: var(--navy);
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  padding: 16px 32px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  width: 100%;
  margin-top: 6px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background .18s, transform .15s, box-shadow .18s;
  box-shadow: 0 4px 16px rgba(232,163,37,.30);
  overflow: hidden;
}
.submit-btn:hover:not(:disabled) {
  background: var(--amber-dk);
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(232,163,37,.40);
}
.submit-btn:active:not(:disabled) { transform: translateY(0); }
.submit-btn:disabled { opacity: .7; cursor: not-allowed; transform: none; }

.btn-text { transition: opacity .2s; }
.btn-spinner {
  display: none;
  width: 20px; height: 20px;
  border: 2.5px solid rgba(26,37,53,.25);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.submit-btn.loading .btn-text { opacity: 0; position: absolute; }
.submit-btn.loading .btn-spinner { display: block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ═══════════ FORM ALERTS ═══════════ */
.form-alert {
  border-radius: var(--radius);
  padding: 14px 18px;
  font-size: .9rem;
  display: none;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}
.form-alert.show { display: flex; }
.form-alert.error {
  background: #FFF2F1;
  border: 1px solid #FFBDB9;
  color: #8B1E15;
}
.form-alert.success {
  background: #EDFAF5;
  border: 1px solid #9DE5C7;
  color: #0E5738;
}
.alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* ═══════════ PRIVACY NOTE ═══════════ */
.privacy-note {
  font-size: .76rem;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}
.privacy-note a { color: var(--tide); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 840px) {
  .page { grid-template-columns: 1fr;}
  .panel-left {
    padding: 44px 28px;
    min-height: auto;
  }
  .panel-right { padding: 44px 28px; }
  .panel-left::after, .panel-left::before { display: none; }
}
@media (max-width: 480px) {
  .page {margin: 50px auto;}
  .panel-left { padding: 32px 20px; }
  .panel-right { padding: 32px 20px; }
  .phone-prefix { font-size: .78rem; padding: 0 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}