/**
 * Child Height Predictor — Figma 1360 Desktop layout.
 */

.pregnancy-calendar.height-predictor {
  --hp-accent: #00a7e8;
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin: 0;
  padding: 24px 16px;
  padding-bottom: 24px;
  background-color: #fff;
  background-image: url('../../img/height-predictor/how-tall-will-my-child-be.svg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.pregnancy-calendar.height-predictor.is-sex-female {
  --hp-accent: #ff6ca0;
  background-image: url('../../img/height-predictor/how-tall-will-my-child-girl.svg');
}

/* Match header/footer container — #main-content has 96px rail padding on desktop */
@media (min-width: 992px) {
  body.mamaspedia-burger-desktop .height-predictor-page .pregnancy-calendar-page__intro .container,
  body.mamaspedia-burger-desktop .height-predictor-page .height-predictor-below .container {
    margin-left: max(var(--spacing-6), calc((100vw - var(--container-2xl)) / 2 - var(--spacing-24)));
    margin-right: auto;
  }
}

@media (min-width: 992px) {
  .pregnancy-calendar.height-predictor {
    padding: 32px;
    border-radius: 16px;
  }
}

/* Header: title left, units right */
.height-predictor__header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 0;
}

@media (min-width: 992px) {
  .height-predictor__header {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
  }
}

.height-predictor__header-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.height-predictor__header-heading {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.height-predictor__header-aside {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 992px) {
  .height-predictor__header-aside {
    justify-content: flex-end;
    width: auto;
    max-width: 300px;
    text-align: right;
  }

  .height-predictor__units {
    margin-left: 0;
  }
}

.height-predictor__badge {
  display: block;
  margin: 0;
  padding: 0;
  background: none;
  color: #303030;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 14px;
}

.height-predictor__title {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 26px;
  font-weight: 500;
  line-height: 32px;
  color: #303030;
}

.height-predictor__subtitle {
  margin: 0;
  max-width: 640px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 18px;
  color: #4d4d4d;
}

.height-predictor__units {
  display: inline-flex;
  gap: 0;
  padding: 4px;
  border: 1px solid var(--hp-accent, #00a7e8);
  border-radius: 50px;
  background: transparent;
}

.height-predictor__unit-btn {
  min-width: 0;
  padding: 9px 24px;
  border: none;
  border-radius: 50px;
  background: transparent;
  color: var(--hp-accent, #00a7e8);
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.height-predictor__unit-btn.is-active {
  padding: 9px 24px;
  border-radius: 50px;
  background: var(--hp-accent, #00a7e8);
  color: #fff;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
}

.height-predictor__section-icon--parents {
  width: 32px;
  height: 32px;
}

.height-predictor__units-note,
.height-predictor__units-note--card {
  font-family: var(--font-primary);
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: #4d4d4d;
}

.height-predictor__units-note--card {
  margin: 16px 0 0;
}

/* Custom dropdown — height predictor overrides */
.height-predictor .custom-dropdown__trigger {
  height: auto;
  min-height: 44px;
  padding: 11px 14px;
  border: 1px solid rgba(77, 77, 77, 0.2);
  border-radius: 8px;
  background: transparent;
  color: #4d4d4d;
  gap: 8px;
}

.height-predictor .custom-dropdown__trigger:hover,
.height-predictor .custom-dropdown.is-open .custom-dropdown__trigger,
.height-predictor .custom-dropdown.has-value .custom-dropdown__trigger {
  background: transparent;
  border-color: rgba(77, 77, 77, 0.2);
  color: #4d4d4d;
}

.height-predictor .custom-dropdown__trigger:focus {
  border-color: rgba(77, 77, 77, 0.2);
  outline: none;
}

.height-predictor .custom-dropdown__value {
  font-weight: 400;
  font-size: 16px;
  line-height: 22px;
  color: #4d4d4d;
}

.height-predictor .custom-dropdown__arrow {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin: 0;
}

.height-predictor .custom-dropdown__arrow svg {
  display: block;
  width: 24px;
  height: 24px;
}

.height-predictor .custom-dropdown__arrow svg path {
  stroke: #4d4d4d;
}

.height-predictor .custom-dropdown.has-value .custom-dropdown__arrow svg path {
  stroke: #4d4d4d;
}

.height-predictor__actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 20px;
}

.height-predictor__actions .pregnancy-calendar__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 48px;
  padding: 11px 24px;
  background-color: #60a54a;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  margin-top: 0;
}

.height-predictor__actions .pregnancy-calendar__submit:hover {
  background-color: #559642;
}

.height-predictor__actions .pregnancy-calendar__clear {
  flex: 0 0 auto;
  border: 1px solid #b1a8f6;
  border-radius: 8px;
  color: var(--color-text);
}
.height-predictor__cards {
  display: grid;
  gap: 32px;
}

@media (min-width: 992px) {
  .height-predictor__cards {
    grid-template-columns: minmax(0, 1fr) minmax(0, 414px);
    gap: 32px;
    align-items: stretch;
  }
}

.height-predictor__form-card,
.height-predictor__result-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  padding: 24px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 16px rgba(48, 48, 48, 0.06);
}

.height-predictor__form-card {
  max-width: none;
}

.height-predictor__result-card {
  max-width: 100%;
  min-height: 100%;
}

@media (min-width: 992px) {
  .height-predictor__form-card,
  .height-predictor__result-card {
    padding: 24px 32px;
  }

  .height-predictor__result-card {
    max-width: 414px;
  }
}

.height-predictor__section {
  margin: 0 0 18px;
  padding: 0;
  border: none;
}

.height-predictor__section-title {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  padding: 0 0 3px;
  border: none;
  border-bottom: 1px solid rgba(77, 77, 77, 0.2);
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 500;
  line-height: 22px;
  color: #303030;
}

.height-predictor__section-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.height-predictor__section-icon {
  display: block;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
}

.height-predictor__row {
  display: grid;
  gap: 32px;
  margin-bottom: 10px;
}

.height-predictor__row--2col {
  grid-template-columns: 1fr;
}

.height-predictor__row--3col {
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 768px) {
  .height-predictor__row--2col {
    grid-template-columns: 1fr 1fr;
  }

  .height-predictor__row--3col {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.height-predictor__field {
  min-width: 0;
}

.height-predictor__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.height-predictor__label--empty {
  visibility: hidden;
}

.height-predictor__input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  min-height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
}

.height-predictor__input-group--dual {
  flex-wrap: wrap;
  justify-content: center;
}

.height-predictor__form-card[data-unit-system="metric"] .js-hp-child-height-imperial,
.height-predictor__form-card[data-unit-system="metric"] .js-hp-child-weight-imperial,
.height-predictor__form-card[data-unit-system="metric"] .js-hp-mother-height-imperial,
.height-predictor__form-card[data-unit-system="metric"] .js-hp-father-height-imperial {
  display: none !important;
}

.height-predictor__form-card[data-unit-system="imperial"] .js-hp-child-height-metric,
.height-predictor__form-card[data-unit-system="imperial"] .js-hp-child-weight-metric,
.height-predictor__form-card[data-unit-system="imperial"] .js-hp-mother-height-metric,
.height-predictor__form-card[data-unit-system="imperial"] .js-hp-father-height-metric {
  display: none !important;
}

.height-predictor__input {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  border: none;
  background: transparent;
  font-family: var(--font-primary);
  font-size: 16px;
  color: var(--color-text);
  outline: none;
}

.height-predictor__input--short {
  flex: 0 1 56px;
}

.height-predictor__age-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.height-predictor__unit-label {
  flex-shrink: 0;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: #4d4d4d;
}

.height-predictor__select {
  width: 100%;
  background-color: #fff;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.height-predictor__form-errors {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fdecea;
  color: #c0392b;
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.4;
}

.height-predictor__form-errors p {
  margin: 0 0 4px;
}

.height-predictor__form-errors p:last-child {
  margin-bottom: 0;
}

/* Result card */
.height-predictor__result-visual {
  display: flex;
  justify-content: center;
  margin: 0 0 20px;
}

.height-predictor__result-visual img {
  display: block;
  width: min(100%, 280px);
  height: auto;
  object-fit: contain;
}

.height-predictor__result-title {
  margin: 0 0 15px;
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-text);
  text-align: center;
}

.height-predictor__result-placeholder {
  margin: 0 0 15px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  text-align: center;
  line-height: 22px;
  color: var(--color-text-secondary);
}

.height-predictor__result-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: auto 0 20px;
  padding: 16px 20px;
  min-height: 120px;
  border: 1px solid #503b68;
  border-radius: 12px;
  text-align: center;
}

.height-predictor__result-empty-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.height-predictor__result-empty {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  color: #4d4d4d;
}

.height-predictor__result-smile {
  display: block;
  width: 42px;
  height: 60px;
  margin-top: 9px;
}

.height-predictor__result-value {
  margin: 0;
  width: 100%;
  font-family: var(--font-primary);
  font-size: 32px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
  color: #6e4f95;
}

.height-predictor__result-range {
  margin: 0;
  width: 100%;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  color: var(--color-text-secondary);
}

.height-predictor__result-method {
  margin: 0 0 12px;
  font-family: var(--font-primary);
  font-size: 13px;
  color: var(--color-text-muted);
}

.height-predictor__result-disclaimer {
  margin: auto 0 0;
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 22px;
  text-align: center;
  color: #4d4d4d;
}

.height-predictor__warnings {
  margin-bottom: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff8e6;
  color: #8a6d00;
  font-family: var(--font-primary);
  font-size: 13px;
  line-height: 1.4;
}

/* MamaPoints suggest form */
.height-predictor-below {
  padding: 64px 0 48px;
}

.height-predictor-below .container {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.height-predictor-content {
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

.height-predictor-content__title,
.height-predictor-content__subtitle {
  margin: 0 0 12px;
  font-family: var(--font-primary);
  font-size: 22px;
  font-weight: 600;
  line-height: 18px;
  color: #303030;
}

.height-predictor-content__subtitle {
  margin-top: 24px;
}

.height-predictor-content p {
  margin: 0 0 16px;
}

.height-predictor-content p:last-child {
  margin-bottom: 0;
}

.height-predictor-tools {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.height-predictor-tools__title {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 32px;
  line-height: 32px;
  font-weight: 500;
  color: var(--color-text);
}

.height-predictor-tools__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 16px;
  align-items: stretch;
}

@media (min-width: 992px) {
  .height-predictor-tools__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 20px;
  }
}

@media (min-width: 1200px) {
  .height-predictor-tools__grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 24px 16px;
  }
}

.height-predictor-tools__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  margin: 0;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 16px;
  cursor: pointer;
  transition: box-shadow 0.2s ease;
}

a.height-predictor-tools__card:hover {
  text-decoration: none;
  color: inherit;
}

a.height-predictor-tools__card:hover .height-predictor-tools__card-btn {
  background: #559642;
  color: #fff;
}

.height-predictor-tools__card--inactive {
  cursor: default;
  opacity: 0.55;
  pointer-events: none;
}

.height-predictor-tools__card--inactive .height-predictor-tools__card-btn {
  background: #b8b8b8;
}

.height-predictor-tools__card-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  background: #faf8fc;
  overflow: hidden;
}

.height-predictor-tools__card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.height-predictor-tools__card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 8px 14px;
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .height-predictor-tools__card-body {
    padding: 0 8px 32px;
  }
}

.height-predictor-tools__card-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  line-height: 16px;
  color: #303030;
  white-space: pre-line;
}

.height-predictor-tools__card-desc {
  margin: 0;
  flex: 1;
  font-family: var(--font-primary);
  font-size: 13px;
  line-height: 1.35;
  color: var(--color-text-secondary);
}

.height-predictor-tools__card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin-top: auto;
  padding: 11px 35px;
  border-radius: 8px;
  background: #60a54a;
  color: #fff;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.height-predictor-tools__card-btn:hover {
  background: #559642;
  color: #fff;
}

/* MamaPoints suggest form */
.height-predictor__suggest {
  margin: 0;
}

.height-predictor__suggest-shell {
  border-radius: 16px;
  overflow: hidden;
  padding: 32px 16px;
  background-color: #a5c1f1;
  background-image: var(--hp-suggest-bg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

@media (min-width: 768px) {
  .height-predictor__suggest-shell {
    padding: 24px 24px;
  }
}

.height-predictor__suggest-card {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 24px 28px;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  overflow: hidden;
}

.height-predictor__suggest-recaptcha {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 16px;
  min-height: 0;
}

.height-predictor__suggest-card.has-recaptcha-badge .height-predictor__suggest-recaptcha {
  min-height: 60px;
}

/* Keep reCAPTCHA v3 badge inside the suggest card form, not page-fixed. */
.height-predictor__suggest-recaptcha .grecaptcha-badge {
  position: relative !important;
  bottom: auto !important;
  right: auto !important;
  left: auto !important;
  top: auto !important;
  width: 256px;
  max-width: 100%;
  margin: 0 auto !important;
  box-shadow: none !important;
  transform: none !important;
  visibility: visible !important;
  opacity: 1 !important;
  z-index: 1 !important;
}

.height-predictor__suggest-badge {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  padding: 4px 12px;
  border-radius: 0 0 8px 8px;
  background: #6e4f95;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: normal;
  text-transform: none;
}

.height-predictor__suggest-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.height-predictor__suggest-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.height-predictor__suggest-kicker {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: 0.12em;
  text-transform: none;
  color: #000;
}

.height-predictor__suggest-logo {
  display: block;
  width: min(182px, 70%);
  height: auto;
  margin: 0;
}

.height-predictor__suggest-lead {
  margin: 0;
  max-width: 320px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  color: #4d4d4d;
}

.height-predictor__suggest-form {
  margin-top: 24px;
  text-align: left;
}

.height-predictor__suggest-label {
  display: block;
  margin: 0 0 4px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: #6e4f95;
}

.height-predictor__suggest-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-bottom: 12px;
}

.height-predictor__suggest-row .height-predictor__field {
  width: 100%;
}

.height-predictor__suggest-select,
.height-predictor__suggest-textarea {
  width: 100%;
  padding: 12px 12px;
  border: none;
  border-radius: 8px;
  background: #f6f6f6;
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 20px;
  color: #878787;
}

.height-predictor__suggest-select {
  height: 44px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23303030' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
  padding-right: 40px;
  cursor: pointer;
}

.height-predictor__suggest-textarea {
  max-height: 72px;
  min-height: 0;
  resize: none;
  overflow-y: auto;
}

.height-predictor__suggest-textarea::placeholder {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #868c98;
}

.height-predictor__suggest-select:focus,
.height-predictor__suggest-textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 0;
}

.height-predictor__suggest-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

.height-predictor__suggest-footer .pregnancy-calendar__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  background-color: var(--color-accent, #8fb56c);
  color: #fff;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.height-predictor__suggest-footer .pregnancy-calendar__submit:hover {
  background-color: var(--color-accent-hover, #7da35d);
}

.height-predictor__suggest-points {
  margin: 0;
  max-width: 164px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: #6e4f95;
  white-space: pre-line;
}

.height-predictor__suggest-status {
  margin: 12px 0 0;
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.4;
}

.height-predictor__suggest-error {
  margin: 6px 0 0;
  font-family: var(--font-primary);
  font-size: 13px;
  line-height: 1.35;
  color: #c0392b;
}

.height-predictor__suggest-success {
  margin-top: 24px;
  padding: 16px 12px;
  text-align: center;
}

.height-predictor__suggest-success-title {
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: #6e4f95;
}

.height-predictor__suggest-success-text {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.4;
  color: #4d4d4d;
}

.height-predictor__suggest-select.is-invalid,
.height-predictor__suggest-textarea.is-invalid {
  outline: 2px solid #c0392b;
}

/* FAQ */
.height-predictor-faq {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.height-predictor-faq__header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.height-predictor-faq__title {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 26px;
  line-height: 32px;
  font-weight: 500;
  color: var(--color-text);
}

.height-predictor-faq__lead {
  margin: 0;
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.45;
  color: var(--color-text-secondary);
}

.height-predictor-faq__grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.height-predictor-faq__column {
  display: contents;
}

@media (min-width: 768px) {
  .height-predictor-faq__grid {
    flex-direction: row;
    align-items: flex-start;
    gap: 20px;
  }

  .height-predictor-faq__column {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
  }
}

.height-predictor-faq__item {
  border-radius: 12px;
  background: #f2eff8;
  overflow: hidden;
}

.height-predictor-faq__item[open] {
  background: var(--color-primary);
}

.height-predictor-faq__question {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  column-gap: 16px;
  row-gap: 4px;
  padding: 12px 16px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text);
  cursor: pointer;
  list-style: none;
}

.height-predictor-faq__question::-webkit-details-marker {
  display: none;
}

.height-predictor-faq__question-body {
  display: contents;
}

.height-predictor-faq__question-text {
  grid-column: 1;
  grid-row: 1;
  display: block;
  min-width: 0;
}

.height-predictor-faq__answer {
  display: none;
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  color: #f6f6f6;
}

.height-predictor-faq__item[open] .height-predictor-faq__answer {
  display: block;
}

.height-predictor-faq__toggle {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-primary);
}

.height-predictor-faq__toggle-icon {
  display: block;
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.height-predictor-faq__item[open] .height-predictor-faq__question {
  color: #fff;
}

.height-predictor-faq__item[open] .height-predictor-faq__toggle {
  background: rgba(255, 255, 255, 0.28);
}

.height-predictor-faq__item[open] .height-predictor-faq__toggle-icon {
  transform: rotate(180deg);
}

/* ==========================================================================
   Mobile (< 768px)
   ========================================================================== */

@media (max-width: 767px) {
  .height-predictor-page .pregnancy-calendar-page__intro {
    padding-top: 16px;
  }

  .pregnancy-calendar.height-predictor {
    gap: 24px;
    padding: 16px;
    border-radius: 10px;
  }

  .height-predictor__header {
    gap: 16px;
  }

  .height-predictor__header-main {
    align-items: flex-start;
  }

  .height-predictor__badge {
    font-size: 14px;
    line-height: 16px;
  }

  .height-predictor__title {
    font-size: 22px;
    line-height: 28px;
  }

  .height-predictor__subtitle {
    max-width: none;
    font-size: 14px;
    line-height: 20px;
  }

  .height-predictor__header-aside {
    justify-content: flex-start;
  }

  .height-predictor__units {
    width: auto;
    max-width: 320px;
  }

  .height-predictor__unit-btn {
    padding: 9px 24px;
  }

  .height-predictor__cards {
    gap: 20px;
  }

  .height-predictor__form-card,
  .height-predictor__result-card,
  .height-predictor__suggest-card {
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(48, 48, 48, 0.08);
  }

  .height-predictor__result-card {
    min-height: 0;
  }

  .height-predictor__section {
    margin-bottom: 16px;
  }

  .height-predictor__section-title {
    margin-bottom: 14px;
    font-size: 18px;
    line-height: 22px;
  }

  .height-predictor__section-icon {
    width: 32px;
    height: 32px;
  }

  .height-predictor__section-icon--parents {
    width: 28px;
    height: 28px;
  }

  .height-predictor__row {
    gap: 16px;
    margin-bottom: 8px;
  }

  .height-predictor__age-row {
    gap: 16px;
  }

  .height-predictor__actions {
    flex-direction: row;
    gap: 12px;
  }

  .height-predictor__actions .pregnancy-calendar__submit {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 48px;
  }

  .height-predictor__actions .pregnancy-calendar__clear {
    flex: 0 0 auto;
    width: auto;
    height: 48px;
  }

  .height-predictor__units-note--card {
    font-size: 14px;
    line-height: 20px;
    text-align: center;
  }

  .height-predictor__result-title {
    font-size: 20px;
  }

  .height-predictor__result-placeholder,
  .height-predictor__result-disclaimer {
    font-size: 14px;
    line-height: 20px;
  }

  .height-predictor__result-value {
    font-size: 28px;
  }

  .height-predictor__result-visual img {
    width: min(100%, 220px);
  }

  .height-predictor-below {
    padding: 32px 0 calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .height-predictor-below .container {
    gap: 32px;
  }

  .height-predictor-content {
    padding: 8px;
    border-radius: 16px;
  }

  .height-predictor-content__title,
  .height-predictor-content__subtitle {
    font-size: 22px;
    font-weight: 700;
    line-height: 18px;
  }

  .height-predictor-tools__title {
    font-size: 24px;
    line-height: 28px;
  }

  .height-predictor-tools__grid {
    gap: 16px 16px;
  }

  .height-predictor-tools__card-body {
    padding: 8px 9px 14px;
  }

  .height-predictor-tools__card-btn {
    padding: 0 20px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
    line-height: 22px;
  }

  .height-predictor-faq__title {
    font-size: 22px;
    line-height: 28px;
  }

  .height-predictor-faq__question {
    padding: 12px 14px;
    font-size: 15px;
  }

  .height-predictor__suggest-shell {
    padding: 130px 16px;
    background-image: var(--hp-suggest-bg-mobile);
  }

  .height-predictor__suggest-card {
    padding: 32px 16px 24px;
  }

  .height-predictor__suggest-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .height-predictor__suggest-footer .pregnancy-calendar__submit {
    width: 100%;
    margin-top: 0;
  }

  .height-predictor__suggest-points {
    max-width: none;
    text-align: center;
  }
}

/* ==========================================================================
   Tablet (768px – 991px)
   ========================================================================== */

@media (min-width: 768px) and (max-width: 991px) {
  .height-predictor-page .pregnancy-calendar-page__intro {
    padding-top: 24px;
  }

  .pregnancy-calendar.height-predictor {
    padding: 24px;
    border-radius: 12px;
    gap: 28px;
  }

  .height-predictor__header {
    gap: 20px;
  }

  .height-predictor__title {
    font-size: 24px;
    line-height: 30px;
  }

  .height-predictor__cards {
    gap: 24px;
  }

  .height-predictor__form-card,
  .height-predictor__result-card {
    padding: 20px 24px;
  }

  .height-predictor__result-visual img {
    width: min(100%, 200px);
  }

  .height-predictor-tools__card-visual {
    width: 78%;
    max-width: 148px;
    margin-inline: auto;
    aspect-ratio: 1;
  }

  .height-predictor-tools__card-img {
    padding: 10px;
  }

  .height-predictor__age-row {
    gap: 24px;
  }

  .height-predictor-below {
    padding: 48px 0 40px;
  }

  .height-predictor-below .container {
    gap: 48px;
  }

  .height-predictor-content {
    padding: 20px 24px;
  }

  .height-predictor-tools__title {
    font-size: 28px;
    line-height: 32px;
  }

  .height-predictor-faq__title {
    font-size: 24px;
    line-height: 30px;
  }
}
