:root {
  --gradient-start: #667eea;
  --gradient-end: #764ba2;
  --green: #4caf50;
  --green-dark: #2e7d32;
  --text: #333;
  --muted: #555;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  min-height: 100vh;
}

.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }

.hero-header {
  text-align: center;
  color: #fff;
  padding: 36px 20px 28px;
}

.hero-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  margin-bottom: 10px;
}

.hero-tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.35em 0.5em;
  max-width: 900px;
  margin: 0 auto;
}

.hero-tagline-text {
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  opacity: 0.95;
  margin: 0;
  line-height: 1.5;
  text-align: center;
}

.hero-tagline-text strong {
  font-weight: 700;
}

.hero-header .lead {
  font-size: 1.05rem;
  opacity: 0.95;
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.55;
}

.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }

.main-card-wrap { flex: 1; padding-bottom: 32px; }

.card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.card-header {
  background: linear-gradient(45deg, var(--green), #45a049);
  color: #fff;
  padding: 18px 16px;
}

.card-body { padding: 28px 30px; }

.step { display: none; }
.step.active { display: block; }

.step h2 { margin-bottom: 8px; font-size: 1.35rem; }
.step-desc { color: var(--muted); margin-bottom: 16px; }

.field-label { display: block; font-weight: 600; margin-bottom: 6px; }

input[type="date"],
input[type="time"],
input[type="email"],
input[type="tel"],
.field-input {
  width: 100%;
  max-width: 280px;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}

.field-input.field-input-wide {
  max-width: 100%;
}

.appointment-form .field-input {
  max-width: 100%;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.form-field {
  margin-bottom: 16px;
}

.step-indicator {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 4px;
}

.step-item {
  display: flex;
  align-items: center;
  margin: 0 4px;
}

.step-number {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 8px;
  border: 2px solid rgba(255, 255, 255, 0.65);
  transition: transform 0.2s, background 0.2s;
}

.step-number.active {
  background: #fff;
  color: var(--green-dark);
  transform: scale(1.12);
  border-color: var(--green-dark);
}

.step-number.completed {
  background: #2196f3;
  border-color: #1976d2;
}

.step-number.clickable {
  cursor: pointer;
}

.step-number.clickable:hover,
.step-number.clickable:focus-visible {
  transform: scale(1.1);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
  outline: none;
}

.step-number.active.clickable:hover,
.step-number.active.clickable:focus-visible {
  transform: scale(1.12);
}

.step-item span { font-size: 0.88rem; }

.btn {
  background: linear-gradient(45deg, var(--green), #45a049);
  color: #fff;
  border: none;
  padding: 12px 26px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.35);
}

.btn-secondary {
  background: linear-gradient(45deg, #5c6bc0, #3949ab);
}

.step-actions { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }

.value-bullets {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

.note-list { margin: 12px 0 20px 20px; color: var(--muted); }

.deadline-box {
  background: #f0f7ff;
  border: 1px solid #b8daff;
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 20px;
}

.deadline-box h3 { font-size: 1rem; margin-bottom: 8px; color: #1565c0; }
.deadline-list { margin-left: 18px; color: var(--muted); }
.deadline-subline {
  display: block;
  margin-top: 6px;
  font-size: 0.95rem;
}

.deadline-coming-soon {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.5;
}
.deadline-note {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #c62828;
}

.radio-cards { display: flex; flex-direction: column; gap: 12px; margin: 16px 0; }

.radio-card {
  display: block;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.radio-card:has(input:checked),
.radio-card.selected {
  border-color: var(--green);
  background: #f1f8f4;
}

.radio-card input { margin-right: 10px; vertical-align: top; margin-top: 4px; }

.radio-card-title { font-weight: 700; display: block; margin-bottom: 4px; }
.radio-card-desc { font-size: 0.92rem; color: var(--muted); display: block; margin-left: 26px; }

.survey-section {
  margin-top: 22px;
  padding-top: 8px;
  border-top: 1px solid #eee;
}

.survey-group-title {
  font-size: 1rem;
  margin: 18px 0 6px;
  color: #3949ab;
}

.survey-section h3 { margin-bottom: 4px; }
.survey-hint { font-size: 0.88rem; color: #666; margin-bottom: 10px; font-style: italic; }

.checklist-instructions.survey-hint-steps,
.survey-hint-steps {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 14px;
}

.checklist-instructions-title {
  margin-bottom: 8px;
}

.checklist-instructions ol {
  margin: 0 0 16px 1.25rem;
  padding: 0;
}

.checklist-instructions li {
  margin-bottom: 6px;
}

.survey-question {
  padding: 12px 14px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fafafa;
}

.survey-question:has(input:checked) {
  border-color: #a5d6a7;
  background: #f1f8f4;
}

.survey-question input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; }
.survey-question label { flex: 1; cursor: pointer; }

.survey-question label strong {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.survey-question label a {
  color: #1565c0;
  text-decoration: underline;
}

.error-message {
  background: #ffebee;
  color: #c62828;
  padding: 12px;
  border-radius: 8px;
  margin: 12px 0;
}

.success-message {
  background: #e8f5e9;
  color: #2e7d32;
  padding: 16px;
  border-radius: 8px;
  margin: 16px 0;
}

.result-badge {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  margin-bottom: 14px;
}

.result-ready { background: #e8f5e9; color: #2e7d32; }
.result-partial { background: #fff3e0; color: #e65100; }
.result-needs { background: #ffebee; color: #c62828; }

.office-pack {
  background: #e8f5e9;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 16px 0;
}

.office-pack h3 { margin-bottom: 8px; }
.office-pack ul { margin-left: 20px; }

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.section-chip {
  padding: 12px;
  border-radius: 8px;
  font-size: 0.92rem;
  border: 1px solid #e0e0e0;
}

.section-chip.ok { border-color: #a5d6a7; background: #f1f8f4; }
.section-chip.warn { border-color: #ffcc80; background: #fff8e1; }

.disclaimer { margin-top: 20px; font-size: 0.88rem; color: #666; }

.site-footer-min {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  padding: 20px;
}

#missingList ul { margin: 10px 0 10px 22px; color: #c62828; }

@media (max-width: 640px) {
  .step-item span { display: none; }
  .card-body { padding: 20px 16px; }
}

@media print {
  body { background: #fff; }
  .hero-header, .card-header, .step-actions, .site-footer-min { display: none !important; }
  .step { display: none !important; }
  #step2 { display: block !important; }
}
