.page {
  display: grid;
  gap: 1rem;
  padding-bottom: 1.5rem;
}

.header {
  padding: 1.1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  align-items: flex-start;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--star-yellow) 24%, #fff) 0, transparent 34%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 68%, #fff) 0%, #fff 54%, color-mix(in srgb, var(--teal) 18%, #fff) 100%);
}

.header h1 {
  color: var(--ink-1);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
}

.header p {
  color: var(--muted);
  max-width: 68ch;
}

.headerActions {
  display: flex;
  gap: 0.45rem;
}

.panel {
  padding: 1.15rem 1.2rem;
  display: grid;
  gap: 1rem;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--teal) 18%, transparent) 0, transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, color-mix(in srgb, var(--panel-warm) 52%, #fff) 100%);
}

.modeSwitch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modeButton {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(180deg, #f8f4e7 0%, #eef4e5 100%);
  color: var(--ink-1);
  font-weight: 700;
  padding: 0.55rem 1rem;
  box-shadow: 0 8px 18px rgba(232, 89, 110, 0.08);
}

.modeButtonActive {
  border-color: color-mix(in srgb, var(--accent) 52%, var(--border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 24%, #fff) 0%, color-mix(in srgb, var(--accent-soft) 68%, #fff) 100%);
}

.stepHeader {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.2rem 0;
}

.stepPill {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff8e8 0%, #f2f7e9 100%);
  color: var(--ink-1);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
}

.helpText {
  color: var(--muted);
  font-size: 0.95rem;
}

.formGrid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  align-items: start;
}

.wizardTile {
  width: 100%;
  background: linear-gradient(180deg, #fffaf1 0%, #fdf2df 100%);
  border-color: color-mix(in srgb, var(--border-light) 76%, #ffffff);
}

.wizardTileBody {
  gap: 0.9rem;
}

.wizardCountBtn {
  min-width: 108px;
  min-height: 126px;
  width: 100%;
  border-radius: 18px;
  border: 1.5px solid var(--border-light);
  background: linear-gradient(180deg, #ffffff 0%, #fdf9f1 100%);
  padding: 0.85rem 0.8rem;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.stepCard {
  background: var(--panel);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 0.95rem;
  display: grid;
  gap: 0.85rem;
}

.stepCardHeader {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
}

.stepCardHeader h3 {
  color: var(--ink-0);
  font-size: 1.1rem;
  font-weight: 800;
}

.stepCardHeader p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  margin-top: 0.22rem;
}

.stepCardBadge {
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  padding: 0.32rem 0.72rem;
  background: var(--panel-warm);
  color: var(--ink-1);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.stepCardBody {
  display: grid;
  gap: 0.85rem;
}

.countChoiceGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.wizardCountBtn:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--teal) 55%, var(--border));
  box-shadow: 0 14px 28px rgba(92, 197, 205, 0.18);
}

.wizardCountBtn[class*="optionIconBtnActive"] {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 50%, #fff) 0%, #ffffff 100%);
  box-shadow: 0 16px 30px rgba(232, 89, 110, 0.2);
}

.countChoiceCircle {
  width: 4.7rem;
  height: 4.7rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 72%, #ffffff);
  display: grid;
  place-items: center;
  font-family: var(--font-baloo), system-ui, sans-serif;
  font-size: clamp(2rem, 5vw, 2.5rem);
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 6px 14px rgba(0, 0, 0, 0.08);
}

.wizardCountBtn:nth-child(1) .countChoiceCircle {
  background: linear-gradient(180deg, #ffe8ef 0%, #ffdce8 100%);
}

.wizardCountBtn:nth-child(2) .countChoiceCircle {
  background: linear-gradient(180deg, #e8f7fb 0%, #d9f1f6 100%);
}

.wizardCountBtn:nth-child(3) .countChoiceCircle {
  background: linear-gradient(180deg, #fff4dc 0%, #ffecbf 100%);
}

.wizardCountBtn[class*="optionIconBtnActive"] .countChoiceCircle {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 78%, #fff) 0%, #ffd8e3 100%);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.countChoiceLabel {
  font-size: 1rem;
  font-weight: 800;
}

.choiceButton,
.reviewPanel,
.babyIntro {
  border: 1px solid var(--border-light);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff8ea 0%, #f9efdc 100%);
  box-shadow: var(--shadow-card);
}

.compactField {
  display: grid;
  gap: 0.45rem;
  padding: 0.1rem 0;
}

.compactField label {
  color: var(--ink-1);
  font-size: 0.92rem;
  font-weight: 700;
  display: block;
}

.compactField input {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  padding: 0.9rem 1rem;
  color: var(--ink-1);
}

.selectionGrid {
  display: grid;
  gap: 0.82rem;
  grid-template-columns: 1fr;
}

.choiceButton {
  width: 100%;
  padding: 0.9rem;
  display: grid;
  text-align: left;
  gap: 0.5rem;
  align-content: start;
  min-height: 118px;
  border: 1.5px solid color-mix(in srgb, var(--border-light) 82%, var(--teal));
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.choiceIndicator {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--ink-1) 28%, var(--border));
  background: linear-gradient(180deg, #fffef9 0%, #f9f0e2 100%);
  display: grid;
  place-items: center;
}

.choiceIndicator::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: transparent;
  transition: background 140ms ease;
}

.choiceButton:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--teal) 52%, var(--border));
  box-shadow: 0 12px 24px rgba(92, 197, 205, 0.2);
}

.choiceButtonActive {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent-soft) 44%, #fff4f8) 0%, #fde5ec 100%);
  box-shadow: 0 16px 28px rgba(232, 89, 110, 0.22);
}

.choiceButtonActive .choiceIndicator {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--border));
  background: linear-gradient(180deg, #fff4f7 0%, #ffd8e4 100%);
}

.choiceButtonActive .choiceIndicator::after {
  background: var(--accent-strong);
}

.choiceLabel {
  color: var(--ink-0);
  font-size: 1rem;
  font-weight: 800;
}

.choiceMeta {
  color: color-mix(in srgb, var(--ink-1) 65%, var(--muted));
  font-size: 0.85rem;
}

.fullSpan {
  grid-column: 1 / -1;
}

.babyIntro {
  padding: 1rem;
}

.summaryList {
  display: grid;
  gap: 0.55rem;
}

.summaryList p {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fdf9f3 100%);
}

.summaryList strong {
  color: var(--ink-1);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.summaryList span {
  color: var(--ink-0);
  font-size: 1rem;
  font-weight: 700;
}

.actionStack {
  display: grid;
  gap: 0.6rem;
}

.photoStepBody {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
}

.photoPreviewFilled,
.photoPreviewEmpty {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.photoPreviewFilled {
  overflow: hidden;
  border: 3px solid var(--teal);
}

.photoPreviewEmpty {
  background: var(--panel-warm);
  border: 2px dashed var(--border);
}

.emptyState {
  min-height: 132px;
  border: 1px dashed var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fdf9f3 100%);
  color: var(--muted);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
}

.wizardActions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  padding-top: 0.2rem;
}

.wizardActions :global(.btn) {
  min-height: 52px;
  touch-action: manipulation;
}

.wizardTile,
.wizardTile h3,
.wizardTile p,
.wizardTile span,
.wizardTile label,
.wizardTile button {
  user-select: none;
  -webkit-user-select: none;
}

.wizardTile input,
.wizardTile select,
.wizardTile textarea {
  user-select: text;
  -webkit-user-select: text;
}

.message {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #eef3e3;
  padding: 0.65rem 0.75rem;
  color: var(--ink-1);
}

@media (max-width: 900px) {
  .formGrid {
    grid-template-columns: 1fr;
  }

  .header {
    flex-direction: column;
  }

  .wizardActions {
    position: sticky;
    bottom: 0.55rem;
    background: color-mix(in srgb, var(--panel) 88%, transparent);
    backdrop-filter: blur(8px);
    padding: 0.55rem;
    border: 1px solid var(--border-light);
    border-radius: 14px;
  }

  .wizardActions :global(.btn) {
    flex: 1 1 100%;
  }
}

@media (min-width: 760px) {
  .countChoiceGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .selectionGrid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (min-width: 1080px) {
  .selectionGrid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }

  .stepCardHeader {
    flex-direction: column;
  }
}
