:root {
  --bg: #eef3fb;
  --bg-soft: #f7faff;
  --surface: #ffffff;
  --ink: #102742;
  --muted: #5a6f86;
  --line: #d7e3f2;
  --brand: #0f67e8;
  --brand-strong: #0b4fb3;
  --accent: #ff8e1c;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 18px 40px rgba(16, 39, 66, 0.1);
  --shadow-soft: 0 10px 24px rgba(16, 39, 66, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Plus Jakarta Sans", "Sora", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(950px 520px at 0% -8%, rgba(51, 125, 255, 0.2), transparent),
    radial-gradient(880px 460px at 100% -10%, rgba(255, 170, 77, 0.2), transparent),
    linear-gradient(180deg, #dce8f8 0%, var(--bg) 28%, var(--bg) 100%);
}

a {
  color: var(--brand);
}

.container {
  width: min(1160px, 100% - 2rem);
  margin-inline: auto;
}

.page-shell {
  flex: 1 0 auto;
  padding: 1.3rem 0 2.8rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(204, 220, 239, 0.92);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.header-row {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  color: #0f3f8f;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.nav-link {
  text-decoration: none;
  font-weight: 650;
  color: #214369;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  border: 1px solid transparent;
}

.nav-link:hover {
  background: #ecf4ff;
}

.nav-link-accent {
  color: #fff;
  background: linear-gradient(180deg, #1a79ff, #0f67e8);
  box-shadow: 0 10px 22px rgba(15, 103, 232, 0.32);
}

.nav-link-accent:hover {
  background: linear-gradient(180deg, #116fe7, #0d59ca);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.45rem;
}

h1,
h2,
h3 {
  margin: 0 0 0.75rem;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(1.9rem, 3.7vw, 3.1rem);
}

h2 {
  font-size: clamp(1.28rem, 2.2vw, 1.9rem);
}

h3 {
  font-size: 1.18rem;
}

p {
  margin: 0 0 0.92rem;
  line-height: 1.62;
}

.small {
  color: var(--muted);
  font-size: 0.93rem;
}

.hero-shell {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1.35fr 0.92fr;
}

.hero-main {
  position: relative;
  overflow: hidden;
  padding: 1.8rem;
  border-radius: 24px;
  box-shadow: var(--shadow);
  background:
    linear-gradient(130deg, rgba(243, 248, 255, 0.96), rgba(255, 255, 255, 0.97)),
    linear-gradient(145deg, rgba(15, 103, 232, 0.14), rgba(255, 142, 28, 0.12));
}

.hero-main::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -95px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 103, 232, 0.17), transparent 68%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #eaf2ff;
  color: #0d56c0;
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.35rem 0.72rem;
  margin-bottom: 0.85rem;
}

.lead {
  color: #2b4b70;
  font-size: 1.08rem;
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

button,
.cta {
  appearance: none;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(180deg, #1a79ff, #0f67e8);
  padding: 0.75rem 1.14rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 22px rgba(15, 103, 232, 0.3);
  transition: transform 0.15s ease;
}

button:hover,
.cta:hover {
  transform: translateY(-1px);
}

.cta-ghost {
  background: #fff;
  color: var(--brand);
  border: 1px solid #c7daf6;
  box-shadow: none;
}

.hero-badges {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  border: 1px solid #cfe0f7;
  background: #fff;
  color: #22496f;
  font-size: 0.83rem;
  font-weight: 650;
}

.hero-side {
  padding: 1.3rem;
  border-radius: 24px;
  background: #fff;
}

.trust-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.trust-list li {
  border: 1px solid #d9e7f9;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.68rem;
  font-size: 0.9rem;
}

.hero-score {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.hero-score div {
  border: 1px solid #d7e5f7;
  border-radius: var(--radius-md);
  padding: 0.66rem 0.56rem;
  text-align: center;
  background: #f9fcff;
}

.hero-score strong {
  display: block;
  color: #0f53af;
  font-size: 1.06rem;
}

.hero-score span {
  color: #5f7690;
  font-size: 0.82rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.85rem;
}

.metric-card {
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.metric-title {
  margin-bottom: 0.38rem;
  font-size: 0.74rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #1f5eaf;
}

.section-title {
  margin: 1.35rem 0 0.72rem;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.journey-card {
  position: relative;
  padding-top: 3.2rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f8fbff);
}

.journey-index {
  position: absolute;
  left: 1.25rem;
  top: 1.1rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, #1a79ff, #0f67e8);
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.legal-banner {
  margin-top: 1rem;
  border-left: 6px solid var(--accent);
  border-radius: 18px;
  background: linear-gradient(180deg, #fffefa, #fff7ec);
}

.intake-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 0.9rem;
}

.wizard-card {
  margin-bottom: 0.8rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #f7fbff);
}

.wizard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.52rem;
}

.wizard-track {
  height: 10px;
  border-radius: 999px;
  background: #e3ecfb;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.wizard-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f67e8, #21a5ff);
}

.wizard-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #7a8ea5;
  font-size: 0.84rem;
}

.wizard-step span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid #cad9ef;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.wizard-step.active {
  color: #1f4f84;
}

.wizard-step.active span {
  border-color: #9abcf0;
  background: #eaf3ff;
}

.wizard-step.current span {
  border-color: #0f67e8;
  background: #0f67e8;
  color: #fff;
}

.form-card {
  border-radius: 20px;
  box-shadow: var(--shadow);
  background: linear-gradient(180deg, #fff, #fcfdff);
}

.two-col-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

label {
  display: block;
  margin-bottom: 0.34rem;
  font-weight: 700;
  color: #1b3f66;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #c6d8ee;
  border-radius: 12px;
  padding: 0.76rem 0.84rem;
  color: #103250;
  font-size: 0.96rem;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #1a79ff;
  box-shadow: 0 0 0 4px rgba(26, 121, 255, 0.16);
}

textarea {
  min-height: 128px;
}

input[type="file"] {
  border-style: dashed;
  background: #f9fbff;
  padding: 0.9rem;
}

input[type="checkbox"] {
  width: auto;
  margin-right: 0.42rem;
  transform: translateY(1px);
  accent-color: #0f67e8;
}

.form-actions {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
}

.text-link {
  text-decoration: none;
  color: #2560a2;
  font-weight: 650;
}

.text-link:hover {
  text-decoration: underline;
}

.guide-card {
  position: sticky;
  top: 94px;
  height: fit-content;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.guide-card h2 {
  margin-bottom: 0.6rem;
}

.guide-card ul {
  margin: 0;
  padding-left: 1.06rem;
  color: #36587c;
}

.guide-card li {
  margin-bottom: 0.52rem;
}

.notice-card {
  border-left: 5px solid var(--accent);
  border-radius: 16px;
  background: linear-gradient(180deg, #fffdfa, #fff8ef);
}

.nested-notice {
  margin-top: 0.82rem;
}

.legal-consent-note {
  margin-top: 0.72rem;
}

.legal-card h2 {
  margin-top: 1.4rem;
}

.legal-card ul {
  padding-left: 1.1rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid #d5e2f1;
  padding: 0.67rem 0.52rem;
  text-align: left;
}

.table th {
  color: #617b98;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.79rem;
}

.pill {
  border-radius: 999px;
  background: #eaf2ff;
  color: #1e5ca7;
  padding: 0.2rem 0.58rem;
  font-size: 0.76rem;
  display: inline-block;
}

.flash {
  border-radius: 12px;
  padding: 0.74rem 0.94rem;
  margin-bottom: 0.9rem;
  border: 1px solid transparent;
}

.flash-success {
  background: #eaf8f0;
  border-color: #c8e7d4;
}

.flash-error {
  background: #ffefef;
  border-color: #f3c0c0;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid #ccdbef;
  background: rgba(255, 255, 255, 0.9);
}

.footer-row {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.footer-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-nav a {
  color: #1f4b7a;
  text-decoration: none;
  font-weight: 650;
}

.footer-nav a:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .hero-shell,
  .metrics-grid,
  .journey-grid {
    grid-template-columns: 1fr;
  }

  .intake-shell {
    grid-template-columns: 1fr;
  }

  .guide-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .header-row {
    min-height: 66px;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0;
  }

  .site-nav {
    width: 100%;
  }

  .hero-main,
  .hero-side,
  .card {
    padding: 1.05rem;
  }

  .two-col-grid,
  .wizard-steps,
  .hero-score {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .form-actions .cta,
  .form-actions button {
    width: 100%;
  }

  .footer-row {
    min-height: 56px;
    padding: 0.6rem 0;
  }
}


.upload-field {
  margin-bottom: 0.9rem;
}

.upload-previews {
  margin-top: 0.55rem;
}

.upload-preview-empty {
  margin: 0;
}

.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.6rem;
}

.upload-preview-card {
  border: 1px solid #d8e5f7;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.upload-preview-media {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f8ff;
  border-bottom: 1px solid #d8e5f7;
}

.upload-preview-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload-preview-filetype {
  padding: 0 0.55rem;
  text-align: center;
  color: #4f6986;
  font-size: 0.82rem;
  word-break: break-word;
}

.upload-preview-footer {
  padding: 0.5rem;
}

.upload-preview-name {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  color: #2e4f74;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-preview-remove {
  width: 100%;
  border: 1px solid #c8daf4;
  border-radius: 9px;
  background: #fff;
  color: #1f5eaf;
  box-shadow: none;
  padding: 0.44rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.upload-preview-remove:hover {
  background: #eef5ff;
  transform: none;
}
.upload-feedback {
  min-height: 1.1rem;
  margin: 0.3rem 0 0;
}

.upload-feedback.has-message {
  color: #b33030;
}
.admin-login-card {
  max-width: 460px;
  margin: 2rem auto;
}

.admin-login-form {
  display: flex;
  flex-direction: column;
}

.admin-login-form button {
  margin-top: 0.85rem;
  align-self: flex-start;
}