/* ── PAGE HEADER ────────────────────────────────────── */
.diag-header {
  padding: 10rem 0 3rem;
  text-align: center;
}

.diag-header h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-bottom: 1rem;
}

.diag-header h1 em {
  font-style: normal;
  color: var(--accent);
}

.diag-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* ── PROGRESS BAR ──────────────────────────────────── */
.progress-wrap {
  position: sticky;
  top: 60px;
  z-index: 50;
  padding: 1rem 0;
  background: rgba(5, 9, 23, .9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.progress-bar {
  height: 4px;
  background: var(--bg-3);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 100px;
  transition: width .4s var(--ease);
}

.progress-label {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .5rem;
  text-align: center;
}

/* ── FORM BLOCKS ───────────────────────────────────── */
.diag-form {
  padding: 2rem 0 6rem;
}

.diag-form .container {
  max-width: 720px;
}

.form-block {
  margin-bottom: 3.5rem;
}

.block-title {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
  margin-bottom: .35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}

.block-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(168, 163, 185, .1);
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.block-desc {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  text-align: center;
}

/* ── DIAGNOSTICO FORM FIELDS ───────────────────────── */
.diag-form .form-group {
  margin-bottom: 1.5rem;
}

.diag-form .form-group:last-child {
  margin-bottom: 0;
}

.diag-form .form-group textarea {
  min-height: 100px;
}

.diag-form .form-group textarea.tall {
  min-height: 160px;
}

.diag-form .form-submit {
  font-size: .95rem;
  padding: 1rem 2.5rem;
  margin: 0 auto;
}

.field-label {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--text-muted);
  text-transform: uppercase;
  text-align: center;
  display: block;
}

.diag-form .form-group label {
  text-align: center;
}

/* ── PILLS / CHIPS ─────────────────────────────────── */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: .85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color .25s, background .25s, color .25s;
  user-select: none;
}

.pill:hover {
  border-color: rgba(168, 163, 185, .3);
  color: var(--text);
}

.pill.active {
  border-color: var(--accent);
  background: rgba(168, 163, 185, .1);
  color: var(--text);
}

.pill input {
  display: none;
}

/* ── RADIO OPTIONS ─────────────────────────────────── */
.radio-options {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.radio-opt {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .85rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .25s, background .25s;
  user-select: none;
}

.radio-opt:hover {
  border-color: rgba(168, 163, 185, .3);
}

.radio-opt.active {
  border-color: var(--accent);
  background: rgba(168, 163, 185, .06);
}

.radio-opt input {
  display: none;
}

.radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: border-color .25s, background .25s;
  position: relative;
}

.radio-opt.active .radio-dot {
  border-color: var(--accent);
}

.radio-opt.active .radio-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}

.radio-opt-text {
  font-size: .9rem;
  color: var(--text-muted);
  transition: color .25s;
}

.radio-opt.active .radio-opt-text {
  color: var(--text);
}

/* ── PACKAGE CARDS ─────────────────────────────────── */
.pkg-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.pkg-card {
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .25s, background .25s, transform .2s;
  user-select: none;
}

.pkg-card:hover {
  border-color: rgba(168, 163, 185, .3);
  transform: translateY(-2px);
}

.pkg-card.active {
  border-color: var(--accent);
  background: rgba(168, 163, 185, .06);
}

.pkg-card input {
  display: none;
}

.pkg-name {
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .35rem;
}

.pkg-price {
  font-size: .8rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: .5rem;
}

.pkg-desc {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── NOTE ───────────────────────────────────────────── */
.form-note {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 1.25rem;
  background: rgba(168, 163, 185, .04);
  border: 1px solid rgba(168, 163, 185, .1);
  border-radius: 10px;
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 1rem;
}

.form-note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

/* ── CONFIRMATION SCREEN ───────────────────────────── */
.confirmation {
  display: none;
  text-align: center;
  padding: 0;
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.confirmation.show {
  display: flex;
}

.confirmation-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(74, 222, 128, .1);
  border: 1px solid rgba(74, 222, 128, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  color: #4ade80;
}

.confirmation-icon svg {
  width: 32px;
  height: 32px;
}

.confirmation h2 {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: .75rem;
}

.confirmation p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 440px;
  margin: 0 auto 2rem;
}

.confirmation a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--border);
  padding: .7rem 1.5rem;
  border-radius: 100px;
  font-size: .875rem;
  color: var(--text);
  transition: border-color .25s;
}

.confirmation a:hover {
  border-color: var(--accent);
}

/* ── VALIDATION ─────────────────────────────────────── */
.form-group.error input,
.form-group.error textarea {
  border-color: rgba(239, 68, 68, .5);
}

.error-msg {
  font-size: .75rem;
  color: #ef4444;
  display: none;
}

.form-group.error .error-msg {
  display: block;
}

/* ── RESPONSIVE DIAGNOSTICO ─────────────────────────── */
@media (max-width: 640px) {
  .pkg-grid {
    grid-template-columns: 1fr;
  }

  .diag-header {
    padding: 8rem 0 2rem;
  }
}
