/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f0f2f5;
  color: #1a1a1a;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 24px 16px;
}

/* Layout */
.container {
  width: 100%;
  max-width: 480px;
}

/* Card */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Header / Branding */
.brand {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.card h1 {
  font-size: 22px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card h2 {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card p {
  font-size: 15px;
  color: #4b5563;
  margin-bottom: 20px;
}

.card p.subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
}

/* Question text */
.question {
  font-size: 16px;
  font-weight: 500;
  color: #111827;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Radio group */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.radio-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.radio-option:hover {
  border-color: #93c5fd;
  background: #f8faff;
}

.radio-option input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s;
}

.radio-option input[type="radio"]:checked {
  border-color: #2563eb;
}

.radio-option input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  background: #2563eb;
  border-radius: 50%;
}

.radio-option.selected {
  border-color: #2563eb;
  background: #eff6ff;
}

.radio-label {
  font-size: 15px;
  color: #1f2937;
  line-height: 1.4;
}

.radio-label .label-title {
  font-weight: 600;
  display: block;
}

.radio-label .label-desc {
  font-weight: 400;
  font-size: 13px;
  color: #6b7280;
  margin-top: 2px;
}

/* Form inputs */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}

.form-group input[type="email"],
.form-group input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  color: #111827;
  transition: border-color 0.15s;
  outline: none;
}

.form-group input:focus {
  border-color: #2563eb;
}

.form-group input::placeholder {
  color: #9ca3af;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
}

.btn-primary {
  background: #2563eb;
  color: #fff;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.btn-primary:disabled {
  background: #93c5fd;
  cursor: not-allowed;
}

.btn-secondary {
  background: #f3f4f6;
  color: #374151;
  margin-top: 8px;
}

.btn-secondary:hover {
  background: #e5e7eb;
}

.btn-link {
  background: none;
  color: #2563eb;
  font-weight: 500;
  padding: 8px;
  width: auto;
}

.btn-link:hover {
  text-decoration: underline;
}

/* Steps list */
.steps-list {
  list-style: none;
  margin-bottom: 28px;
}

.steps-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f3f4f6;
}

.steps-list li:last-child {
  border-bottom: none;
}

.step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #eff6ff;
  color: #2563eb;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-text {
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
  padding-top: 3px;
}

/* Progress indicator */
.progress-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}

.progress-dot {
  height: 4px;
  flex: 1;
  background: #e5e7eb;
  border-radius: 2px;
  transition: background 0.2s;
}

.progress-dot.active {
  background: #2563eb;
}

/* Screen visibility */
.screen {
  display: none;
}

.screen.active {
  display: block;
}

/* Doctor form specific */
.doctor-letter {
  background: #f9fafb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #374151;
  line-height: 1.7;
}

.doctor-letter p {
  color: #374151;
  font-size: 14px;
  margin-bottom: 12px;
}

.doctor-letter p:last-child {
  margin-bottom: 0;
}

.placeholder {
  background: #fef3c7;
  color: #92400e;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 13px;
}

/* Confirmation screen */
.confirmation-icon {
  width: 56px;
  height: 56px;
  background: #d1fae5;
  color: #065f46;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto 20px;
  font-size: 28px;
}

.confirmation-icon.decline-icon {
  background: #fee2e2;
  color: #991b1b;
}

.text-center {
  text-align: center;
}

/* Landing page */
.flow-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.flow-link {
  display: block;
  padding: 20px;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s;
}

.flow-link:hover {
  border-color: #2563eb;
  background: #f8faff;
}

.flow-link h3 {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 4px;
}

.flow-link p {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 0;
}

/* Divider */
.divider {
  height: 1px;
  background: #e5e7eb;
  margin: 20px 0;
}

/* Inline link */
.inline-link {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 500;
}

.inline-link:hover {
  color: #1d4ed8;
}

/* Back link */
.back-link {
  display: inline-block;
  font-size: 14px;
  color: #6b7280;
  text-decoration: none;
  margin-bottom: 16px;
}

.back-link:hover {
  color: #2563eb;
}

/* Responsive */
@media (max-width: 520px) {
  body {
    padding: 12px 8px;
  }

  .card {
    padding: 24px 18px;
    border-radius: 14px;
  }
}
