.header__container {
  justify-content: center;
}

.main {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: 40px;
  padding-inline: 16px;
  max-width: 754px;
  font-family: Arial, Helvetica, sans-serif;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  position: relative;
}

.progress-row {
  margin-bottom: 36px;
}
.progress-track {
  position: relative;
  width: 100%;
  height: 20px;
  background: #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
}
.progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 8%;
  background: #06962a;
  border-radius: 8px 0 0 8px;
  transition: width 0.45s ease;
}
.progress-label {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  font-size: 12px;
  color: black;
  white-space: nowrap;
}

.step {
  display: none;
}
.step.active {
  display: block;
  animation: rise 0.35s ease;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1 {
  font-size: 24px;
  margin: 0 0 24px;
  font-weight: 700;
  color: #171515;
}

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.options.single {
  grid-template-columns: 1fr;
}

.option {
  display: block;
  width: 100%;
  text-align: left;
  background: #f5f5f5;
  border-radius: 4px;
  border: none;
  padding: 16px;
  font-size: 16px;
  color: #000000;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    transform 0.1s ease;
}

@media (max-width: 480px) {
  .options {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 19px;
  }
  .card {
    padding: 16px;
  }
}

.cta-btn {
  width: 100%;
  border: none;
  border-radius: 16px;
  padding: 16px 24px;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(90deg, #a921da 0%, #0055ff 100%);
  cursor: pointer;
  transition:
    filter 0.15s ease,
    transform 0.1s ease;
}
.cta-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(40%);
}

.form-heading {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 0px;
  color: #171515;
  font-family: Arial, Helvetica, sans-serif;
}
.form-sub {
  font-size: 24px;
  color: #171515;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0 0 24px;
}

.field {
  margin-bottom: 12px;
}
.field input {
  width: 100%;
  padding: 16px;
  border-radius: 4px;
  border: 1px solid #d4d4d4;
  font-size: 16px;
  background: #fbfbfd;
  outline: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
  font-family: Arial, Helvetica, sans-serif;
}
.field input::placeholder {
  color: #a6a8bd;
}
.field input:focus {
  border-color: var(--accent-a);
  background: #fff;
}
.field.error input {
  border-color: #e0455a;
}
.field-error {
  display: none;
  font-size: 12.5px;
  color: #e0455a;
  margin-top: 5px;
}
.field.error .field-error {
  display: block;
}

/* result step */
.result-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0 18px;
}
.result-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px;
}
.result-copy {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}
.result-copy strong {
  color: var(--ink);
}

/* success popup */
.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 31, 0.55);
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}
.popup-overlay.show {
  display: flex;
  animation: fadeIn 0.2s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.popup-card {
  background: #fff;
  border-radius: 16px;
  max-width: 340px;
  width: 100%;
  padding: 26px 24px 24px;
  text-align: center;
  color: black;
  box-shadow: 0 30px 70px rgba(3, 4, 20, 0.45);
  animation: rise 0.25s ease;
}
.popup-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.popup-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px;
  color: black;
}
.popup-text {
  font-size: 14px;
  color: black;
  line-height: 1.5;
  margin: 0 0 20px;
}
