﻿:root {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #141414;
  background-color: #eef1f3;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #eef1f3;
}

.app-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 0.5rem 20px 72px;
  min-height: calc(100vh - 72px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.app-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eyebrow {
  font-size: 14px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0;
  color: #616467;
}

.app-header h1 {
  margin: 0;
  font-size: 28px;
}

.progress {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #d6d8db;
  overflow: hidden;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #006666;
  transition: width 0.4s ease;
}

.panel {
  background: #fff;
  border-radius: 24px;
  padding: 24px 20px 12px;
  box-shadow: 0 12px 36px rgba(18, 18, 18, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: none;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.panel[data-step-index="0"] {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.js-enabled .panel {
  display: none;
  opacity: 0;
  transform: translateY(16px);
}

.js-enabled .panel.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.panel.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.panel-header h2 {
  margin: 0;
  font-size: 22px;
}

.panel-header p {
  margin: 4px 0 0;
  color: #4f4f4f;
}

.panel[data-step-index="1"] {
  padding: 18px 18px 12px;
  gap: 6px;
}

.panel[data-step-index="1"] .field {
  gap: 6px;
}

.panel[data-step-index="1"] .field input[type="text"],
.panel[data-step-index="1"] .field input[type="email"],
.panel[data-step-index="1"] .field input[type="tel"],
.panel[data-step-index="1"] .field select {
  padding: 9px 12px;
}

.panel[data-step-index="1"] .error {
  min-height: 10px;
  font-size: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-btn {
  position: fixed;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  max-width: 36px;
  max-height: 36px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #006666;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  z-index: 10;
  box-sizing: border-box;
  appearance: none;
}

.info-btn:hover {
  border-color: #006666;
}

.field#otherTypeField {
  margin-top: -6px;
  gap: 4px;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  border-radius: 16px;
  border: 1px solid #ccc;
  padding: 10px 14px;
  font-size: 16px;
  background: #fdfdfd;
}

.field select {
  border-radius: 16px;
  border: 1px solid #ccc;
  padding: 10px 14px;
  font-size: 16px;
  background: #fdfdfd;
  appearance: none;
  font-family: inherit;
}


.field input:focus {
  outline: 3px solid rgba(13, 110, 253, 0.4);
  border-color: transparent;
}

.error {
  margin: 0;
  color: #d93025;
  font-size: 14px;
  min-height: 12px;
}

.form-error {
  font-weight: 600;
}

.trap-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.radio-group,
.consent-group {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-group legend,
.consent-group legend {
  font-weight: 600;
  margin-bottom: 4px;
}

.radio,
.checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 16px;
}

.radio input,
.checkbox input {
  margin-top: 4px;
}

.interest-grid {
  display: grid;
  gap: 12px;
}

.interest-card {
  background: #f7f8fb;
  border-radius: 20px;
  padding: 16px;
  border: 1px solid transparent;
  display: flex;
  gap: 12px;
  align-items: center;
  cursor: pointer;
  transition: border 0.2s ease, background 0.2s ease;
}

.interest-card:has(input:checked) {
  border-color: #006666;
  background: #ebf1ff;
}

.interest-card input {
  width: 24px;
  height: 24px;
}

.interest-card strong {
  display: block;
  font-size: 16px;
}

.interest-card span {
  display: block;
  color: #4a4a4a;
  font-size: 16px;
}

.interest-card:focus-within {
  border-color: #006666;
  background: #ebf1ff;
}

.summary-card {
  background: #f7f8fb;
  border-radius: 20px;
  padding: 14px;
}

.summary-card h3 {
  margin-top: 0;
}

.summary-list {
  margin: 0;
  border: 0;
  display: grid;
  gap: 8px;
}

.summary-list dt {
  font-weight: 700;
  font-size: 14px;
}

.summary-list dd {
  margin: 0;
  color: #2d2d2d;
  font-size: 14px;
}

.completion-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.completion-actions button {
  flex: 1;
  min-width: 140px;
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 16px;
  border: none;
  cursor: pointer;
}

.panel.completion {
  padding: 18px 18px 12px;
  gap: 8px;
}

.completion-actions button:first-child {
  background: #006666;
  color: #fff;
}

.completion-actions button:last-child {
  background: #d6d8db;
}

.bottom-nav {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 20px;
  background: #fff;
  border-top: 1px solid #ccc;
  box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.08);
}

.bottom-nav button {
  border-radius: 999px;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.bottom-nav button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bottom-nav button:first-child {
  background: #d6d8db;
}

.bottom-nav button:last-child {
  background: #006666;
  color: #fff;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (min-width: 900px) {
  .app-shell {
    padding: 0.5rem 0 96px;
  }

  .panel {
    padding: 24px 20px 12px;
  }

  .interest-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    color: #f6f6f6;
    background-color: #101214;
  }

  body {
    background: #101214;
  }

  .app-shell {
    color: #f6f6f6;
  }

  .panel {
    background: #1c1f25;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  }

  .field input {
    background: #11131a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #f6f6f6;
  }

  .interest-card {
    background: #11131a;
    border-color: rgba(255, 255, 255, 0.08);
  }

  .summary-card {
    background: #11131a;
  }

  .progress-track {
    background: rgba(255, 255, 255, 0.1);
  }

  .bottom-nav {
    background: #181a20;
    border-top-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 -6px 30px rgba(0, 0, 0, 0.5);
  }
}

.hidden {
  display: none !important;
}

