/* =========================================================
   BOOKING MODAL
   ========================================================= */

.booking-overlay{
  position: fixed;
  inset: 0;
  background: rgba(43,38,34,0.45);
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.booking-overlay.is-open{
  display: flex;
}

.booking-modal{
  background: var(--paper);
  border-radius: var(--radius-l);
  width: 100%;
  max-width: 480px;
  max-height: min(720px, 90vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 40px 90px -30px rgba(43,38,34,0.5);
}

.booking-header{
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.booking-header h2{
  font-size: 18px;
  margin: 0 0 4px;
}

.booking-progress{
  font-size: 12px;
  color: var(--taupe);
}

.booking-close{
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
}

.booking-close:hover{
  background: var(--stone);
  color: var(--ink);
}

.booking-body{
  padding: 22px 24px;
  overflow-y: auto;
  flex: 1;
}

.booking-step-title{
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.option-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-btn{
  text-align: left;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius-m);
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink);
}

.option-btn:hover{
  border-color: var(--clay);
}

.option-btn .meta{
  font-size: 12px;
  color: var(--taupe);
  white-space: nowrap;
}

.option-btn.is-selected{
  border-color: var(--ink);
  background: var(--stone);
}

.slot-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.slot-btn{
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius-s);
  padding: 10px 6px;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
}

.slot-btn:hover{
  border-color: var(--clay);
}

.slot-btn.is-selected{
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.field{
  margin-bottom: 16px;
}

.field label{
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.field input{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 11px 13px;
  font-size: 15px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--font-body);
}

.field input:focus{
  border-color: var(--clay);
  outline: none;
}

.field textarea{
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 11px 13px;
  font-size: 15px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--font-body);
  resize: vertical;
}

.field textarea:focus{
  border-color: var(--clay);
  outline: none;
}

.field-hint{
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: 6px;
}

.review-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.review-row{
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.review-row .k{
  color: var(--ink-soft);
}

.review-row .v{
  font-weight: 500;
  text-align: right;
}

.consult-gate p{
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.consult-gate .option-list{
  margin-bottom: 4px;
}

.booking-status{
  text-align: center;
  padding: 20px 0;
}

.booking-status .icon{
  font-size: 32px;
  margin-bottom: 14px;
}

.booking-status h3{
  font-size: 18px;
  margin: 0 0 10px;
}

.booking-status p{
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 auto;
}

.booking-footer{
  padding: 16px 24px 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.booking-footer .btn{
  flex: 1;
}

.booking-footer .btn-secondary{
  flex: 0 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.spinner{
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-top-color: var(--ink);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes spin{
  to{
    transform: rotate(360deg);
  }
}


/* =========================================================
   BOOKING MODAL — MOBILE
   ========================================================= */

@media (max-width: 520px){

  .booking-overlay{
    padding: 0;
    align-items: flex-end;
  }

  .booking-modal{
    max-width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }
}


/* =========================================================
   TREATMENT INFORMATION MODAL
   ========================================================= */

.treatment-info-overlay{
  position: fixed;
  inset: 0;
  background: rgba(43,38,34,0.45);
  z-index: 2900;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 24px;
}

.treatment-info-overlay.is-open{
  display: flex;
}

.treatment-info-modal{
  background: var(--paper);
  border-radius: var(--radius-l);

  width: 100%;
  max-width: 720px;

  max-height: min(820px, 90vh);

  display: flex;
  flex-direction: column;

  overflow: hidden;

  box-shadow: 0 40px 90px -30px rgba(43,38,34,0.5);
}

.treatment-info-header{
  padding: 24px 28px 18px;

  border-bottom: 1px solid var(--line);

  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 16px;

  flex-shrink: 0;
}

.treatment-info-header h2{
  font-size: 24px;
  line-height: 1.2;
  margin: 0;
}

.treatment-info-close{
  background: none;
  border: none;
  cursor: pointer;

  width: 34px;
  height: 34px;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--ink-soft);

  font-size: 24px;
  line-height: 1;

  flex-shrink: 0;
}

.treatment-info-close:hover{
  background: var(--stone);
  color: var(--ink);
}

.treatment-info-body{
  padding: 26px 28px 30px;

  overflow-y: auto;

  flex: 1;
  min-height: 0;
}


/* =========================================================
   TREATMENT INTRO
   ========================================================= */

.treatment-info-description{
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);

  margin: 0 0 24px;

  white-space: pre-line;
}


/* =========================================================
   TREATMENT OVERVIEW
   ========================================================= */

.treatment-overview{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;

  margin-bottom: 28px;
}

.treatment-overview-item{
  background: var(--stone);
  border-radius: var(--radius-s);

  padding: 14px 12px;

  display: flex;
  flex-direction: column;

  gap: 7px;
  min-width: 0;
}

.treatment-overview-item strong{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--taupe);
}

.treatment-overview-item span{
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  overflow-wrap: anywhere;
}


/* =========================================================
   ABOUT
   ========================================================= */

.treatment-info-about{
  margin-bottom: 28px;
}

.treatment-info-about p{
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);

  margin: 0 0 14px;
}

.treatment-info-about p:last-child{
  margin-bottom: 0;
}


/* =========================================================
   SECTION HEADINGS
   ========================================================= */

.treatment-info-body h3{
  font-size: 16px;
  margin: 0 0 12px;
  color: var(--ink);
}


/* =========================================================
   AREAS / BENEFITS / IDEAL FOR / NOT SUITABLE
   ========================================================= */

.treatment-info-list-section{
  margin-bottom: 26px;
}

.treatment-info-list{
  list-style: none;

  padding: 0;
  margin: 0;

  display: flex;
  flex-direction: column;

  gap: 8px;
}

.treatment-info-list li{
  position: relative;

  padding-left: 20px;

  font-size: 14px;
  line-height: 1.6;

  color: var(--ink-soft);
}

.treatment-info-list li::before{
  content: "•";

  position: absolute;
  left: 5px;
  top: 0;

  color: var(--clay);
  font-weight: 700;
}


/* =========================================================
   NOT SUITABLE
   ========================================================= */

.treatment-info-not-suitable{
  padding: 18px;

  background: var(--stone);

  border-radius: var(--radius-m);
}

.treatment-info-not-suitable h3{
  margin-bottom: 10px;
}


/* =========================================================
   CONSULTATION NOTE
   ========================================================= */

.treatment-consultation-note{
  background: var(--card);

  border: 1px solid var(--line);
  border-left: 3px solid var(--clay);

  border-radius: var(--radius-s);

  padding: 17px 18px;

  margin-bottom: 28px;
}

.treatment-consultation-note strong{
  display: block;

  font-size: 14px;

  margin-bottom: 7px;
}

.treatment-consultation-note p{
  font-size: 13.5px;
  line-height: 1.6;

  color: var(--ink-soft);

  margin: 0;
}


/* =========================================================
   APPOINTMENT JOURNEY
   ========================================================= */

.treatment-journey{
  margin-bottom: 28px;
}

.treatment-journey-item{
  position: relative;

  padding: 0 0 17px 20px;

  margin-bottom: 12px;

  border-left: 1px solid var(--line);
}

.treatment-journey-item:last-child{
  margin-bottom: 0;
  padding-bottom: 0;
}

.treatment-journey-item::before{
  content: "";

  position: absolute;

  left: -5px;
  top: 2px;

  width: 9px;
  height: 9px;

  border-radius: 50%;

  background: var(--clay);
}

.treatment-journey-item strong{
  display: block;

  font-size: 14px;

  margin-bottom: 5px;
}

.treatment-journey-item p{
  font-size: 13.5px;
  line-height: 1.6;

  color: var(--ink-soft);

  margin: 0;
}


/* =========================================================
   PACKAGES
   ========================================================= */

.treatment-packages{
  margin-bottom: 28px;
}

.fh-pills{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.fh-pills span{
  display: inline-flex;

  align-items: center;
  justify-content: center;

  border: 1px solid var(--line);

  background: var(--card);

  border-radius: 999px;

  padding: 7px 13px;

  font-size: 12.5px;

  color: var(--ink-soft);
}


/* =========================================================
   TREATMENT FAQ
   ========================================================= */

.treatment-faqs{
  margin-bottom: 28px;
}

.treatment-faqs h3{
  margin-bottom: 12px;
}

.treatment-faq-item{
  border-top: 1px solid var(--line);
}

.treatment-faq-item:last-child{
  border-bottom: 1px solid var(--line);
}

.treatment-faq-item summary{
  cursor: pointer;

  list-style: none;

  padding: 15px 30px 15px 0;

  position: relative;

  font-size: 14px;
  font-weight: 500;

  color: var(--ink);
}

.treatment-faq-item summary::-webkit-details-marker{
  display: none;
}

.treatment-faq-item summary::after{
  content: "+";

  position: absolute;

  right: 4px;
  top: 13px;

  font-size: 20px;
  font-weight: 300;

  color: var(--taupe);
}

.treatment-faq-item[open] summary::after{
  content: "−";
}

.treatment-faq-answer{
  padding: 0 0 16px;
}

.treatment-faq-answer p{
  font-size: 13.5px;
  line-height: 1.7;

  color: var(--ink-soft);

  margin: 0 0 12px;
}

.treatment-faq-answer p:last-child{
  margin-bottom: 0;
}


/* =========================================================
   TREATMENT MODAL ACTIONS
   ========================================================= */

.treatment-info-actions{
  display: flex;

  gap: 10px;

  padding-top: 8px;

  border-top: 1px solid var(--line);
}

.treatment-info-actions .btn{
  flex: 1;
}


/* =========================================================
   PREVENT BACKGROUND PAGE SCROLLING
   ========================================================= */

body.treatment-modal-open{
  overflow: hidden;
}


/* =========================================================
   TREATMENT MODAL — MOBILE
   ========================================================= */

@media (max-width: 700px){

  .treatment-info-overlay{
    padding: 16px;

    /* IMPORTANT:
       Keep treatment information modal centered.
       It must NOT behave like a bottom sheet. */
    align-items: center;
    justify-content: center;
  }

  .treatment-info-modal{
    width: 100%;
    max-width: 100%;

    max-height: 92vh;

    border-radius: 20px;
  }

  .treatment-info-header{
    padding: 20px 20px 16px;
  }

  .treatment-info-header h2{
    font-size: 21px;
  }

  .treatment-info-body{
    padding: 22px 20px 26px;
  }

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

  .treatment-info-description{
    font-size: 15px;
  }

  .treatment-info-list li{
    font-size: 13.5px;
  }

  .treatment-faq-item summary{
    font-size: 13.5px;
    padding-right: 28px;
  }

  .treatment-faq-answer p{
    font-size: 13px;
  }

  .treatment-info-actions{
    flex-direction: column;
  }

  .treatment-info-actions .btn{
    width: 100%;
  }
}
/* =========================================================
   TREATMENT CARD — VIEW DETAILS BUTTON
   ========================================================= */

.treatment-card-link{
  appearance: none;
  -webkit-appearance: none;
  border: none;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;

  font-family: var(--font-body);
  font-size: 14px;
  color: var(--clay);

  text-decoration: none;
  line-height: 1.4;
}

.treatment-card-link:hover{
  color: var(--ink);
  text-decoration: underline;
}

.treatment-card-link:focus-visible{
  outline: 2px solid var(--clay);
  outline-offset: 3px;
}
.treatment-card-actions{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
