:root {
  /* SVA brand: deep indigo + sage green + black, pulled from the logo */
  --indigo-900: #1a1a5e;
  --indigo-800: #2a2a87;
  --indigo-700: #3838a3;
  --indigo-100: #e7e7f5;
  --indigo-50:  #f3f3fb;
  --sage-700: #5a9077;
  --sage-500: #8fc3a8;
  --sage-200: #d8ebe0;
  --sage-100: #ebf4ef;
  --ink: #0a0a14;
  --ink-2: #4a4a55;
  --ink-3: #7a7a85;
  --bg: #fafaf9;
  --surface: #ffffff;
  --border: #e6e6ea;
  --border-2: #efeff3;
  --danger: #b13a3a;
  --success: #5a9077;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(26, 26, 94, 0.04);
  --shadow: 0 4px 24px -8px rgba(26, 26, 94, 0.14), 0 1px 3px rgba(26, 26, 94, 0.04);
  --shadow-lg: 0 12px 48px -16px rgba(26, 26, 94, 0.20);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border-2);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--indigo-900);
  min-width: 0;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  min-width: 0;
}
.brand-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-sub {
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 500;
  margin-top: 2px;
}
@media (max-width: 480px) {
  .brand-name { font-size: 13px; }
  .brand-sub { font-size: 11px; }
}

.header-link {
  color: var(--indigo-800);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.header-link:hover { background: var(--indigo-50); }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 0 48px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(143, 195, 168, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(42, 42, 135, 0.04) 0%, transparent 65%);
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage-700);
  background: var(--sage-100);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
  border: 1px solid var(--sage-200);
}
.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--indigo-900);
  margin: 0 0 16px;
}
.hero h1 .accent {
  color: var(--sage-700);
  font-style: italic;
  font-weight: 800;
}
.hero p {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--ink-2);
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- Main ---------- */
.main { padding: 32px 20px 64px; }

/* ---------- Tabs ---------- */
.tabs {
  display: inline-flex;
  background: var(--indigo-50);
  padding: 5px;
  border-radius: 999px;
  margin-bottom: 28px;
  gap: 2px;
  width: 100%;
  max-width: 380px;
  border: 1px solid var(--border-2);
}
.tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 11px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.tab:hover { color: var(--indigo-800); }
.tab.active {
  background: #fff;
  color: var(--indigo-900);
  box-shadow: var(--shadow-sm), 0 0 0 1px var(--border);
}

/* ---------- Panels ---------- */
.panel { display: none; }
.panel.active {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 880px) {
  .panel.active { grid-template-columns: 1fr; }
}

/* ---------- Info card ---------- */
.info-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: sticky;
  top: 80px;
  box-shadow: var(--shadow-sm);
}
@media (max-width: 880px) { .info-card { position: static; } }
.info-card h2 {
  font-size: 17px;
  font-weight: 700;
  color: var(--indigo-900);
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.steps {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: grid;
  gap: 16px;
}
.steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--indigo-800);
  color: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}
.steps li:nth-child(3) .step-num { background: var(--sage-700); }
.steps strong { display: block; font-size: 15px; color: var(--ink); font-weight: 600; }
.steps span { display: block; font-size: 14px; color: var(--ink-2); margin-top: 2px; }

.fine {
  border-top: 1px solid var(--border-2);
  padding-top: 14px;
  margin-top: 14px;
}
.fine summary {
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  font-weight: 500;
  user-select: none;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.fine summary::-webkit-details-marker { display: none; }
.fine summary::after { content: 'â†“'; transition: transform 0.2s; font-size: 11px; }
.fine[open] summary::after { transform: rotate(180deg); }
.fine ul {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--ink-2);
}
.fine li { margin: 6px 0; }

.positions {
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 12px;
}
.positions ul { margin: 6px 0 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.positions li {
  background: var(--indigo-50);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--indigo-900);
}
.positions .empty { color: var(--ink-3); font-style: italic; }
.fine-print { font-size: 12px; color: var(--ink-3); margin: 12px 0 0; }

/* ---------- Form card ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
@media (max-width: 560px) { .form-card { padding: 24px 20px; } }

.form-head { margin-bottom: 24px; }
.form-head h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--indigo-900);
  margin: 0 0 4px;
  letter-spacing: -0.015em;
}
.form-head p { margin: 0; color: var(--ink-3); font-size: 14px; }

.section {
  padding: 20px 0;
  border-top: 1px solid var(--border-2);
}
.section:first-of-type { padding-top: 0; border-top: none; }
.section h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo-700);
  margin: 0 0 16px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.full { grid-column: 1 / -1; }
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .full { grid-column: 1; }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.optional {
  color: var(--ink-3);
  font-weight: 400;
  font-style: normal;
  font-size: 12px;
  margin-left: 4px;
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  min-height: 44px;
}
.field textarea { min-height: 84px; resize: vertical; font-family: var(--font); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--sage-500); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--indigo-700);
  box-shadow: 0 0 0 4px rgba(42, 42, 135, 0.14);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%234a4a55' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.file-field .file-label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 6px;
  display: block;
}
.file-field input[type="file"] {
  font-family: var(--font);
  font-size: 14px;
  border: 1px dashed var(--border);
  background: var(--indigo-50);
  padding: 14px;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.file-field input[type="file"]:hover { border-color: var(--sage-500); background: var(--sage-100); }

/* ---------- Acks ---------- */
.acks {
  background: var(--indigo-50);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin: 8px 0 20px;
  display: grid;
  gap: 10px;
}
.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.45;
}
.check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 1px;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}
.check input[type="checkbox"]:checked {
  background: var(--indigo-800);
  border-color: var(--indigo-800);
}
.check input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.check input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(42, 42, 135, 0.25);
}

/* ---------- Actions ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}
.btn {
  background: var(--indigo-800);
  color: #fff;
  border: none;
  padding: 13px 28px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  cursor: pointer;
  min-height: 48px;
  transition: background 0.15s, transform 0.05s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--indigo-900); box-shadow: var(--shadow); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: var(--ink-3); cursor: not-allowed; }
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(42, 42, 135, 0.3);
}
@media (max-width: 520px) {
  .btn { width: 100%; }
  .actions { gap: 10px; }
}

.status {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}
.status.error { color: var(--danger); }
.status.success { color: var(--success); font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-2);
  padding: 24px 0;
  margin-top: 48px;
  font-size: 13px;
  color: var(--ink-3);
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.site-footer a { color: var(--indigo-800); text-decoration: none; font-weight: 500; }
.site-footer a:hover { text-decoration: underline; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--indigo-900);
  color: #fff;
  padding: 13px 22px;
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  z-index: 100;
  max-width: calc(100vw - 32px);
  font-size: 14px;
  font-weight: 500;
  animation: slideUp 0.3s ease-out;
}
.toast.error { background: var(--danger); }
@keyframes slideUp {
  from { transform: translate(-50%, 20px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
