/* Step 5 date and gender field alignment. Same label baseline and input height. */
body.page-id-198 .bz-step5 .bzfr-gender-dob-row {
 align-items:stretch!important;
}
body.page-id-198 .bz-step5 .bzfr-gender-dob-row > fieldset.bzf-gender {
 position:relative; display:block!important; padding:0!important; margin:0!important;
 border:0!important; min-width:0!important;
}
body.page-id-198 .bz-step5 .bzfr-gender-dob-row > fieldset.bzf-gender > legend {
 position:absolute!important;width:1px!important;height:1px!important;padding:0!important;
 margin:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;
 white-space:nowrap!important;border:0!important;
}
body.page-id-198 .bz-step5 .bzfr-gender-dob-row .bzsc-gender-label {
 display:flex!important; flex-direction:column!important; justify-content:flex-start!important;
 gap:5px!important; margin:10px 0!important; color:#233e59!important;
 font-size:.9rem!important;font-weight:550!important;min-width:0!important;
}
body.page-id-198 .bz-step5 .bzfr-gender-dob-row .bzsc-gender-label select {
 width:100%; margin-top:6px!important; box-sizing:border-box;
}

/* Step 5 agreements now live on Step 6. Only their visible placement changes;
   the four original consent inputs remain in the request form for submission. */
body.page-id-198 .bz-step5 .bzfr-form .bzf-consent {display:none!important;}
body.page-id-198 .bz-step5 .bzsc-family-summary {display:none;}
body.page-id-198 .bz-step5.bzsc-review-open .bzsc-family-summary {
 display:block; padding:16px 18px; margin:0 0 20px;
 background:#fff; border:1px solid #dce2e9; border-radius:12px;
}
body.page-id-198 .bz-step5 .bzsc-family-heading {display:flex;align-items:start;justify-content:space-between;gap:12px;}
body.page-id-198 .bz-step5 .bzsc-family-heading > div {display:flex;flex-direction:column;gap:4px;}
body.page-id-198 .bz-step5 .bzsc-family-title {color:#102b4f;font-size:1.02rem;font-weight:650;}
body.page-id-198 .bz-step5 .bzsc-edit-family {
 background:none!important;border:0!important;color:#7d0029!important;text-decoration:underline!important;
 cursor:pointer!important;font-size:.85rem!important;font-weight:650!important;padding:2px 0!important;
}
body.page-id-198 .bz-step5 .bzsc-family-lines {margin-top:12px;display:flex;flex-direction:column;gap:6px;}
body.page-id-198 .bz-step5 .bzsc-family-line {font-size:.9rem;color:#4c5a6a;line-height:1.5;overflow-wrap:anywhere;}

/* The first four original recap blocks stay exactly as they were. Step 6 is
   only instructions, the agreements and one full-width submit button. */
body.page-id-198 .bz-step5.bzsc-review-open .bzf-final-review .bzf-review-details,
body.page-id-198 .bz-step5.bzsc-review-open .bzf-final-review .bzf-confirm-note,
body.page-id-198 .bz-step5.bzsc-review-open .bzf-final-review .bzf-review-back {display:none!important;}
body.page-id-198 .bz-step5.bzsc-review-open .bzf-final-review {margin-top:0;}
body.page-id-198 .bz-step5 .bzsc-step6-agreements {
 background:#fcfdff; border:1px solid #e0e4eb; border-radius:12px;
 padding:18px 20px;margin:20px 0 12px;
}
body.page-id-198 .bz-step5 .bzsc-step6-agreements h3 {
 margin:0 0 12px;color:#7d0029;font-size:1.07rem;
}
body.page-id-198 .bz-step5 .bzsc-step6-consents label {
 display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:12px;
 margin:10px 0;color:#233e59;cursor:pointer;line-height:1.5;
 font-size:.94rem;
}
body.page-id-198 .bz-step5 .bzsc-step6-consents label input[type=checkbox] {
 width:18px;height:18px;flex:0 0 auto;margin:3px 0 0;accent-color:#7d0029;
}
body.page-id-198 .bz-step5 .bzsc-step6-consents a {color:#7d0029;text-underline-offset:2px;}
body.page-id-198 .bz-step5.bzsc-review-open .bzf-final-actions {display:block!important;margin-top:18px;}
body.page-id-198 .bz-step5.bzsc-review-open .bzf-final-actions .bzf-final-submit {
 display:block!important; width:100%!important;min-height:52px!important;max-width:none!important;
 flex:none!important;background:#7d0029!important;color:#fff!important;border:0!important;
 border-radius:9px!important;font-size:1rem!important;font-weight:650!important;
}
body.page-id-198 .bz-step5.bzsc-review-open .bzf-final-actions .bzf-final-submit:hover {background:#640021!important;}
body.page-id-198 .bz-step5.bzsc-review-open .bzf-final-review > p {line-height:1.6;margin:10px 0;}
@media(max-width:600px){
 body.page-id-198 .bz-step5 .bzsc-step6-agreements {padding:14px;}
 body.page-id-198 .bz-step5 .bzsc-family-summary {padding:14px;}
}
/* Override the older two-button Gender label styling. Label and input should
   stack exactly like Date of birth, not sit on the same line. */
body.page-id-198 .bz-step5 .bzfr-gender-dob-row > fieldset.bzf-gender > label.bzsc-gender-label {
 display:block!important;flex-direction:column!important;justify-content:flex-start!important;
 align-items:stretch!important;border:0!important;background:transparent!important;
 color:#233e59!important;font-size:.9rem!important;font-weight:550!important;
 min-height:0!important;margin:10px 0!important;padding:0!important;
 text-align:left!important;cursor:default!important;
}
body.page-id-198 .bz-step5 .bzfr-gender-dob-row > fieldset.bzf-gender > label.bzsc-gender-label > select.bzsc-gender-select {
 display:block!important;box-sizing:border-box!important;width:100%!important;
 margin-top:6px!important;min-height:46px!important;
}

body.page-id-198 .bz-step5 .bzsc-step6-consents .bzsc-consent-text {display:inline;flex:1;min-width:0;overflow-wrap:anywhere;}
body.page-id-198 .bz-step5 .bzsc-step6-consents .bzsc-consent-text a {display:inline;color:#7d0029;}


/* Completed booking review: equal card styling for Steps 1–5.
   Only changes the summary arrangement shown above Step 6.
   The native Steps 1–4 cards and their Edit controls remain intact. */
body.page-id-198 .bz-step5.bzsc-review-open .bzfr-top {
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  align-items:stretch!important;
  column-gap:14px!important;
  row-gap:16px!important;
}
body.page-id-198 .bz-step5.bzsc-review-open .bzfr-top > .bzfr-top-label {
  grid-column:1/-1!important;
  margin-bottom:-6px!important;
}
body.page-id-198 .bz-step5.bzsc-review-open .bzfr-top > .bzfr-recap {
  grid-column:1/-1!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:14px!important;
  margin:0!important;
}
body.page-id-198 .bz-step5.bzsc-review-open .bzfr-top > .bzfr-price-recap {
  grid-column:1!important;
  margin:0!important;
  padding:15px 17px!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:flex-start!important;
  gap:5px!important;
  background:#fff!important;
  border:1px solid #dce2e9!important;
  border-radius:12px!important;
  min-width:0!important;
  box-shadow:none!important;
}
body.page-id-198 .bz-step5.bzsc-review-open .bzfr-top > .bzfr-price-recap > div:first-child {
  min-width:0!important;
}
body.page-id-198 .bz-step5.bzsc-review-open .bzfr-price-recap .bzfr-mini-step {
  display:block!important;
  margin-bottom:7px!important;
}
body.page-id-198 .bz-step5.bzsc-review-open .bzfr-price-recap .bzsc-price-title {
  display:block!important;
  color:#102b4f!important;
  font-size:1.02rem!important;
  font-weight:650!important;
  line-height:1.4!important;
}
body.page-id-198 .bz-step5.bzsc-review-open .bzfr-price-recap p {
  margin:5px 0 8px!important;
  font-size:.86rem!important;
  color:#4c5a6a!important;
  line-height:1.5!important;
}
body.page-id-198 .bz-step5.bzsc-review-open .bzfr-price-recap > div:last-child {
  display:flex!important;
  flex-direction:column!important;
  margin-top:auto!important;
  align-items:flex-start!important;
  text-align:left!important;
  gap:10px!important;
}
body.page-id-198 .bz-step5.bzsc-review-open .bzfr-price-recap strong {
  font-size:1.14rem!important;
  color:#102b4f!important;
  line-height:1.45!important;
}
body.page-id-198 .bz-step5.bzsc-review-open .bzfr-top > .bzsc-family-summary {
  grid-column:2/span 2!important;
  margin:0!important;
  min-width:0!important;
  padding:15px 17px!important;
  display:flex!important;
  flex-direction:column!important;
  background:#fff!important;
  border:1px solid #dce2e9!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
/* Keep the Step 5 Edit action beneath its summary lines, matching Steps 1–4. */
body.page-id-198 .bz-step5.bzsc-review-open .bzsc-family-heading {display:contents!important;}
body.page-id-198 .bz-step5.bzsc-review-open .bzsc-family-heading > div {order:0!important;}
body.page-id-198 .bz-step5.bzsc-review-open .bzsc-family-lines {order:1!important;margin-top:10px!important;}
body.page-id-198 .bz-step5.bzsc-review-open .bzsc-edit-family {
  order:2!important;
  align-self:flex-start!important;
  margin-top:auto!important;
  padding-top:12px!important;
}
@media (max-width:720px){
  body.page-id-198 .bz-step5.bzsc-review-open .bzfr-top {
    grid-template-columns:1fr!important;
  }
  body.page-id-198 .bz-step5.bzsc-review-open .bzfr-top > .bzfr-recap,
  body.page-id-198 .bz-step5.bzsc-review-open .bzfr-top > .bzfr-price-recap,
  body.page-id-198 .bz-step5.bzsc-review-open .bzfr-top > .bzsc-family-summary {
    grid-column:1/-1!important;
  }
  body.page-id-198 .bz-step5.bzsc-review-open .bzfr-top > .bzfr-recap {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media (max-width:600px){
  body.page-id-198 .bz-step5.bzsc-review-open .bzfr-top > .bzfr-recap {
    grid-template-columns:1fr!important;
  }
}

/* Step 4 is a neutral white recap card at every stage, not just on Step 6.
   Preserve its original size and Edit action while Step 5 is open. */
body.page-id-198 .bz-step5 .bzfr-price-recap,
body.page-id-198 .bz-step5 .bzfr-top > .bzfr-price-recap {
  background:#fff!important;
  border:1px solid #dce2e9!important;
  border-radius:12px!important;
  box-shadow:none!important;
}
body.page-id-198 .bz-step5 .bzfr-price-recap strong {
  color:#102b4f!important;
}
