/* ═══════════════════════════════════════════════════════════════════════════
   RGMBS 2026 — Participant Registration Portal
   ═══════════════════════════════════════════════════════════════════════════ */

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

:root {
  --navy:        #0a1e4a;
  --navy-mid:    #0f3460;
  --navy-light:  #1a3a6e;
  --teal:        #0d7a6e;
  --teal-light:  #13a99a;
  --teal-pale:   rgba(13,122,110,.08);
  --gold:        #c8973a;
  --gold-light:  #e0b55a;
  --white:       #ffffff;
  --light:       #f4f7fb;
  --light-mid:   #edf1f7;
  --border:      #d1dbe8;
  --border-soft: #e8edf5;
  --muted:       #6b7a99;
  --error:       #d93025;
  --success:     #1a7f5a;
  --li-blue:     #0077b5;
  --radius:      16px;
  --radius-sm:   10px;
  --radius-xs:   6px;
  --shadow:      0 8px 48px rgba(10,30,74,.14);
  --shadow-sm:   0 2px 16px rgba(10,30,74,.08);
  --shadow-card: 0 4px 32px rgba(10,30,74,.12);
  --transition:  0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a2340;
  background: var(--light);
}

/* ── Page background ──────────────────────────────────────────────────────── */
.page-bg {
  min-height: 100vh;
  background: linear-gradient(150deg, #0a1e4a 0%, #0f3460 45%, #0a5a50 80%, #0d7a6e 100%);
  background-attachment: fixed;
  padding: 36px 16px 48px;
}

.container {
  max-width: 820px;
  margin: 0 auto;
}
.container-narrow {
  max-width: 680px;
}

/* ── Site header ─────────────────────────────────────────────────────────── */
.site-header {
  text-align: center;
  color: var(--white);
  margin-bottom: 24px;
  background:
    url('../images/bg-dna.png') center center / cover no-repeat,
    linear-gradient(150deg, #0a1e4a 0%, #0f3460 50%, #0a5a50 100%);
  padding: 36px 28px 32px;
  border-radius: var(--radius);
}

.site-logo-wrap {
  display: inline-block;
  margin-bottom: 14px;
}

.site-logo-img {
  height: 60px;
  width: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.35));
}

.site-header h1 {
  font-size: clamp(20px, 4vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -.3px;
}

.subtitle {
  font-size: 14px;
  opacity: .75;
  max-width: 480px;
  margin: 0 auto 14px;
  line-height: 1.5;
}

.event-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 24px;
  padding: 8px 20px;
  font-size: 13px;
  color: rgba(255,255,255,.88);
  flex-wrap: wrap;
  justify-content: center;
}
.event-meta svg { opacity: .7; flex-shrink: 0; }

/* ── Card ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 40px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

/* ── Mandatory note ──────────────────────────────────────────────────────── */
.mandatory-note {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fffbf0;
  border: 1px solid #f5e4aa;
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  font-size: 12.5px;
  color: #7a5a10;
  margin-bottom: 24px;
}
.mandatory-note svg { flex-shrink: 0; opacity: .7; }

/* ── Form sections ───────────────────────────────────────────────────────── */
.form-section { margin-bottom: 0; }

.section-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--light-mid);
}

.section-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.section-icon.personal { background: linear-gradient(135deg, #e3f0fb, #bbd8f5); color: #0a6da0; }
.section-icon.org      { background: linear-gradient(135deg, #e3f7f4, #bde9e3); color: var(--teal); }
.section-icon.summit   { background: linear-gradient(135deg, #fdf4e3, #f5e0bb); color: var(--gold); }
.section-icon.terms    { background: linear-gradient(135deg, #eff0f8, #dddeed); color: var(--navy); }

.section-header h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1px;
}
.section-header p {
  font-size: 12.5px;
  color: var(--muted);
}

/* ── Grid layouts ────────────────────────────────────────────────────────── */
.form-row { display: grid; gap: 14px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

/* ── Form groups ─────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 16px; }
.form-group:last-child { margin-bottom: 0; }

label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
  letter-spacing: .1px;
}
.required { color: var(--error); margin-left: 2px; }

/* ── Inputs ──────────────────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 13px;
  font-size: 14px;
  color: #1a2340;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
  background: #fafbfd;
  font-family: inherit;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13,122,110,.12);
  background: var(--white);
}
input.invalid, select.invalid, textarea.invalid {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px rgba(217,48,37,.07) !important;
  background: #fff9f9 !important;
}
select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7a99' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}
select option[value=""] { color: var(--muted); }
input::placeholder { color: #b0baca; }

.field-error {
  font-size: 12px;
  color: var(--error);
  margin-top: 5px;
  min-height: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  animation: fadeIn .15s ease;
}
.field-error:empty { min-height: 0; }

/* ── Phone field ─────────────────────────────────────────────────────────── */
.phone-group { display: flex; gap: 0; }
.phone-group select {
  width: 148px;
  flex-shrink: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  border-right: none;
  background-color: #f0f4f8;
  font-size: 13px;
  padding-right: 32px;
}
.phone-group select:focus { border-right: none; z-index: 1; position: relative; }
.phone-group input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; flex: 1; }

/* ── Photo upload ────────────────────────────────────────────────────────── */
.photo-upload-area {
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-upload-area:hover,
.photo-upload-area.drag-over {
  border-color: var(--teal);
  background: rgba(13,122,110,.03);
  box-shadow: 0 0 0 4px rgba(13,122,110,.07);
}
.photo-upload-area.has-photo {
  border-style: solid;
  border-color: var(--teal);
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 20px;
  color: var(--muted);
  width: 100%;
}
.upload-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--light-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  margin-bottom: 4px;
}
.upload-label { font-size: 14px; font-weight: 600; color: var(--navy); }
.photo-placeholder small { font-size: 12px; color: var(--muted); }

.photo-preview-wrap {
  position: relative;
  text-align: center;
  padding: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
}
.photo-preview-wrap img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--teal);
  box-shadow: 0 6px 24px rgba(13,122,110,.22);
}
.photo-remove {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--error);
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 2px 8px rgba(217,48,37,.3);
}
.photo-remove:hover { background: #b71c1c; transform: scale(1.1); }

/* ── Terms checkboxes ────────────────────────────────────────────────────── */
.terms-privacy {
  background: var(--light-mid);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
  border-left: 3px solid var(--border);
}
.terms-privacy strong { color: var(--navy); }

.terms-checks { display: grid; gap: 12px; }

.terms-check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  user-select: none;
}
.terms-check-item:hover {
  border-color: var(--teal);
  background: rgba(13,122,110,.03);
}
.terms-check-item.checked {
  border-color: var(--teal);
  background: rgba(13,122,110,.05);
  box-shadow: 0 0 0 3px rgba(13,122,110,.08);
}
.terms-check-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
  flex-shrink: 0;
  cursor: pointer;
}
.check-text {
  font-size: 13.5px;
  color: #3d4f6e;
  line-height: 1.55;
}
.check-text strong {
  display: block;
  color: var(--navy);
  font-size: 13px;
  margin-bottom: 2px;
}

/* ── Alert ───────────────────────────────────────────────────────────────── */
.alert {
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 14px;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-error {
  background: #fde8e7;
  color: var(--error);
  border: 1px solid #f5c6c4;
}
.alert svg { flex-shrink: 0; margin-top: 1px; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition),
              background var(--transition), opacity var(--transition);
  letter-spacing: .1px;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn svg { flex-shrink: 0; }

.btn-lg { padding: 14px 30px; font-size: 16px; }

.btn-primary {
  background: linear-gradient(135deg, var(--teal), #0a5f55);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(13,122,110,.32);
}
.btn-primary:hover:not(:disabled) {
  box-shadow: 0 6px 28px rgba(13,122,110,.44);
  transform: translateY(-1px);
}
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }

.btn-full { width: 100%; font-size: 16px; padding: 15px; }

.btn-linkedin {
  background: var(--li-blue);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,119,181,.28);
}
.btn-linkedin:hover { background: #005f93; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0,119,181,.38); }

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1.5px solid var(--border-soft);
}
.btn-ghost:hover { color: var(--navy); border-color: var(--border); }

/* ── Submit section ──────────────────────────────────────────────────────── */
.submit-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.submit-note svg { flex-shrink: 0; }

/* ── Spinner ─────────────────────────────────────────────────────────────── */
@keyframes spin     { to { transform: rotate(360deg); } }
@keyframes fadeIn   { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes pulse    { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes slideUp  { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck  { to { stroke-dashoffset: 0; } }
@keyframes ripple   { to { transform: scale(2.5); opacity: 0; } }

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .75s linear infinite;
  flex-shrink: 0;
}

/* ── Loading overlay ─────────────────────────────────────────────────────── */
.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(150deg, #0a1e4a 0%, #0f3460 45%, #0a5a50 80%, #0d7a6e 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.loading-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  max-width: 400px;
  width: 100%;
  padding: 0 28px;
}

.loading-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.loading-logo span {
  font-size: 28px;
  font-weight: 900;
  color: white;
  letter-spacing: -1px;
}
.loading-logo small {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}

.loading-ring {
  width: 64px;
  height: 64px;
  border: 4px solid rgba(255,255,255,.12);
  border-top-color: var(--teal-light);
  border-right-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loading-steps {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.loading-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,.05);
  transition: background .35s, opacity .35s;
  opacity: .35;
}
.loading-step.active {
  background: rgba(13,122,110,.22);
  opacity: 1;
}
.loading-step.done {
  opacity: .6;
  background: rgba(255,255,255,.04);
}
.loading-step.done .step-icon { color: var(--teal-light); border-color: var(--teal-light); }

.step-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(255,255,255,.4);
  transition: all .35s;
}
.loading-step.active .step-icon {
  border-color: var(--teal-light);
  color: var(--teal-light);
  animation: pulse 1.5s ease-in-out infinite;
}

.step-label {
  font-size: 14px;
  color: rgba(255,255,255,.88);
  font-weight: 500;
}
.loading-step:not(.active):not(.done) .step-label {
  color: rgba(255,255,255,.4);
}

.loading-tagline {
  font-size: 11px;
  color: rgba(255,255,255,.3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: -10px;
}

/* ── Banner preview ──────────────────────────────────────────────────────── */
.banner-preview-wrap {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 6px 32px rgba(0,0,0,.16);
  margin-bottom: 24px;
  position: relative;
}
.banner-preview-img { display: block; width: 100%; height: auto; }

.banner-preview-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(10,30,74,.72);
  color: rgba(255,255,255,.85);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
}

/* ── Preview page specifics ──────────────────────────────────────────────── */
.preview-greeting {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding: 16px 18px;
  background: var(--light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-soft);
}
.preview-avatar-hint {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teal-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  flex-shrink: 0;
}
.preview-name {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 2px;
}
.preview-org {
  font-size: 13px;
  color: var(--muted);
}

/* ── Caption box ─────────────────────────────────────────────────────────── */
.caption-box {
  background: var(--light);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 28px;
  border: 1px solid var(--border-soft);
}
.caption-box-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.caption-box-header h3 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
}
.caption-box-header svg { color: var(--muted); }
.caption-text p {
  font-size: 14px;
  color: #3d4f6e;
  line-height: 1.7;
  margin: 0 0 10px;
}
.caption-text p:last-child { margin-bottom: 0; }

/* ── Action row ──────────────────────────────────────────────────────────── */
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.action-row-center { justify-content: center; }
.linkedin-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ── Sharing overlay ─────────────────────────────────────────────────────── */
.sharing-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.95);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  z-index: 10;
  backdrop-filter: blur(4px);
}
.sharing-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}
.sharing-ring {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(13,122,110,.2);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin .85s linear infinite;
}
.sharing-spinner p { font-size: 16px; font-weight: 600; color: var(--navy); }
.sharing-spinner small { font-size: 13px; color: var(--muted); }

/* ── Section divider ─────────────────────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-soft) 20%, var(--border-soft) 80%, transparent);
  margin: 40px 0;
}

/* ── SUCCESS PAGE ════════════════════════════════════════════════════════════ */
.card-success-page {
  padding: 0;
  overflow: visible;
}

.success-header {
  background:
    url('../images/bg-dna.png') center center / cover no-repeat,
    linear-gradient(150deg, #0a1e4a 0%, #0f3460 50%, #0a5a50 100%);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 36px 32px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decorative rings */
.success-rings { position: absolute; inset: 0; pointer-events: none; }
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.06);
}
.ring-1 { width: 300px; height: 300px; top: -100px; right: -60px; }
.ring-2 { width: 200px; height: 200px; bottom: -80px; left: -40px; }
.ring-3 { width: 140px; height: 140px; top: 20px; left: 60px; }

.success-logo {
  display: inline-block;
  margin-bottom: 18px;
  position: relative;
}
.success-logo-img {
  height: 52px;
  width: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,.4));
}

.success-check {
  width: 68px;
  height: 68px;
  margin: 0 auto 16px;
  position: relative;
}
.success-check svg { width: 68px; height: 68px; }
.check-circle      { stroke: rgba(255,255,255,.2); fill: none; stroke-width: 2; }
.check-circle-fill {
  stroke: var(--teal-light);
  fill: none;
  stroke-width: 2;
  stroke-dasharray: 239;
  stroke-dashoffset: 239;
  animation: drawCircle .9s ease forwards .3s;
}
.check-mark {
  stroke: white;
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 42;
  stroke-dashoffset: 42;
  animation: drawCheck .45s ease forwards 1.1s;
}

.success-title {
  font-size: 22px;
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
  position: relative;
  animation: fadeIn .5s ease both .4s;
}
.success-tagline {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.55);
  position: relative;
  animation: fadeIn .5s ease both .6s;
  margin: 0;
}

/* ── Registration letter ──────────────────────────────────────────────────── */
.reg-letter {
  background: var(--light);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 24px 28px;
  margin-bottom: 20px;
  animation: slideUp .5s ease both .2s;
}
.letter-greeting {
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 14px;
}
.letter-para {
  font-size: 14px;
  color: #3d4f6e;
  line-height: 1.7;
  margin-bottom: 12px;
}
.letter-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}
.letter-status-label {
  font-size: 13.5px;
  color: var(--navy);
  font-weight: 500;
}
.letter-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff7e6;
  border: 1px solid #f5d78a;
  color: #8a5d00;
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
}
.letter-signoff {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  font-size: 13.5px;
  color: #3d4f6e;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.letter-signoff p { margin: 0; }
.letter-signoff strong { color: var(--navy); font-size: 14px; }
.letter-signoff span  { color: var(--muted); font-size: 12.5px; }

/* Success body */
.success-body {
  padding: 24px 32px 32px;
}

/* Status card */
.status-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--light);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid var(--border-soft);
  animation: slideUp .5s ease both .2s;
}
.status-card-left {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex-shrink: 0;
}
.status-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #fdf4e3, #f5e0bb);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.status-card-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 6px;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff7e6;
  border: 1px solid #f5d78a;
  color: #8a5d00;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 1.5s ease-in-out infinite;
}
.status-card-right { flex: 1; }
.status-note {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  padding-top: 4px;
}

/* Event strip */
.event-strip {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: var(--navy);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 18px;
  animation: slideUp .5s ease both .35s;
}
.event-strip-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  flex: 1;
  color: white;
}
.event-strip-item svg { flex-shrink: 0; opacity: .6; }
.event-strip-sep { width: 1px; background: rgba(255,255,255,.1); }
.strip-label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: .55;
  margin-bottom: 3px;
}
.strip-value {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}

/* Success banner */
.success-banner-wrap {
  margin-bottom: 20px;
  animation: slideUp .5s ease both .45s;
}
.success-banner-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}

/* What's next */
.next-steps {
  background: var(--light);
  border-radius: var(--radius-sm);
  padding: 18px;
  margin-bottom: 20px;
  border: 1px solid var(--border-soft);
  animation: slideUp .5s ease both .55s;
}
.next-steps-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 14px;
}
.next-steps-grid { display: grid; gap: 12px; }
.next-step-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.next-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: white;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.next-step-item strong {
  display: block;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 3px;
}
.next-step-item p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Success actions */
.success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  animation: slideUp .5s ease both .65s;
}

/* ── Partner logos bar (dark navy strip) ─────────────────────────────────── */
.partner-logos-bar {
  margin-top: 24px;
  border-radius: var(--radius);
  background: var(--navy);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(10,30,74,.28);
  animation: slideUp .5s ease both .75s;
}
.partner-logos-bar img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 80px;
  object-fit: contain;
  padding: 8px 20px;
}

/* ── Site footer ─────────────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  color: rgba(255,255,255,.35);
  font-size: 12.5px;
  margin-top: 20px;
  padding-bottom: 8px;
}

/* ── Setup / diagnostics page ────────────────────────────────────────────── */
.check-grid { display: grid; gap: 10px; margin: 20px 0; }
.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.check-ok   { background: #e8f5e9; color: #2e7d32; }
.check-warn { background: #fff8e1; color: #f57c00; }
.check-fail { background: #fde8e7; color: var(--error); }
.check-icon { font-size: 18px; flex-shrink: 0; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* background-attachment: fixed breaks on iOS — reset to scroll */
  .page-bg { background-attachment: scroll; }
}

@media (max-width: 640px) {
  .page-bg { padding: 20px 12px 36px; }
  .card { padding: 20px 18px; }

  .success-header { padding: 28px 20px 24px; }
  .success-body   { padding: 18px 20px 24px; }

  .form-row-2,
  .form-row-3    { grid-template-columns: 1fr; }
  .action-row    { flex-direction: column; }
  .action-row .btn { width: 100%; }
  .success-actions { flex-direction: column; }
  .success-actions .btn { width: 100%; }

  .phone-group select { width: 120px; font-size: 12px; }
  .status-card { flex-direction: column; }
  .event-strip { flex-direction: column; }
  .event-strip-sep { height: 1px; width: 100%; }
  .partner-logos-bar img { max-height: 60px; }
}

@media (max-width: 420px) {
  .card { padding: 16px 14px; }
  .success-header { padding: 24px 16px 20px; }
  .success-body   { padding: 16px 16px 20px; }
  .loading-inner  { padding: 0 16px; }
}
