/* ── Design tokens ─────────────────────────────────────────────────── */
:root {
  --navy:         #0b1d3a;
  --navy-deep:    #0a1426;
  --royal:        #2c4cc4;
  --royal-2:      #3b5bdb;
  --teal:         #2bb6c0;
  --teal-2:       #6fd8df;
  --teal-3:       #7fe5ec;
  --ink:          #07142b;
  --ink-soft:     #2a3a55;
  --muted:        #6b7a8f;
  --placeholder:  #9aa8b9;
  --paper:        #ffffff;
  --paper-soft:   #f5f9fc;
  --line:         #e3ecf3;
  --line-strong:  #cdd9e3;
  --green-dot:    #4ade80;
  --error-red:    #d8443c;
}

/* ── Reset ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; }

/* ── Body / background ─────────────────────────────────────────────── */
body {
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  background-color: var(--navy-deep);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 30%,  rgba(59,91,219,0.18)   0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 60%,  rgba(43,182,192,0.12)  0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 50% 80%,  rgba(44,76,196,0.10)   0%, transparent 50%),
    radial-gradient(ellipse 40% 30% at 10% 70%,  rgba(111,216,223,0.08) 0%, transparent 45%),
    radial-gradient(ellipse 70% 50% at 70% 10%,  rgba(59,91,219,0.15)   0%, transparent 60%);
  padding: 32px 16px 56px;
}

/* ── Masthead ──────────────────────────────────────────────────────── */
.masthead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.orb-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,
    rgba(170,190,255,0.95) 0%,
    rgba(89,119,230,0.90)  30%,
    rgba(44,76,196,0.92)   60%,
    rgba(10,20,60,0.96)    100%);
  box-shadow:
    0 0 0 1.5px rgba(59,91,219,0.35),
    0 8px 32px rgba(44,76,196,0.45),
    inset 0 1.5px 0 rgba(255,255,255,0.45),
    inset 0 -1px 0 rgba(0,0,0,0.25);
  position: relative;
  margin-bottom: 4px;
}
.orb-logo::after {
  content: '';
  position: absolute;
  top: 14%;
  left: 18%;
  width: 36%;
  height: 24%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.65) 0%, transparent 100%);
  transform: rotate(-20deg);
}

.brand-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 2rem;
  line-height: 1;
  background: linear-gradient(180deg, #8fb4ff 0%, #3b5bdb 50%, #2c4cc4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: #cfe6f1;
  text-transform: uppercase;
}

.pipe-divider {
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--teal-2));
  border-radius: 2px;
  margin: 2px 0;
}

.form-heading {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: clamp(1.4rem, 5vw, 2rem);
  color: #ffffff;
  line-height: 1.2;
}

.teal-gradient {
  background: linear-gradient(90deg, var(--teal) 0%, var(--teal-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.intro {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  max-width: 480px;
}

.scroll-cue {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-2);
  margin-top: 4px;
}

/* ── Form wrapper / card ───────────────────────────────────────────── */
.form-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.form-card {
  background: var(--paper);
  border-radius: 16px;
  box-shadow:
    0 24px 64px rgba(0,0,0,0.35),
    0 4px 16px rgba(0,0,0,0.15);
  overflow: hidden;
}
.form-card::before {
  content: '';
  display: block;
  height: 5px;
  background: linear-gradient(90deg, #2c4cc4 0%, #3b5bdb 30%, #2bb6c0 70%, #6fd8df 100%);
}

/* ── Form inner padding ────────────────────────────────────────────── */
form {
  padding: 28px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Sections ──────────────────────────────────────────────────────── */
.form-section {
  margin-bottom: 32px;
}
.form-section:last-of-type {
  margin-bottom: 24px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.section-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--royal-2) 0%, var(--royal) 100%);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(59,91,219,0.35);
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: var(--ink-soft);
}

.section-divider {
  border: none;
  border-top: 1.5px solid var(--line);
  margin-bottom: 20px;
}

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

.field-label {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 2px;
}

.req {
  color: var(--royal-2);
  margin-left: 1px;
}

.field-sub {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}

.field-error {
  display: none;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--error-red);
  margin-top: 4px;
}
.field-error.visible { display: block; }

.field-group.has-error input,
.field-group.has-error select,
.field-group.has-error textarea {
  border-color: var(--error-red) !important;
  box-shadow: 0 0 0 3px rgba(216,68,60,0.10) !important;
}
.field-group.has-error .dropzone {
  border-color: var(--error-red) !important;
}
.field-group.has-error .yn-cards {
  outline: 2px solid rgba(216,68,60,0.35);
  outline-offset: 2px;
  border-radius: 10px;
}

/* ── Inputs / selects / textarea ───────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  display: block;
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper-soft);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

input::placeholder,
textarea::placeholder { color: var(--placeholder); }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--royal-2);
  background: var(--paper);
  box-shadow: 0 0 0 4px rgba(59,91,219,0.12);
}

select {
  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='%236b7a8f' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
}

/* ── Two-column layout ─────────────────────────────────────────────── */
.two-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── Yes/No cards ──────────────────────────────────────────────────── */
.yn-cards {
  display: flex;
  gap: 12px;
  margin-bottom: 0;
}

.yn-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--paper-soft);
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}

.yn-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.yn-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  background: var(--paper);
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.yn-label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-soft);
}

.yn-card.selected {
  border-color: var(--royal-2);
  background: linear-gradient(135deg,
    rgba(59,91,219,0.05) 0%,
    rgba(43,182,192,0.05) 100%);
}
.yn-card.selected .yn-dot {
  border-color: var(--royal-2);
  background: var(--royal-2);
  box-shadow: inset 0 0 0 3px var(--paper);
}

/* ── File upload dropzone ──────────────────────────────────────────── */
.dropzone {
  position: relative;
  border: 1.5px dashed var(--line-strong);
  border-radius: 10px;
  background: var(--paper-soft);
  padding: 24px 16px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  overflow: hidden;
}
.dropzone:hover,
.dropzone.has-file {
  border-color: var(--royal-2);
  background: var(--paper);
}

.dropzone input[type="file"] { display: none; }

.dropzone-content { cursor: pointer; }

.dropzone-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--royal-2) 0%, var(--teal) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
}

/* ── Conditional insurance fields ─────────────────────────────────── */
.ins-fields {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ── File list (multi-upload) ──────────────────────────────────────── */

.file-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  text-align: left;
}

.file-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
}

.file-item-name {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-item-remove {
  font-size: 12px;
  color: var(--royal-2);
  text-decoration: underline;
  cursor: pointer;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
}

.add-more-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--royal-2);
  text-decoration: underline;
  cursor: pointer;
  text-align: center;
}

.dz-primary {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 2px;
}
.dz-secondary {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

.dropzone-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}

.preview-thumb {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
}

.preview-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.preview-name {
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.remove-btn {
  font-size: 12px;
  color: var(--royal-2);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 2;
}

/* ── Submit area ───────────────────────────────────────────────────── */
.submit-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.disclaimer {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.submit-btn {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #fff;
  background: linear-gradient(135deg, #3b5bdb 0%, #2c4cc4 100%);
  border-radius: 12px;
  min-height: 54px;
  width: 100%;
  padding: 0 32px;
  box-shadow: 0 10px 24px -8px rgba(44,76,196,0.55);
  transition: opacity 0.15s, transform 0.1s;
  letter-spacing: 0.01em;
}
.submit-btn:hover:not(:disabled) { opacity: 0.91; }
.submit-btn:active:not(:disabled) { transform: scale(0.985); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.submit-error {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--error-red);
  background: rgba(216,68,60,0.07);
  border: 1px solid rgba(216,68,60,0.25);
  border-radius: 8px;
  padding: 10px 14px;
  line-height: 1.5;
}

/* ── Thank-you screen ──────────────────────────────────────────────── */
.ty-screen {
  max-width: 560px;
  margin: 60px auto;
  text-align: center;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.ty-orb {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%,
    rgba(170,190,255,0.95) 0%,
    rgba(89,119,230,0.90)  30%,
    rgba(44,76,196,0.92)   60%,
    rgba(10,20,60,0.96)    100%);
  box-shadow:
    0 0 0 1.5px rgba(59,91,219,0.35),
    0 16px 48px rgba(44,76,196,0.5),
    inset 0 1.5px 0 rgba(255,255,255,0.45);
  position: relative;
}
.ty-orb::after {
  content: '';
  position: absolute;
  top: 14%;
  left: 18%;
  width: 36%;
  height: 24%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.65) 0%, transparent 100%);
  transform: rotate(-20deg);
}

.ty-heading {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  color: #fff;
  line-height: 1.2;
}

.ty-body,
.ty-body-es {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  max-width: 400px;
}
.ty-body-es { color: rgba(255,255,255,0.6); font-style: italic; }

/* ── Footer ────────────────────────────────────────────────────────── */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--muted);
}

.footer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-dot);
  box-shadow: 0 0 8px var(--green-dot);
  flex-shrink: 0;
}

/* ── Tablet (≥600px) ───────────────────────────────────────────────── */
@media (min-width: 600px) {
  .form-card { border-radius: 20px; }

  form { padding: 32px 32px 40px; }

  .two-col {
    flex-direction: row;
    gap: 16px;
  }
  .two-col .field-group { flex: 1; min-width: 0; margin-bottom: 0; }
  .two-col { margin-bottom: 16px; }

  .submit-btn {
    width: auto;
    min-width: 220px;
  }
}

/* ── Desktop (≥960px) ──────────────────────────────────────────────── */
@media (min-width: 960px) {
  .form-wrapper { max-width: 760px; }
}
