/* ===== DESIGN TOKENS ===== */
:root {
  --bg:            hsl(200, 6%, 93%);
  --fg:            hsl(207, 10%, 25%);

  --primary:       hsl(43, 90%, 58%);
  --primary-fg:    hsl(207, 10%, 25%);
  --primary-dark:  hsl(43, 90%, 48%);
  --primary-10:    hsla(43, 90%, 58%, 0.1);
  --primary-30:    hsla(43, 90%, 58%, 0.3);

  --nav:           hsl(207, 10%, 25%);
  --nav-fg:        hsl(200, 6%, 93%);
  --nav-fg-70:     hsla(200, 6%, 93%, 0.7);
  --nav-fg-50:     hsla(200, 6%, 93%, 0.5);
  --nav-fg-20:     hsla(200, 6%, 93%, 0.2);
  --nav-fg-10:     hsla(200, 6%, 93%, 0.1);

  --border:        hsl(200, 6%, 82%);
  --muted:         hsl(210, 6%, 55%);

  --radius:        0.75rem;
  --radius-md:     calc(var(--radius) - 2px);
  --radius-sm:     calc(var(--radius) - 4px);

  --shadow-results: 0 0 0 1px rgba(60,67,73,.08), 0 8px 24px -4px rgba(60,67,73,.12);
}/* ===== HERO ===== */
.hero-section {
  max-width: 100rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 2rem;
}
.hero-title {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.hero-sub {
  margin-top: 0.5rem;
  max-width: 42rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--muted);
}
.step-footer {
    position: relative;
    padding: 1rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;

  }
  .step-footer button {
    min-width: 140px;
    padding: 0.85rem 1.35rem;
    border-radius: 9999px;
    border: 1px solid #000;
    background: #fff;
    color: #000;
    font-weight:500;
    cursor: pointer;
    transition: all ease 0.5s;
  }

  .step-footer button:hover{
    background: #D8D9D8;
  }


  .step-footer button#step-next {
    background: #f6c34d;
    border:solid 2px #f6c34d;
    color: #000;
  }
  .step-footer button#step-next:hover{
    background: none;
  }


  .step-footer button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }

  /* Button text slide on hover */
  #prev-text,
  #next-text {
    display: inline-block;
    transition: transform 0.3s ease;
  }
  #step-prev:hover #prev-text { transform: translateX(4px); }
  #step-next:hover #next-text { transform: translateX(-4px); }
.progressbar{background: #f3f3f3;height:5px;}
.stepprogress{background: red;  height:5px;}
.stepprogress.complete{background:#f6c34d;}

/* ===== WORKBENCH ===== */
.workbench {
  max-width: 100rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.results-step .results-col{
  background: #EFEFEF;
  border-radius: 20px;padding: 15px 60px 30px;;
}


@media (min-width: 1024px) {
  .workbench { flex-direction: row; }
  .inputs-col  { flex: 3; }
  .results-col { flex: 2; position: sticky; top: 5.5rem; align-self: flex-start; }
}

/* ===== INPUTS ===== */
.inputs-col  { display: flex; flex-direction: column; gap: 1rem; }
.results-col { display: flex; flex-direction: column; gap: 1.5rem; }

/* ===== INPUT CARD ===== */
.input-card {
  background:#D8D9D8;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-results);
}
.card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.q-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width:40px;
  height:40px;
  border-radius: 9999px;
  background:#fff;
  color: var(--primary-fg);
  font-size:24px;
  font-weight: 600;
}
.card-label {
font-size:24px;
  font-weight: 500;
  color:#3B4045;
  line-height: 1.45;
  display: block;
}
.card-sublabel {
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: #000;
}


/* ===== SLIDER ROW ===== */
.slider-row {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.slider-row input[type="range"] { flex: 1; }
.num-unit { display: flex; align-items: center; gap: 0.375rem; }
.unit-label { font-size: 0.75rem; color:#000; white-space: nowrap; }

/* ===== DUAL SLIDER GRID ===== */
.dual-slider-grid { margin-top: 1rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.dual-slider-item { display: flex; flex-direction: column; gap: 0.5rem; }
.dual-label { font-size: 0.75rem; color:#000; }

/* ===== NUMBER INPUT ===== */
.num-input {
  width:3rem;
  padding: 0.5rem;
  text-align: right;
  font-size: 0.875rem;
  font-weight: 700;
  color:#000;
  background:#fff;
  border: none;
  border-radius: var(--radius-md);
  outline: none;
  box-shadow: 0 0 0 1px var(--nav-fg-20);
  transition: box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  -moz-appearance: textfield;
}
.num-input::-webkit-inner-spin-button,
.num-input::-webkit-outer-spin-button { -webkit-appearance: none; }
.num-input:focus { box-shadow: 0 0 0 2px var(--primary); }

/* ===== RANGE SLIDER ===== */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 0.375rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, var(--primary) 50%, #F3F4F6 50%);
  outline: none;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  width: 100%;
  height: 0.375rem;
  border-radius: 9999px;
  background: transparent;
}
input[type="range"]::-moz-range-track {
  width: 100%;
  height: 0.375rem;
  border-radius: 9999px;
  background: transparent;
}
input[type="range"]::-ms-track {
  width: 100%;
  height: 0.375rem;
  border-radius: 9999px;
  background: transparent;
  border-color: transparent;
  color: transparent;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: #FF85A1;
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(255, 133, 161, 0.3);
  transition: box-shadow 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: -5px;
}
input[type="range"]::-webkit-slider-thumb:hover { box-shadow: 0 0 0 5px rgba(255, 133, 161, 0.3); }
input[type="range"]::-moz-range-thumb {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background: var(--primary);
  border: 0;
  cursor: pointer;
  box-shadow: 0 0 0 3px var(--primary-30);
}

/* ===== RESULT CARDS ===== */
.result-card {
  background:#D8D9D8;
  border-radius: var(--radius);
  padding: 1.5rem 0 0;
  box-shadow: var(--shadow-results);
  overflow: hidden;
}

/* ===== STEPPER (hide inactive sections) ===== */
.roi-step-hidden { display: none; }
.roi-step { transition: opacity 0.18s ease; }
.result-card-title {
  font-size:36px;
  font-weight: 600;
  color:#3B4045;
  margin-bottom: 1rem;
  padding: 0 1.5rem;
}

/* ===== BREAKDOWN LIST ===== */
.breakdown-list { display: flex; flex-direction: column; gap: 0.75rem;margin:45px 0 0; }
.breakdown-row  { display: flex; align-items: center; justify-content: space-between;margin-bottom: 20px;padding: 0  1.5rem; }
.breakdown-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size:25px;
  color:#5D646A;
}
.breakdown-icon {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--nav-fg-50);
  flex-shrink: 0;
}
.breakdown-value {
  font-size:30px;
  font-weight: 700;
  color: #000;
  font-variant-numeric: tabular-nums;
}
.breakdown-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--nav-fg-20);
  padding:1rem 1.5rem;
  margin-top:30px;
  background: #FDD700;
}
.total-label  { font-size:30px; font-weight: 600; color:#000; }
.total-value  {     font-size: 30px;
    color: #000;
    background: #ffff;
    border-radius: 40px;
    padding: 20px 35px; }

/* ===== SAVINGS HERO ===== */
.savings-hero { display: flex; align-items: baseline; gap: 0.5rem; justify-content: center;; margin: 0.75rem 0 0.25rem;}

.saving-inner{
  background:#fff;border-radius:50px;font-size: 36px;color:#000;padding:10px 30px
}

.resultcard-inner{
  background: #D8D9D8;
  padding: 20px 0;;
  text-align: center;
}

.result-card.bg-white{background:#fff;padding: 0;}

.savings-number {
  font-size:30px;
  font-weight: 700;
  color:#000;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.savings-unit { font-size:30px; font-weight: 500; color:#000; }
.savings-days {
  font-size:22px;
  color:#3B4045;
  margin-bottom: 0.25rem;
  line-height: normal;
  padding: 1.25rem;
  text-align: center;
}
.savings-days strong { color: var(--primary); font-weight: 600;font-size:30px; }

.per-person-row {
  background: var(--nav-fg-10);
  border-radius: var(--radius-sm);
  padding: 0 0.75rem;
  margin-top:0rem;
  font-size:25px;
  padding:0 1.25rem;
}
.per-person-row p { font-size:25px; color:#000; line-height: normal;text-align: center;margin: 0;padding: 0; }

.savings-disclaimer {
  margin-top: 1rem;
  font-size:15px;
  color:rgba(93, 100, 106, 0.42);
  padding: 1.25rem;
  text-align: center;
}

.mono  { font-family: 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }
.bold  { font-weight: 700; }
.primary { color: var(--primary); }

/* ===== CTA CARD ===== */
.cta-card { text-align: center;background: #3B4045;padding: 1.25rem ;}
.cta-heading {
  font-size:36px;
  font-weight:500;
  color: var(--nav-fg);
  line-height: 1.4;
}
.cta-buttons {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap:1rem;
  align-items: center;
}

.cta-buttons button{padding:12px 30px;border-radius:30px;}


.cta-buttons a {
  color: rgba(239, 239, 239, 0.5);
  font-size:16px;
  text-decoration: underline;
}


.btn-primary, .btn-outline {
  padding: 0.625rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  border: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
  font-size: 20px;
}
.btn-outline:hover { background: var(--primary-10); }

/* ===== ANIMATED NUMBER ===== */
.animated-num {
  display: inline-block;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.animated-num.flash {
  opacity: 0.4;
  transform: translateY(4px);
}

/* ===== TOAST ===== */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 9999;
}
.toast {
  background: var(--nav);
  color: var(--nav-fg);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  box-shadow: var(--shadow-results);
  animation: slideIn 0.2s ease forwards;
  max-width: 20rem;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Hide disclaimer on the last (results) step */
body:has(.results-step:not(.roi-step-hidden)) .step-disclaimer {
  display: none;
}

@media screen and (max-width:1024px){
  .results-step .results-col {
    padding: 15px 15px 30px;
}
.total-label{font-size:25px}
.total-value{font-size:25px;}
}

@media screen and (max-width:767px){
  .breakdown-label{font-size:16px;}
  .breakdown-value{font-size:18px;}
  .breakdown-total{padding:1rem}
  .total-label {font-size: 20px;}
  .total-value{font-size:22px;padding:15px 25px}
  .card-label{font-size:20px;  line-height: 22px;}
  .steps h2 {font-size: 30px;line-height: 30px;}
  .q-badge{width:30px;height:30px;font-size:18px;}
  .input-card{padding:1rem}
  .result-card-title{font-size:25px;}
  .breakdown-list{margin:20px 0 0}
  .breakdown-total{margin:0px;}
    .btn-outline, .cta-buttons button{font-size:16px !important;}
    .breakdown-total{flex-direction: column;align-items: center;gap: 0.5rem;}
    .savings-number,.savings-unit{font-size:25px;}
    .hubspot-form label, .hbspt-form label{font-size: 14px !important;}
    .hubspot-form .hs_submit .actions{margin-top:15px;}
    .modal .close {
    color: #fff !important;
    }

    .roi-modal.modal-content{
        padding-top:30px;
    }

    .roi-modal.modal-content .close {
        left: inherit !important;
        right: 15px;
        color:#000 !important;
    }
  }
