:root {
  color-scheme: light;
  --bg: #eaf3f7;
  --paper: rgba(255, 255, 255, 0.52);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --glass-soft: rgba(255, 255, 255, 0.34);
  --ink: #122026;
  --muted: #5e6b73;
  --line: rgba(255, 255, 255, 0.64);
  --accent: #047857;
  --accent-dark: #064e3b;
  --warn-bg: rgba(255, 248, 237, 0.72);
  --warn-line: rgba(251, 146, 60, 0.38);
  --danger: #b42318;
  --shadow: 0 24px 70px rgba(18, 32, 38, 0.16);
  --glass-border: 1px solid rgba(255, 255, 255, 0.58);
  --blur: blur(22px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 18%, rgba(4, 120, 87, 0.22), transparent 30%),
    radial-gradient(circle at 82% 6%, rgba(14, 165, 233, 0.18), transparent 28%),
    radial-gradient(circle at 70% 78%, rgba(251, 146, 60, 0.14), transparent 28%),
    linear-gradient(135deg, #edf7f5 0%, #eef4fb 48%, #f7f4ee 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px max(24px, 6vw);
  background: rgba(255, 255, 255, 0.34);
  border-bottom: var(--glass-border);
  box-shadow: 0 12px 34px rgba(18, 32, 38, 0.08);
  backdrop-filter: var(--blur);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.header-left {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.status-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(18, 32, 38, 0.08);
  backdrop-filter: blur(16px);
  transition: transform 160ms ease, background 160ms ease;
}

.status-button:hover {
  background: rgba(255, 255, 255, 0.64);
  transform: translateY(-1px);
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: rgba(18, 32, 38, 0.88);
  color: var(--paper);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 10px 26px rgba(18, 32, 38, 0.18);
}

nav {
  display: flex;
  gap: 18px;
}

nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

main {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  gap: 32px;
  min-height: calc(100vh - 72px);
  align-items: center;
  padding: 64px 0 42px;
}

.intro-copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.intro-copy p:not(.eyebrow) {
  max-width: 670px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intro-actions,
.form-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.intro-actions {
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: linear-gradient(135deg, var(--accent), #0f766e);
  color: white;
  box-shadow: 0 14px 30px rgba(4, 120, 87, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.36);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.button.wide {
  width: min(260px, 100%);
  margin-top: 22px;
}

.company-panel,
.form-shell,
.confirmation {
  background: var(--paper);
  border: var(--glass-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: var(--blur);
}

.company-panel {
  display: grid;
  gap: 22px;
  padding: 26px;
}

.company-panel strong {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
}

.company-panel p {
  margin: 5px 0 0;
  color: var(--muted);
}

.panel-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.roles,
.application,
.confirmation {
  padding: 58px 0;
}

.section-heading h2,
.form-top h2,
.confirmation h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
}

.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.role-card {
  min-height: 220px;
  padding: 22px;
  background: var(--paper);
  border: var(--glass-border);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(18, 32, 38, 0.09);
  backdrop-filter: var(--blur);
}

.role-card h3 {
  margin: 0;
  font-size: 1.2rem;
}

.role-card p {
  color: var(--muted);
}

.role-card span {
  display: inline-block;
  margin-top: 18px;
  color: var(--accent-dark);
  font-weight: 700;
}

.form-shell,
.confirmation {
  padding: 28px;
}

.form-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

.progress-wrap {
  margin: 24px 0;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.48);
  border-radius: 8px;
  box-shadow: inset 0 1px 2px rgba(18, 32, 38, 0.08);
}

.progress-fill {
  width: 10%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #0ea5e9);
  transition: width 180ms ease;
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
}

legend {
  margin-bottom: 20px;
  font-size: 1.3rem;
  font-weight: 800;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
  padding: 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 10px 24px rgba(18, 32, 38, 0.05);
  backdrop-filter: blur(14px);
}

select[multiple] {
  min-height: 140px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.12);
}

.wide-field,
.note {
  grid-column: 1 / -1;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
}

.check input {
  width: 18px;
  margin-top: 3px;
}

.note {
  margin: 0;
  color: var(--muted);
}

.office-note {
  margin-top: 18px;
  padding: 16px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: 8px;
  backdrop-filter: blur(18px);
}

.office-note p {
  margin: 6px 0 0;
  color: #7c2d12;
}

.payment-layout {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.payment-card {
  min-height: 190px;
  padding: 18px;
  background: var(--glass-soft);
  border: var(--glass-border);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(18, 32, 38, 0.08);
  backdrop-filter: var(--blur);
}

.payment-card.highlight {
  border-color: rgba(4, 120, 87, 0.35);
  background: rgba(240, 253, 247, 0.68);
}

.payment-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.45rem;
  line-height: 1.15;
}

.payment-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.inclusion-box {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.2fr);
  gap: 18px;
  margin-top: 14px;
  padding: 18px;
  background: var(--glass-strong);
  border: 1px solid rgba(4, 120, 87, 0.28);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(18, 32, 38, 0.08);
  backdrop-filter: var(--blur);
}

.inclusion-box strong {
  display: block;
  margin-top: 6px;
  font-size: 1.15rem;
}

.inclusion-box ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

.inclusion-box li + li {
  margin-top: 6px;
}

.office-note {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}

.payment-agree {
  margin-top: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.5);
  border: var(--glass-border);
  border-radius: 8px;
  backdrop-filter: var(--blur);
}

.form-error {
  min-height: 24px;
  margin-top: 18px;
  color: var(--danger);
  font-weight: 700;
}

.form-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

#submitForm {
  display: none;
}

.confirmation {
  margin: 28px 0;
}

.confirmation p {
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(260px, 1fr) auto;
  gap: 28px;
  align-items: start;
  width: min(1120px, calc(100% - 36px));
  margin: 28px auto 0;
  padding: 30px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--muted);
}

.footer-brand {
  margin-bottom: 10px;
}

.site-footer p {
  max-width: 320px;
  margin: 0;
}

.site-footer address {
  font-style: normal;
}

.footer-links {
  justify-content: flex-end;
}

.footer-links a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent);
}

.status-main {
  display: grid;
  min-height: calc(100vh - 94px);
  place-items: center;
  padding: 64px 0 36px;
}

.status-panel {
  width: min(920px, 100%);
  padding: clamp(24px, 5vw, 44px);
  background: var(--paper);
  border: var(--glass-border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: var(--blur);
}

.status-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  color: white;
  font-size: 2rem;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(4, 120, 87, 0.24);
}

.status-panel h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 1;
}

.status-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.status-grid article {
  min-height: 178px;
  padding: 18px;
  background: var(--glass-soft);
  border: var(--glass-border);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(18, 32, 38, 0.08);
  backdrop-filter: var(--blur);
}

.status-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 1.1rem;
}

.status-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.status-grid a {
  color: var(--accent-dark);
  font-weight: 800;
}

.status-note {
  margin-top: 16px;
  padding: 16px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  border-radius: 8px;
  backdrop-filter: blur(18px);
}

.status-note p {
  margin: 6px 0 0;
  color: #7c2d12;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-left {
    width: 100%;
    justify-content: space-between;
  }

  .intro,
  .role-grid,
  .field-grid,
  .payment-layout,
  .office-note,
  .inclusion-box,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .intro {
    min-height: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  main {
    width: min(100% - 24px, 1120px);
  }

  .site-header {
    padding: 14px 12px;
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .form-shell,
  .confirmation,
  .company-panel {
    padding: 18px;
  }

  .form-actions .button,
  .intro-actions .button {
    width: 100%;
  }
}
