/* ───────── RESET & BASE ───────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f2f5fa;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  margin: 0;
}

/* ───────── CARD CONTAINER ───────── */
.landing-wrapper {
  max-width: 820px;
  width: 100%;
  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 20px 60px rgba(0, 20, 40, 0.12), 0 8px 24px rgba(0, 20, 40, 0.06);
  overflow: hidden;
  padding: 0;
  transition: all 0.3s ease;
}

/* ───────── HEADER / BRAND ───────── */
.form-header {
  background: linear-gradient(135deg, #0b2a4a 0%, #1a4a7a 100%);
  padding: 28px 36px 22px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #f5c842;
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(2px);
}

.brand h1 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.brand h1 span {
  color: #f5c842;
}

.brand-sub {
  font-size: 13px;
  font-weight: 400;
  opacity: 0.75;
  letter-spacing: 0.2px;
  display: block;
  margin-top: 2px;
}

.header-tag {
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(2px);
  color: #f5c842;
}

/* ───────── PROGRESS BAR ───────── */
.progress-section {
  padding: 20px 36px 0;
  background: #fff;
}

.progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.step-indicator {
  font-size: 15px;
  font-weight: 600;
  color: #0b2a4a;
}

.step-indicator span {
  color: #1a4a7a;
  background: #eef4fa;
  padding: 2px 12px;
  border-radius: 100px;
  font-size: 14px;
}

.step-total {
  font-size: 14px;
  color: #6b7f94;
  font-weight: 500;
}

.progress-bar-track {
  width: 100%;
  height: 6px;
  background: #e6edf5;
  border-radius: 100px;
  overflow: hidden;
  margin-top: 2px;
}

.progress-bar-fill {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #1a4a7a, #3a7bb5);
  border-radius: 100px;
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ───────── FORM BODY ───────── */
.form-body {
  padding: 24px 36px 32px;
}

/* ───────── STEPS ───────── */
.step {
  display: none;
  animation: fadeUp 0.45s ease forwards;
}

.step.active {
  display: block;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(18px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-title {
  font-size: 24px;
  font-weight: 700;
  color: #0b2a4a;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.step-sub {
  font-size: 15px;
  color: #4a617a;
  margin-bottom: 24px;
  font-weight: 400;
  line-height: 1.5;
}

/* ───────── FORM ELEMENTS ───────── */
.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #0b2a4a;
  margin-bottom: 6px;
}

.form-group .hint {
  font-size: 13px;
  font-weight: 400;
  color: #6b7f94;
  margin-left: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px;
}

/* ───────── INPUTS ───────── */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  border: 1.5px solid #dce4ed;
  border-radius: 14px;
  background: #fafcff;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: #0b2a4a;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

input:focus,
select:focus {
  border-color: #1a4a7a;
  box-shadow: 0 0 0 4px rgba(26, 74, 122, 0.10);
  background: #fff;
}

input::placeholder {
  color: #a5b8cd;
  font-weight: 400;
}

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='%236b7f94' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
  cursor: pointer;
}

/* ───────── RADIO / CHECKBOX GRID ───────── */
.radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 10px;
}

.radio-grid.two-col {
  grid-template-columns: 1fr 1fr;
}

.radio-grid.three-col {
  grid-template-columns: 1fr 1fr 1fr;
}

.radio-grid.four-col {
  grid-template-columns: 1fr 1fr 1fr 1fr;
}

.radio-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  background: #f7faff;
  border: 1.5px solid #dce4ed;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
  color: #1a2f44;
  text-align: center;
  min-height: 52px;
  user-select: none;
}

.radio-option:hover {
  background: #eef4fa;
  border-color: #b8cde0;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-option.selected {
  background: #e2edfc;
  border-color: #1a4a7a;
  color: #0b2a4a;
  box-shadow: 0 0 0 3px rgba(26, 74, 122, 0.12);
}

.radio-option .check-mark {
  display: none;
  margin-left: 6px;
  font-size: 16px;
  color: #1a4a7a;
}

.radio-option.selected .check-mark {
  display: inline;
}

/* ───────── STEP 1 SPECIAL (matrix) ───────── */
.coverage-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
  background: #f7faff;
  border-radius: 16px;
  padding: 4px;
  border: 1px solid #e6edf5;
}

.matrix-header {
  font-weight: 600;
  font-size: 13px;
  color: #1a2f44;
  padding: 12px 6px;
  text-align: center;
  background: transparent;
  border-radius: 10px;
}

.matrix-header:first-child {
  text-align: left;
  padding-left: 12px;
}

.matrix-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 4px;
  border-radius: 10px;
  transition: all 0.15s;
  cursor: pointer;
  background: #fff;
  border: 1.5px solid transparent;
  font-size: 13px;
  font-weight: 500;
  color: #1a2f44;
  min-height: 48px;
  position: relative;
}

.matrix-cell:hover {
  background: #eef4fa;
}

.matrix-cell input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.matrix-cell.selected {
  background: #dce8f5;
  border-color: #1a4a7a;
  color: #0b2a4a;
  box-shadow: 0 0 0 2px rgba(26, 74, 122, 0.10);
}

.matrix-row-label {
  font-weight: 600;
  font-size: 13px;
  color: #0b2a4a;
  padding: 8px 4px 8px 12px;
  display: flex;
  align-items: center;
  background: transparent;
  border-radius: 10px;
  gap: 6px;
}

.matrix-row-label .sub {
  font-weight: 400;
  font-size: 11px;
  color: #6b7f94;
  display: block;
}

.matrix-cell .level-label {
  font-size: 12px;
  font-weight: 600;
}

/* ───────── BUTTONS ───────── */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid #e6edf5;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  padding: 14px 38px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-width: 130px;
  letter-spacing: 0.2px;
}

.btn-primary {
  background: linear-gradient(135deg, #0b2a4a, #1a4a7a);
  color: #fff;
  box-shadow: 0 6px 20px rgba(26, 74, 122, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(26, 74, 122, 0.30);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  color: #1a4a7a;
  border: 1.5px solid #dce4ed;
  min-width: 100px;
}

.btn-secondary:hover {
  background: #f2f6fc;
  border-color: #b8cde0;
}

.btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-success {
  background: linear-gradient(135deg, #1a7a4a, #2a9d6a);
  color: #fff;
  box-shadow: 0 6px 20px rgba(26, 122, 74, 0.25);
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(26, 122, 74, 0.30);
}

/* ───────── CHECKBOX ───────── */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f7faff;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid #e6edf5;
  margin-top: 6px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  margin-top: 2px;
  accent-color: #1a4a7a;
  cursor: pointer;
}

.checkbox-group label {
  font-size: 14px;
  font-weight: 400;
  color: #1a2f44;
  line-height: 1.5;
  cursor: pointer;
}

.checkbox-group label strong {
  color: #0b2a4a;
}

/* ───────── FOOTER LEGAL ───────── */
.legal-footer {
  padding: 14px 36px 22px;
  background: #fafcff;
  border-top: 1px solid #e6edf5;
  font-size: 12px;
  color: #6b7f94;
  line-height: 1.7;
}

.legal-footer a {
  color: #1a4a7a;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
}

.legal-footer a:hover {
  color: #0b2a4a;
}

/* ───────── RESPONSIVE ───────── */
@media (max-width: 700px) {
  .form-header {
    padding: 20px 20px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .brand h1 {
    font-size: 19px;
  }
  .header-tag {
    font-size: 12px;
    padding: 4px 12px;
  }
  .progress-section {
    padding: 16px 20px 0;
  }
  .form-body {
    padding: 18px 20px 24px;
  }
  .step-title {
    font-size: 20px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .form-row-3 {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .radio-grid.four-col {
    grid-template-columns: 1fr 1fr;
  }
  .coverage-matrix {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    overflow-x: auto;
    font-size: 12px;
  }
  .matrix-header:first-child {
    display: none;
  }
  .matrix-row-label {
    display: none;
  }
  .matrix-cell {
    font-size: 12px;
    padding: 8px 2px;
    min-height: 40px;
  }
  .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    min-width: unset;
  }
  .legal-footer {
    padding: 14px 20px 18px;
    font-size: 11px;
  }
  .checkbox-group {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px;
  }
}

@media (max-width: 460px) {
  .form-row-3 {
    grid-template-columns: 1fr;
  }
  .radio-grid.two-col {
    grid-template-columns: 1fr 1fr;
  }
  .radio-grid.three-col {
    grid-template-columns: 1fr 1fr;
  }
  .coverage-matrix {
    grid-template-columns: 1fr 1fr 1fr;
    font-size: 11px;
  }
  .brand-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .brand h1 {
    font-size: 17px;
  }
  .step-title {
    font-size: 18px;
  }
}

/* ───────── UTILITY ───────── */
.mt-1 { margin-top: 6px; }
.mb-1 { margin-bottom: 6px; }
.text-center { text-align: center; }
.text-muted { color: #6b7f94; font-size: 13px; }

/* ───────── SUCCESS SCREEN ───────── */
.step-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.step-success.active {
  display: block;
  animation: fadeUp 0.5s ease forwards;
}

.step-success .icon-big {
  font-size: 64px;
  margin-bottom: 16px;
}

.step-success h2 {
  font-size: 28px;
  color: #0b2a4a;
  margin-bottom: 8px;
}

.step-success p {
  color: #4a617a;
  font-size: 16px;
  max-width: 420px;
  margin: 0 auto 20px;
}