/* Beden Bulma Sihirbazı — okunabilirlik ve adım akışı iyileştirmeleri */
#wizard.wizard {
  padding: 24px;
  background: rgba(4, 22, 45, .68);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
}

#wizard .wizard-shell {
  width: min(720px, 100%);
  height: min(680px, calc(100dvh - 48px));
  min-height: min(620px, calc(100dvh - 48px));
  max-height: min(680px, calc(100dvh - 48px));
  margin: auto;
  overflow: auto;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 72px rgba(4, 22, 45, .24);
}

#wizard .wizard-shell > header {
  min-height: 72px;
  padding: 18px 24px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-bottom: 0;
}

#wizard .wizard-shell > header .brand,
#wizard .wizard-shell > header .guest-note {
  display: none;
}

#wizard .wizard-progress {
  height: 5px;
  background: #edf1f7;
}

#wizard .wizard-progress i {
  height: 100%;
  display: block;
  background: #1a6fed;
  transition: width .25s ease;
}

#wizard .wizard-page {
  padding: 30px 36px 16px;
}

#wizard .wizard-kicker {
  font-size: 14px;
  letter-spacing: .08em;
  color: #1a6fed;
  font-weight: 800;
}

#wizard .wizard-page h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  margin: 10px 0;
  color: #0b1426;
}

#wizard .wizard-page > p {
  font-size: 17px;
  line-height: 1.55;
  color: #687386;
}

#wizard .wizard-footer {
  padding: 16px 28px 24px;
  gap: 12px;
  border-top: 1px solid #eef1f5;
  align-items: center;
}

#wizard .wizard-footer .next-button {
  min-height: 52px;
  padding: 14px 22px;
  font-size: 16px;
}

#wizard .wizard-footer .back-button {
  min-height: 48px;
  padding: 12px 16px;
  font-size: 15px;
}

#wizard .selection-hint {
  flex: 1;
  text-align: center;
  font-size: 14px;
  color: #687386;
}

#wizard .choice-grid button {
  min-height: 150px;
  border-radius: 20px;
  padding: 24px 20px;
}

#wizard .choice-grid button b {
  font-size: 20px;
}

#wizard .choice-grid button small {
  font-size: 15px;
  line-height: 1.4;
}

#wizard .choice-grid button span {
  font-size: 42px;
}

#wizard .gender-grid .gender-choice {
  --gender-accent: #7467d9;
  --gender-soft: #f1efff;
  min-height: 220px;
  padding: 18px 20px 20px;
  overflow: hidden;
  border-color: #dbe4ef;
  background: linear-gradient(160deg, #fff 56%, var(--gender-soft));
}

#wizard .gender-grid .gender-choice-men {
  --gender-accent: #168fdf;
  --gender-soft: #e9f6ff;
}

#wizard .gender-grid .gender-choice:hover {
  border-color: var(--gender-accent);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--gender-accent) 16%, transparent);
}

#wizard .gender-grid .gender-choice.selected {
  border-color: var(--gender-accent);
  background: linear-gradient(160deg, #fff 42%, var(--gender-soft));
  box-shadow: 0 16px 36px color-mix(in srgb, var(--gender-accent) 20%, transparent);
}

#wizard .gender-grid .gender-choice > i {
  background: var(--gender-accent);
}

#wizard .gender-grid .gender-figure {
  position: relative;
  display: grid;
  width: 112px;
  height: 104px;
  margin: 0 auto 6px;
  place-items: center;
  color: var(--gender-accent);
  border: 1px solid color-mix(in srgb, var(--gender-accent) 18%, white);
  border-radius: 30px;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,.9), transparent 34%), var(--gender-soft);
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px color-mix(in srgb, var(--gender-accent) 12%, transparent);
  font-size: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}

#wizard .gender-grid .gender-choice:hover .gender-figure,
#wizard .gender-grid .gender-choice.selected .gender-figure {
  transform: translateY(-3px) scale(1.03);
  box-shadow: inset 0 1px 0 #fff, 0 14px 30px color-mix(in srgb, var(--gender-accent) 20%, transparent);
}

#wizard .gender-grid .gender-figure svg {
  width: 76px;
  height: 84px;
  overflow: visible;
}

#wizard .gender-grid .gender-choice b {
  margin: 8px 0 5px;
  font-size: 21px;
}

#wizard .measure-form input {
  min-height: 54px;
  font-size: 18px;
}

#wizard .measure-form label > span {
  font-size: 16px;
}

@media (max-width: 620px) {
  #wizard.wizard {
    padding: 0;
  }

  #wizard .wizard-shell {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    margin: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
  }

  #wizard .wizard-shell > header {
    min-height: 64px;
    padding: 14px 18px;
  }

  #wizard .wizard-page {
    padding: 26px 20px 12px;
    overflow: auto;
  }

  #wizard .wizard-page h2 {
    font-size: 30px;
  }

  #wizard .wizard-page > p {
    font-size: 16px;
  }

  #wizard .gender-grid .gender-choice {
    min-height: 176px;
    padding: 14px 18px;
  }

  #wizard .gender-grid .gender-figure {
    width: 88px;
    height: 78px;
    margin-bottom: 2px;
    border-radius: 24px;
  }

  #wizard .gender-grid .gender-figure svg {
    width: 58px;
    height: 64px;
  }

  #wizard .wizard-footer {
    padding: 12px 18px max(18px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: auto 1fr;
  }

  #wizard .wizard-footer .next-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  #wizard .selection-hint {
    grid-column: 2;
    text-align: right;
  }
}
