/* =============================================================
   QUIZ TEMPLATE – quiz-template.css
   FrankCrum / Sprocket Rocket Child Theme
   ============================================================= */

/* ── 1. Hide until JS is ready ───────────────────────────────── */
.hsfc-Form {
  visibility: hidden !important;
  opacity: 0 !important;
  transition: opacity 0.4s ease !important;
}
.hsfc-Form.js-quiz-ready {
  visibility: visible !important;
  opacity: 1 !important;
}

/* ── 2. Page layout skeleton ─────────────────────────────────── */



/* Lock the DND row that contains the quiz to never shrink */
.body_dnd_area-row-4,
.body_dnd_area-row-4-background-layers,
.body_dnd_area-row-4-padding {
  min-height: 100vh !important;
}

html, body {
    min-height: 100vh;
  height: 100%;
  margin: 0;
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
}

main {
  flex: 1 0 auto; /* This makes the main content area grow to fill the remaining space */
}

.body_dnd_area {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.body_dnd_area-row-4,
.body_dnd_area-row-4-background-layers,
.body_dnd_area-row-4-padding {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

/* ── 3. Form wrapper ─────────────────────────────────────────── */
/* JS locks height via inline style; overflow:hidden clips animations */
.hsfc-FormWrapper {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  width: 100% !important;
  overflow: hidden !important;
  position: relative !important;
}

/* ── 4. Footer ───────────────────────────────────────────────── */
.custom-footer {
  margin-top: auto;
  flex-shrink: 0;
  min-height: auto !important;
  height: auto !important;
  padding-top: 30px !important;
  padding-bottom: 30px !important;
}
.custom-footer,
.custom-footer .row-fluid,
.custom-footer .container-fluid,
.custom-footer .dnd-section,
.custom-footer .dnd-column {
  min-height: auto !important;
  height: auto !important;
}


[data-hsfc-id=Renderer] .hsfc-TextInput,
#hs_cos_wrapper_widget_1749143976725 input[type="text"],
[data-hsfc-id=Renderer] .hsfc-ErrorAlert {
  width: 50% !important;
  display: flex !important;
  justify-content: center !important;
  margin: 0 auto !important;
  padding-left: 30px !important;
}

#hs_cos_wrapper_widget_1749143976725 input[type="email"] {
  padding-left: 30px !important;
}


/* ── 5. Misc overrides ───────────────────────────────────────── */
body { overflow-x: hidden; overflow-y: auto; }

.body_dnd_area-row-4-background-layers,
.hsfc-FormWrapper {
  width: 100% !important;
}

.body_dnd_area-row-4-padding {
  padding-bottom: 10px !important;
}

/* ── 6. Step sizing ──────────────────────────────────────────── */
[data-hsfc-id=Renderer] .hsfc-Step {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}


/* ── 7. Validation error ─────────────────────────────────────── */
.quiz-error-text {
  color: #dc3545 !important;
  font-size: 0.9rem !important;
  margin: 8px 0 !important;
  text-align: center !important;
  display: block !important;
  animation: quiz-shake 0.35s ease;
}
@keyframes quiz-shake {
  0%, 100% { transform: translateX(0); }
  25%       { transform: translateX(-6px); }
  75%       { transform: translateX(6px); }
}

/* ── 8. Question label / heading ─────────────────────────────── */
#hs_cos_wrapper_widget_1749143976725 label:has(input):not(.hs-error-msg) span {
  font-weight: 500 !important;
  line-height: 1.5 !important;
}
.hsfc-FieldLabel {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
  text-align: center;
  width: 100%;
}
.hsfc-FieldLabel > span:not(.hsfc-FieldLabel__RequiredIndicator) {
  font-size: 25px !important;
  font-weight: 700;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
}
.hsfc-FieldLabel__RequiredIndicator {
  font-size: 22px;
  font-weight: 700;
  color: #dc3545;
  line-height: 1;
}
.hsfc-FieldLabel > span,
#hs_cos_wrapper_widget_1749143976725 label:not(.hs-error-msg):not(:has(input)) span {
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  white-space: normal !important;
  word-break: break-word !important;
  text-align: center !important;
  padding: 1px 0 !important;
  width: 100% !important;
  min-width: 100%;
  box-sizing: border-box !important;
}
#hs_cos_wrapper_widget_1749143976725 label:not(.hs-error-msg) {
  padding-bottom: 30px;
}

/* ── 9. Nav buttons ──────────────────────────────────────────── */

.hsfc-NavigationRow__Buttons .hsfc-Button:last-child,
.hsfc-NavigationRow__Buttons .hsfc-Button[id*="next"],
.hsfc-NavigationRow__Buttons .hsfc-Button:not([id*="prev"]):not(:only-child) {
  background: linear-gradient(135deg, #0F99D6 0%, #0F99D6 100%) !important;
  color: #ffffff !important;
  border: 2px solid transparent !important;
}



/* First 'Next' button same size as others */
.hsfc-NavigationRow__Buttons .hsfc-Button:only-child {
  flex: 0 1 auto !important;
  width: auto !important;
  min-width: 200px;
  margin-left: auto !important;
  margin-right: 60px !important;
}

.hsfc-NavigationRow__Buttons .hsfc-Button {
  flex: 0 1 auto !important;
  min-width: 200px !important;
}

[data-hsfc-id=Renderer] .hsfc-NavigationRow {
  flex-shrink: 0 !important;
  margin-top: auto !important;
  padding-top: 16px !important;
}
  
[data-hsfc-id=Renderer] .hsfc-NavigationRow__Buttons {
  display: flex !important;
  justify-content: center !important;
  gap: 70px;
  max-width: 600px;
  width: 100% !important;
  margin: 0 auto !important;
}
form,
[data-hsfc-id="Renderer"] .hsfc-Form {
  margin: 0 auto;
  padding: 0 16px;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
}
.hsfc-NavigationRow__Buttons {
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

/* Base button reset + shared foundation */
.hsfc-NavigationRow__Buttons .hsfc-Button {
  flex: 1 1 0;
  position: relative !important;
  overflow: hidden !important;           /* clips the shimmer + ripple */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 14px 28px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
  text-transform: uppercase !important;
  border-radius: 15px !important;        /* pill shape */
  border: none !important;
  cursor: pointer !important;
  outline: none !important;
  /* smooth everything */
  transition:
    transform        0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow       0.22s ease,
    background-color 0.22s ease,
    color            0.22s ease !important;
}

/* ── Next button — solid filled pill ── */
.hsfc-NavigationRow__Buttons .hsfc-Button:last-child,
.hsfc-NavigationRow__Buttons .hsfc-Button[id*="next"],
.hsfc-NavigationRow__Buttons .hsfc-Button:not([id*="prev"]):not(:only-child) {
  background: linear-gradient(135deg, #0F99D6  0%, #0F99D6  100%) !important;
  color: #1a3a00 !important;
}

/* Next: arrow icon via ::after pseudo */
.hsfc-NavigationRow__Buttons .hsfc-Button:last-child::after {
  content: '→' !important;
  font-size: 16px !important;
  transition: transform 0.2s ease !important;
  display: inline-block !important;
}

/* Next: hover — lift + deepen shadow */
.hsfc-NavigationRow__Buttons .hsfc-Button:last-child:hover {
  transform: translateY(-3px) !important;

}

/* Next: hover — arrow nudges right */
.hsfc-NavigationRow__Buttons .hsfc-Button:last-child:hover::after {
  transform: translateX(4px) !important;
}

/* ── Previous button — ghost outline pill ── */
.hsfc-NavigationRow__Buttons .hsfc-Button:first-child:not(:last-child) {
  background: transparent !important;
  color: #555 !important;
  border: 2px solid #ccc !important;
  box-shadow: none !important;
}

/* Prev: arrow icon via ::before */
.hsfc-NavigationRow__Buttons .hsfc-Button:first-child:not(:last-child)::before {
  content: '←' !important;
  font-size: 16px !important;
  transition: transform 0.2s ease !important;
  display: inline-block !important;
}

/* Prev: hover — subtle border darkening + lift */
.hsfc-NavigationRow__Buttons .hsfc-Button:first-child:not(:last-child):hover {
  border-color: #999 !important;
  color: #222 !important;
  transform: translateY(-2px) !important;
}

/* Prev: hover — arrow nudges left */
.hsfc-NavigationRow__Buttons .hsfc-Button:first-child:not(:last-child):hover::before {
  transform: translateX(-4px) !important;
}

/* ── Shared active/press state ── */
.hsfc-NavigationRow__Buttons .hsfc-Button:active {
  transform: scale(0.96) translateY(0) !important;
  box-shadow: none !important;
}

/* ── Shimmer sweep on Next button ── */
.hsfc-NavigationRow__Buttons .hsfc-Button:last-child::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: -75% !important;
  width: 50% !important;
  height: 100% !important;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255,255,255,0.35) 50%,
    transparent 100%
  ) !important;
  transform: skewX(-20deg) !important;
  animation: quiz-btn-shimmer 3.2s ease-in-out infinite !important;
  pointer-events: none !important;
}

@keyframes quiz-btn-shimmer {
  0%   { left: -75%; }
  40%  { left: 130%; }
  100% { left: 130%; }
}

/* ── Ripple effect (injected by JS on click) ── */
.quiz-ripple {
  position: absolute !important;
  border-radius: 50% !important;
  transform: scale(0) !important;
  background: rgba(255, 255, 255, 0.45) !important;
  animation: quiz-ripple-anim 0.55s linear !important;
  pointer-events: none !important;
}

@keyframes quiz-ripple-anim {
  to {
    transform: scale(4) !important;
    opacity: 0 !important;
  }
}

/* ── 10. Radio options ───────────────────────────────────────── */
.hsfc-RadioInput { display: none !important; }

.hsfc-RadioFieldGroup__Options {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 20px !important;
  padding: 0 !important;
  width: 100% !important;
  box-sizing: border-box;
  margin: 0 auto;
  justify-content: center;
  min-height: 350px;
}
.hsfc-RadioFieldGroup__Options > div {
  width: 80% !important;
  display: flex !important;
  justify-content: center !important;
}
.hsfc-RadioFieldGroup__Options > div label.hsfc-FieldLabel {
  width: 60% !important;
  max-width: 600px !important;
  padding: 16px !important;
  font-size: 16px !important;
  text-align: center !important;
  white-space: normal !important;
  word-break: break-word !important;
  background-color: #fff !important;
  color: #000 !important;
  border: 2px solid #ccc !important;
  border-radius: 15px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
  cursor: pointer;
  box-sizing: border-box !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease,
              background-color 0.2s ease, transform 0.15s ease !important;
}
.hsfc-RadioFieldGroup__Options > div label.hsfc-FieldLabel:hover {
  border: 2px solid rgba(0,53,128,1.0);
  transform: translateY(-2px) !important;
}
.hsfc-FieldLabel:has(input[type="radio"]:checked),
.hsfc-FieldLabel[aria-checked="true"] {
  background-color: #d0e8f7 !important;
  color: #002f6c !important;
  border: 2px solid rgba(0,53,128,1.0) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
  transform: translateY(-2px) !important;
  transition: all 0.2s ease !important;
}

/* ── 11. Progress bar ────────────────────────────────────────── */
[data-hsfc-id=Renderer] .hsfc-Step > *:not(.hsfc-NavigationRow):not(.hsfc-ProgressBar) {
    flex: 1 1 auto !important;
  overflow-y: auto !important;
}

[data-hsfc-id=Renderer] .hsfc-ProgressBar {
  flex-shrink: 0 !important;
}
  
.hsfc-ProgressBar {
  width: 50%;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
.hsfc-ProgressBar__Progress {
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* ── 12. Mobile ──────────────────────────────────────────────── */
@media (max-width: 767px) {
  .hsfc-FormWrapper { padding-bottom: 60px !important; }
  form { padding: 0 16px !important; }
  .hsfc-RadioFieldGroup__Options > div label.hsfc-FieldLabel {
    font-size: 16px !important;
    width: 90% !important;
  }
  #hs_cos_wrapper_widget_1749143976725 {
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
  .hsfc-RadioFieldGroup__Options { display: contents; }
  .hsfc-ProgressBar { width: 100% !important; }
  label { min-width: 300px; }
  .body_dnd_area-row-4-background-layers,
  .hsfc-FormWrapper {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    transform: none !important;
  }
  form,
  [data-hsfc-id="Renderer"] .hsfc-Form {
    margin: 0 auto !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  form * {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .hsfc-NavigationRow__Buttons .hsfc-Button {
    flex: 0 1 auto;
    width: auto;
  }
  [data-hsfc-id=Renderer] .hsfc-FieldChoiceList {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    row-gap: var(--hsfc-default-row-vertical-spacing, 1rem) !important;
    max-width: 600px;
    margin: 0 auto;
  }
  
  


  /* Center the solo Next button on step 1 */
  .hsfc-NavigationRow__Buttons .hsfc-Button:only-child {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 60% !important;
    min-width: unset !important;
  }

  /* Make Prev + Next fit within the screen */
  .hsfc-NavigationRow__Buttons {
    flex-direction: row !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .hsfc-NavigationRow__Buttons .hsfc-Button {
    flex: 1 1 0 !important;
    min-width: unset !important;
    max-width: 48% !important;
    padding: 14px 12px !important;
    font-size: 13px !important;
  }
  
  .hsfc-RadioFieldGroup__Options {
    min-height: 400px;

}
}

@media (max-width: 720px) {
  .hsfc-FormWrapper {
    display: flex;
    flex-direction: column;
  }

  [data-hsfc-id=Renderer] .hsfc-Form {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  [data-hsfc-id=Renderer] .hsfc-Step {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  [data-hsfc-id=Renderer] .hsfc-Step__Content {
    flex: 1;
  }

  [data-hsfc-id=Renderer] .hsfc-NavigationRow {
    margin-top: auto;
  }
}
  
  @media (max-width: 720px) {
  [data-hsfc-id=Renderer] .hsfc-EmailField input,
  [data-hsfc-id=Renderer] .hsfc-TextField input {
    font-size: 16px !important;
  }

  [data-hsfc-id=Renderer] .hsfc-NavigationRow__Buttons>* {
    touch-action: manipulation;
  }
}
}

/* ── 13. Misc ────────────────────────────────────────────────── */
.header__menu-toggle svg { display: none; }