:root {
  --navy:       #0d2137;
  --navy-mid:   #1a3a5c;
  --navy-light: #2a5280;
  --gold:       #c9a84c;
  --gold-light: #e8c96a;
  --cream:      #f8f5ee;
  --cream-dark: #ede9de;
  --text:       #1c1c1c;
  --text-muted: #6b6b6b;
  --border:     #d8d2c4;
  --white:      #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--navy);
  font-family: 'Inter', sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(201,168,76,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 90%, rgba(26,58,92,0.8) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── LAYOUT ── */
.page {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* ── LEFT PANEL ── */
.left-panel {
  background: linear-gradient(160deg, var(--navy) 0%, #0a1d30 100%);
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  border-right: 1px solid rgba(201,168,76,0.15);
}

.left-panel::after {
  content: '';
  position: absolute;
  bottom: -120px; left: -80px;
  width: 400px; height: 400px;
  border: 1px solid rgba(201,168,76,0.08);
  border-radius: 50%;
  pointer-events: none;
}

.left-panel::before {
  content: '';
  position: absolute;
  bottom: -60px; left: -40px;
  width: 250px; height: 250px;
  border: 1px solid rgba(201,168,76,0.06);
  border-radius: 50%;
  pointer-events: none;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fadeUp 0.6s ease both;
}

.logo-wrap a { text-decoration: none; display: flex; align-items: center; gap: 12px; }

.logo-img {
  height: 40px;
  border-radius: 50%;
}

.logo-text {
  font-family: 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}

.logo-text span { color: var(--gold); }

.left-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0 40px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  margin-bottom: 20px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.left-content h1 {
  font-family: 'Inter', sans-serif;
  font-size: 38px;
  line-height: 1.15;
  color: var(--white);
  font-weight: 800;
  margin-bottom: 20px;
  animation: fadeUp 0.6s 0.2s ease both;
}

.left-content h1 em {
  font-style: normal;
  color: var(--gold);
}

.left-content .subtitle {
  font-size: 16px;
  line-height: 1.7;
  color: #8fafc8;
  font-weight: 400;
  margin-bottom: 44px;
  animation: fadeUp 0.6s 0.3s ease both;
}

.promise-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: fadeUp 0.6s 0.4s ease both;
}

.promise-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: #c5d9e8;
  font-size: 15px;
  line-height: 1.6;
}

.promise-list li .icon {
  width: 28px; height: 28px;
  background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--gold);
}

.left-footer {
  animation: fadeUp 0.6s 0.5s ease both;
}

.left-footer p {
  font-size: 13px;
  color: #4a6a84;
  line-height: 1.6;
  font-style: italic;
}

.left-footer strong { color: #6a8fa8; font-style: normal; }

/* ── RIGHT PANEL ── */
.right-panel {
  background: var(--cream);
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-header {
  margin-bottom: 36px;
  animation: fadeUp 0.6s 0.15s ease both;
}

.form-header h2 {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-header p {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 300;
}

.gold-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin: 14px 0 0;
}

/* ── FORM ── */
.demo-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
  animation: fadeUp 0.6s 0.25s ease both;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  font-family: 'Inter', sans-serif;
}

.field label .req { color: var(--gold); margin-left: 2px; }

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13,33,55,0.08);
}

.field input.error,
.field textarea.error,
.field select.error {
  border-color: #c0392b;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #bbb;
  font-style: italic;
  font-weight: 300;
}

.field textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}

.field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%230d2137' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

/* ── intl-tel-input overrides ── */
.iti {
  width: 100%;
}

.iti__flag-container {
  border-right: 1px solid var(--border);
}

.iti--separate-dial-code .iti__selected-flag {
  background: var(--cream-dark);
  border-radius: 2px 0 0 2px;
}

#phone {
  padding-left: 90px !important;
}

/* ── SUBMIT ── */
.submit-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.btn-submit {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 16px 32px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s, transform 0.15s;
}

.btn-submit::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.btn-submit:hover { background: var(--navy-mid); transform: translateY(-1px); }
.btn-submit:hover::after { transform: scaleX(1); }
.btn-submit:active { transform: translateY(0); }
.btn-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  font-style: italic;
  line-height: 1.5;
}

/* ── SUCCESS STATE ── */
.success-state {
  display: none;
  text-align: center;
  padding: 40px 20px;
  animation: fadeUp 0.5s ease both;
}

.success-state .checkmark {
  width: 64px; height: 64px;
  background: rgba(45,106,79,0.1);
  border: 2px solid #2d6a4f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 26px;
}

.success-state h3 {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  color: var(--navy);
  margin-bottom: 12px;
}

.success-state p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 340px;
  margin: 0 auto 24px;
}

.btn-back {
  display: inline-block;
  color: var(--navy);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.btn-back:hover { color: var(--gold); }

/* ── ERROR TOAST ── */
.error-toast {
  display: none;
  background: #fdf0f0;
  border: 1px solid #e8b4b4;
  border-left: 4px solid #c0392b;
  padding: 14px 18px;
  border-radius: 2px;
  font-size: 15px;
  color: #7b2020;
  line-height: 1.5;
  animation: fadeUp 0.3s ease both;
}

/* Honeypot */
.hp-field { position: absolute; left: -9999px; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── MOBILE ── */
@media (max-width: 900px) {
  .page { grid-template-columns: 1fr; }

  .left-panel {
    padding: 48px 32px 40px;
    border-right: none;
    border-bottom: 1px solid rgba(201,168,76,0.15);
  }

  .left-content { padding: 40px 0 28px; }
  .left-content h1 { font-size: 32px; }

  .right-panel { padding: 48px 32px; }
  .form-row { grid-template-columns: 1fr; }
}
