html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
}

/* ==============================
   Base
   ============================== */
.sev-calc {
  background: #f5f0eb;
  padding: 60px;
  box-sizing: border-box;
  min-height: 100vh;
}

.sev-calc *,
.sev-calc *::before,
.sev-calc *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ==============================
   Grid — 2 columns
   ============================== */
.sev-calc__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* ==============================
   Header
   ============================== */
.sev-calc__header {
  margin-bottom: 40px;
}

.sev-calc__title {
  font-size: 32px;
  font-weight: 600;
  color: #5f534e;
  line-height: 1.15;
  margin-bottom: 16px;
}

.sev-calc__title em {
  font-style: normal;
  color: #9a7b5b;
}

.sev-calc__title-br--mobile {
  display: none;
}

.sev-calc__title-br--desktop {
  display: block;
}

.sev-calc__subtitle {
  font-size: 16px;
  font-weight: 400;
  color: #52433d;
  line-height: 1.6;
}

/* ==============================
   Section labels
   ============================== */
.sev-calc__section-label {
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8a7060;
  margin-bottom: 12px;
  font-weight: 400;
}

/* ==============================
   Age slider section
   ============================== */
.sev-calc__age-section {
  margin-bottom: 36px;
}

.sev-calc__age-desc {
  font-size: 14px;
  font-weight: 600;
  color: #5f534e;
  margin-bottom: 16px;
}

.sev-calc__age-value {
  font-size: 32px;
  font-weight: 600;
  color: #5f534e;
  text-align: center;
  margin-bottom: 8px;
}

.sev-calc__slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sev-calc__slider-bound {
  font-size: 13px;
  color: #8a7060;
  flex-shrink: 0;
  font-weight: 500;
}

/* --- Range slider --- */
.sev-calc__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(
    to right,
    #5f534e var(--slider-pct, 37%),
    #ddd5cd var(--slider-pct, 37%)
  );
  outline: none;
  cursor: pointer;
}

.sev-calc__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #5f534e;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

.sev-calc__slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #5f534e;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.15);
}

/* ==============================
   Method toggle (Shaving / Waxing)
   ============================== */
.sev-calc__method-section {
  margin-bottom: 36px;
}

.sev-calc__method-toggle {
  display: flex;
  gap: 12px;
}

.sev-calc__method-btn {
  flex: 1;
  padding: 14px 24px;
  border: 0px solid #c9b8a8;
  border-radius: 8px;
  background: #fff;
  color: #5f534e;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.sev-calc__method-btn--active {
  background: #5f534e;
  color: #fff;
}

/* ==============================
   Treatment zone tiles (4-col grid)
   ============================== */
.sev-calc__tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.sev-calc__tile {
  padding: 14px 6px;
  border: 0px;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #5f534e;
  text-align: center;
  transition: all 0.2s;
  font-family: inherit;
}

.sev-calc__tile.is-active {
  background: #5f534e;
  color: #fff;
}

/* ==============================
   Right column
   ============================== */
.sev-calc__right-col {
  padding-top: 0;
}

.sev-calc__right-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

/* ==============================
   Milestone toggle (segmented)
   ============================== */
.sev-calc__milestone-toggle {
  display: flex;
  margin-bottom: 28px;
  border-radius: 8px;
  overflow: hidden;
  border: 0px solid #ddd5cd;
  background: #f5f3ef;
  padding: 4px;
}

.sev-calc__milestone-btn {
  flex: 1;
  padding: 14px 24px;
  border: none;
  background: transparent;
  color: #5f534e;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.sev-calc__milestone-btn--active {
  background: #5f534e;
  border-radius: 6px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

/* ==============================
   Cost comparison (side-by-side)
   ============================== */
.sev-calc__cost-comparison {
  display: flex;
  align-items: stretch;
  background: none;
  border-radius: 12px;
  overflow: visible;
  margin-bottom: 24px;
  position: relative;

  border: 0px solid #e8ddd6;
  gap: 40px;
}

.sev-calc__cost-side {
  flex: 1;
  text-align: center;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #f1efec;
  position: relative;
  z-index: 5;
  border-radius: 6px;
}

.sev-calc__cost-side--sev {
  background: linear-gradient(90deg, #fdf2cd 0%, #f1efec 100%);
  z-index: 3;
}

.sev-calc__cost-method {
  font-size: 20px;
  font-weight: 400;
  color: #8a7060;
}

.sev-calc__cost-amount {
  font-size: 30px;
  font-weight: 500;
  color: #5f534e;
}

.sev-calc__cost-vs {
  position: absolute;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  z-index: 4;
  width: auto;
  height: 100px;
  pointer-events: none;
}

/* ==============================
   Estimated savings
   ============================== */
.sev-calc__estimated-savings {
  margin-bottom: 24px;
}

.sev-calc__savings-title {
  font-size: 24px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #856e5c;
  font-weight: 600;
  text-align: center;
  margin-bottom: 16px;
}

.sev-calc__savings-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sev-calc__savings-card {
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;

  gap: 2px;
}

.sev-calc__savings-card--dollars {
  background: linear-gradient(135deg, #b8a08e 0%, #a08a78 100%);
}

.sev-calc__savings-card--time {
  background: #5f534e;
}

.sev-calc__savings-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.sev-calc__savings-text {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sev-calc__savings-label {
  font-size: 20px;
  font-weight: 400;
  color: #fff;
  margin-bottom: 4px;
}

.sev-calc__savings-amount {
  font-size: 40px;
  font-weight: 500;
  color: #fff;
  line-height: 1.1;
}

.sev-calc__savings-hours {
  font-size: 40px;
  font-weight: 500;
  color: #fff;
  line-height: 1.1;
}

/* ==============================
   Empty state
   ============================== */
.sev-calc__empty {
  font-size: 14px;
  color: #8a7060;
  text-align: center;
  padding: 40px 0;
  font-style: italic;
  line-height: 1.6;
}

/* ==============================
   How We Calculate accordion
   ============================== */
.sev-calc__how-we-calculate {
  margin-bottom: 20px;
}

.sev-calc__how-we-calculate-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  color: #8a7060;
}

.sev-calc__how-we-calculate-arrow {
  transition: transform 0.2s;
}

.sev-calc__how-we-calculate.is-open .sev-calc__how-we-calculate-arrow {
  transform: rotate(180deg);
}

.sev-calc__how-we-calculate-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease-out,
    padding 0.3s ease-out;
  font-size: 12px;
  color: #8a7060;
  line-height: 1.6;
  text-align: right;
}

.sev-calc__how-we-calculate.is-open .sev-calc__how-we-calculate-content {
  padding-top: 12px;
  max-height: 200px;
}

/* ==============================
   CTA button
   ============================== */
.sev-calc__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 8px;
  background: #d6b8a6;
  color: #5f534e;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.sev-calc__cta-arrow {
  flex-shrink: 0;
}

.sev-calc__cta:hover {
  background: #4a3f3a;
}

/* ==============================
   Small desktops / laptops
   ============================== */
@media (max-width: 1280px) {
  .sev-calc {
    padding: 40px 32px;
  }

  .sev-calc__grid {
    gap: 32px;
  }

  .sev-calc__title {
    font-size: 28px;
  }
}

/* ==============================
   Mobile
   ============================== */
@media (max-width: 768px) {
  .sev-calc {
    padding: 32px 20px;
  }

  .sev-calc__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sev-calc__title {
    font-size: 28px;
  }

  .sev-calc__title-br--mobile {
    display: block;
  }

  .sev-calc__title-br--desktop {
    display: none;
  }

  .sev-calc__tiles {
    grid-template-columns: repeat(2, 1fr);
  }

  .sev-calc__right-col {
    padding-top: 0;
  }

  .sev-calc__right-card {
    border-radius: 0;
    box-shadow: none;
    margin-left: -20px;
    margin-right: -20px;
    padding: 28px 20px 18px;
  }

  .sev-calc__cost-amount {
    font-size: 22px;
    font-weight: 600;
  }

  .sev-calc__savings-title {
    font-size: 18px;
  }

  .sev-calc__savings-cards {
    grid-template-columns: 1fr;
  }

  .sev-calc__savings-amount,
  .sev-calc__savings-hours {
    font-size: 36px;
  }

  .sev-calc__savings-label {
    font-size: 22px;
  }

  .sev-calc__savings-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 14px;
    gap: 12px;
  }

  .sev-calc__savings-text {
    align-items: center;
  }

  .sev-calc__savings-icon {
    width: 38px;
    height: 38px;
  }

  .sev-calc__how-we-calculate-header {
    justify-content: flex-end;
  }
}
