/* ================== BASE STYLES ================== */
#treatment-page {
  background-color: #ffffff;
  font-family: 'Open Sans' , sans-serif;
  color: #888;
}

#treatment-page .treatment-container {
  padding: 16px;
  background-color: #ffffff;
}

/* ================== TABS ================== */
#treatment-page .tab-bar {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  overflow-x: auto;
}

#treatment-page .tab {
  padding: 8px 16px;
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  color: #14181B;
  font-size: 1.8rem;
  white-space: nowrap;
}

#treatment-page .tab.active {
  border-color: #55B89A;
  color: #55B89A;
  background-color: rgba(85, 184, 154, 0.15);
}

#treatment-page .tab:not(.active):hover {
  background-color: rgba(85, 184, 154, 0.1);
}

/* ================== ITEM CARDS ================== */
#tab-content .item-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 12px;
}

#treatment-page .item-card {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(43,62,69,0.3);
  border-radius: 12px;
  cursor: pointer;
  gap: 12px;
  transition: all 0.2s;
}

#treatment-page .item-card:hover {
  transform: scale(1.01);
  background-color: rgba(85,184,154,0.1);
}

#treatment-page .item-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

#treatment-page .item-header {
  display: flex;
  gap: 8px;
  font-weight: bold;
}

#treatment-page .item-name {
  color: #14181B;
}

#treatment-page .item-price {
  color: #55B89A;
}

#treatment-page .item-desc {
  color: #14181B;
}

#treatment-page .item-icon {
  color: #14181B;
}

/* ================== DETAILS PAGE ================== */
#treatment-page .details-page {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  flex-wrap: nowrap;
}

#treatment-page .image-box {
  flex: 0 0 700px;   /* fixed width */
  max-width: 700px;
}

#treatment-page .image-box img {
  width: 100%;
  height: 400px;       /* fixed height */
  object-fit: cover;   /* crop nicely */
  border-radius: 8px;
}

#treatment-page .details {
  flex: 1;
  min-width: 280px;
}

#treatment-page .treatment-name {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #14181B;
}

#treatment-page .price {
  font-size: 1.4rem;
  color: #55B89A;
  margin-bottom: 20px;
}

#treatment-page .section-title {
  font-size: 1.4rem;
  color: #14181B;
}

/* ================== BOOKING PAGE ================== */
#treatment-page .booking-wrapper {
  display: flex;
  gap: 5px;
  justify-content: center;
}

#treatment-page .main-card,
#treatment-page .availability-section {
  background: #fff;
  border-radius: 15px;
  box-sizing: border-box;
  align-items: center;
}

#treatment-page .main-card {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#treatment-page .dropdown-container {
  border: 1px solid #C9CBCE;
  border-radius: 5px;
  padding: 15px;
  width: 100%;
  background: #fff;
}

#treatment-page .calendar-box, #treatment-page .preferences-box {
  border: 1px solid #C9CBCE;
  border-radius: 5px;
  padding: 30px;
  width: 70%;
  background: #fff;
}

#treatment-page .calendar-box input {
  width: 100%;
  height: 42px;
  font-size: 14px;
  padding: 6px;
  color: #14181B;
  border-radius: 5px;
  border: 1px solid #C9CBCE;
  box-sizing: border-box;
}

#treatment-page .preferences-box {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#treatment-page .pref-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: #14181B;
}

#treatment-page .pref-text {
  font-size: 14px;
  color: #14181B;
  overflow-y: auto;
}

#treatment-page .availability-section {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

#treatment-page .availability-title {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #14181B;
}

#treatment-page .dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  padding: 15px;
  cursor: pointer;
}

#treatment-page .header-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1 1 auto;         /* allows shrinking on small screens */
  min-width: 0;           /* important to allow child overflow handling */
}

#treatment-page .arrow {
  display: inline-flex;
  align-items: center;
}

#treatment-page .arrow-icon {
  display: block;
  width: 24px;
  height: 24px;
  transition: transform 0.2s ease;
  color: #14181B; /* matches your dropdown text */
}

/* When dropdown is open, rotate the arrow up */
#treatment-page .dropdown-header.open .arrow-icon {
  transform: rotate(180deg);
}

#treatment-page .header-text {
  display: flex;
  flex-direction: column;
  overflow: hidden;        /* prevents text from overflowing */
  text-overflow: ellipsis; /* adds "..." if too long */
  white-space: nowrap;     /* keep text in one line */
}

#treatment-page .availability {
  font-size: 14px;
  color: #4FB68D;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#treatment-page .card-header { 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 16px; 
    font-weight: 600; 
    color: #14181B; 
}

#treatment-page .header-right {
  font-weight: 600;
  font-size: 14px;
  color: #55B89A;
}

#treatment-page .dropdown-body {
  display: none;
  padding: 15px;
  border-top: 1px solid #C9CBCE;
}

#treatment-page .slot-scroll {
  max-height: 400px;
  overflow-y: auto;
}

#treatment-page .slot-list {
  display: flex;
  flex-direction: column;
}

#treatment-page .slot-item {
  margin: 12px 0;
  padding: 15px;
  background: #f5f7f9;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  cursor: pointer;
  color: #14181B;
  transition: all 0.2s;
}

#treatment-page .slot-item:hover {
  border-color: #4FB68D;
}

#treatment-page .slot-item.selected {
  border-color: #55B89A;
}

#treatment-page .slot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#treatment-page .slot-time,
#treatment-page .slot-price {
  font-size: 14px;
}

#treatment-page .confirm-btn {
  width: 100%;
  height: 45px;
  background-color: #4FB68D;
  color: white;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 20px;
  transition: all 0.2s;
}

#treatment-page .confirm-btn:hover {
  opacity: 0.9;
}

/* ================== SNACKBAR ================== */
#snackbar {
  visibility: hidden;
  min-width: 280px;
  background-color: #FFA726;
  color: #000;
  text-align: center;
  padding: 12px;
  border-radius: 6px;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
}

#snackbar.show {
  visibility: visible;
  animation: fadein 0.3s, fadeout 0.3s 3.7s;
}

@keyframes fadein {
  from { opacity: 0; bottom: 0; }
  to { opacity: 1; bottom: 30px; }
}

@keyframes fadeout {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ================== FORM & CHECKOUT ================== */
#treatment-page .checkout-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

#treatment-page .card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e0e0e0;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#treatment-page .checkout-title {
  text-align: center;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #14181B;
}

#treatment-page .form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#treatment-page .form-row { 
    display: flex; 
    gap: 12px; 
    flex-wrap: wrap; 
} 

#treatment-page .form-group { 
    flex: 1; 
    display: flex; 
    flex-direction: column; 
}

/* =============== Order Summary =============== */ 
#treatment-page .order-summary h2 { 
    font-size: 14px; 
    font-weight: 600; 
} 

#treatment-page .order-item { 
    display: flex; 
    justify-content: space-between; 
    margin-bottom: 12px;
} 

#treatment-page .order-item.subtotal { 
    font-weight: 700; 
    font-size: 14px; 
}

#treatment-page .label { 
    color: #999999; 
    font-size: 14px; 
} 

#treatment-page .value { 
    color: #55B89A; 
    font-weight: 600; 
    font-size: 14px; 
}

#treatment-page .value1 { 
    color: #14181B; 
    font-weight: 600; 
    font-size: 14px; 
}

input, select {
  padding: 12px 16px;
  border: 1px solid #D0D0D0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
}

input:focus, select:focus {
  border-color: #17A2B8;
  box-shadow: 0 0 0 2px rgba(23,162,184,0.2);
  outline: none;
}

#continueBtn {
  width: 100%;
  height: 48px;
  background-color: #4FB68D;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#continueBtn:hover {
  background-color: #3e9a79;
}

/* Rows */ 
#treatment-page .stack-gap > * + * { 
    margin-top: 16px; 
}

#treatment-page .section-row { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

/* ================== BOOKING BUTTON ================== */
#treatment-page .booking-btn {
  width: 100%;
  height: 48px;
  background-color: #55B89A;
  color: #ffffff;
  border: none;
  border-radius: 24px;
  font-family: 'Inter Tight','Inter',sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#treatment-page .booking-btn:hover {
  background-color: #479b84;
}

/* ================== RESPONSIVE: TABLET================== */
@media (max-width: 1024px) {
  #treatment-page .booking-wrapper {
    flex-direction: column;
    gap: 20px;
    padding: 15px;
  }

  #treatment-page .main-card {
      display: flex;
      flex-direction: row;   /* 👈 key change */
      gap: 20px;
      align-items: flex-start;
    }

  #treatment-page .availability-section {
    flex: 1 1 100%;
    width: 100%;
  }
  
  #treatment-page .calendar-box {
      flex: 40%;   /* keep your 70% width */
    }
    
    #treatment-page .preferences-box {
      flex: 60%;   /* the remaining width */
    }
    
    #treatment-page .details-page {
        flex-direction: column; /* stack vertically */
        gap: 12px;
      }
      
      #treatment-page .image-box {
        width: 100%;
        max-width: 800px;
        max-height: 300px;
        overflow: hidden;
        flex-shrink: 0;      /* prevents flex from shrinking container weirdly */
      }
    
      #treatment-page .image-box img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
      }
    
      #treatment-page .details {
        width: 100%;            /* content takes full width */
      }
}

/* ================== RESPONSIVE: MOBILE ================== */
@media (max-width: 767px) {
  #treatment-page .tab-bar {
    display: flex;
    flex-wrap: nowrap;         /* allow wrapping instead of horizontal overflow */
    gap: 6px;                /* small gap between tabs */
    overflow-x: auto;  
  }
  
  #treatment-page .treatment-container {
      background-color: #ffffff;
    }

  #treatment-page .tab {
    white-space: nowrap;
    max-width: none;
    font-size: 1.4rem;
  }

  #tab-content .item-list{
    padding: 8px 0;          /* smaller padding for content */
    gap: 5px;
    color: #888;
  }

  #treatment-page .details-page {
    flex-direction: column; /* stack vertically */
    gap: 12px;
  }
  
  #treatment-page .image-box {
    width: 100%;
    max-width: 450px;
    max-height: 300px;
    overflow: hidden;
    flex-shrink: 0;      /* prevents flex from shrinking container weirdly */
  }

  #treatment-page .image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  #treatment-page .details {
    width: 100%;            /* content takes full width */
  }

  #treatment-page .treatment-name {
    font-size: 1.4rem;
  }

  #treatment-page .price {
    font-size: 1.4rem;
  }

  #treatment-page .text {
    font-size: 1.4rem;
  }

  #treatment-page .button-row {
    text-align: center;
  }

  #bookNowBtn {
    width: 100%;
    font-size: 1rem;
    padding: 10px;
  }
  
  #treatment-page .main-card {
      flex: 1 1 100%;
      display: flex;
      flex-direction: column;
      gap: 20px;
    }

  #treatment-page .calendar-box, #treatment-page .preferences-box {
      border: 1px solid #C9CBCE;
      border-radius: 5px;
      padding: 30px;
      width: 100%;
      background: #fff;
    }

  #treatment-page .availability-section {
    flex: 0 0 50%;
  }

  #treatment-page .dropdown-container {
    font-size: 14px; /* make text smaller for narrow screens */
    padding: 12px;
  }

  #treatment-page .arrow-icon {
    width: 20px; /* scale arrow down */
    height: 20px;
  }
  
  #treatment-page .checkout-container {
    padding: 10px;
  }

  #treatment-page .checkout-title {
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
  }

  #treatment-page .card {
    padding: 12px;
    gap: 12px;
  }

  #treatment-page .card-header {
    font-size: 1.4rem;
  }

  #treatment-page .section-desc {
    font-size: 1.4rem;
    margin-bottom: 10px;
  }

  #treatment-page .form-row {
    flex-direction: column; /* stack inputs vertically */
    gap: 10px;
  }

  #treatment-page .form-group label {
    font-size: 1.4rem;
  }

  #treatment-page .form-group input {
    font-size: 1.4rem;
    padding: 8px;
    width: 100%;
    box-sizing: border-box;
  }

  #continueBtn {
    width: 100%;
    font-size: 1.4rem;
    height: 40px;
  }

  /* Order summary adjustments */
  #treatment-page .stack-gap > * + * {
    margin-top: 10px;
  }

  #treatment-page .order-summary .subtotal .card-header {
    font-size: 1.4rem;
  }

  #treatment-page .order-summary .subtotal .value {
    font-size: 1.4rem;
  }

  #treatment-page .section-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
  }

  #treatment-page .section-row .label {
    font-size: 1.4rem;
    color: #555;
  }
  
  #treatment-page .section-row .value {
    font-size: 1.4rem;
    font-weight: 600;
  }

  #treatment-page .section-row .value1 {
    font-size: 1.4rem;
    font-weight: 600;
  }

  #treatment-page .booking-btn-wrapper {
    margin-top: 15px;
  }

  #treatment-page .booking-btn {
    width: 100%;
    font-size: 1.4rem;
    height: 40px;
  }
  
  #treatment-page .section-row .label,
    #treatment-page .section-row .value,
    #treatment-page .section-row .value1 {
        width: 100%;
        text-align: left; /* optional: ensures value aligns left under label */
        padding: 0;
        margin: 0;
    }
}
    
.receipt-page {
    font-family: Arial, sans-serif;
    background: white;
    padding: 40px 0;
    min-height: 100vh;
}

/* Center the receipt box */
.receipt-page .receipt-wrapper {
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

/* Receipt container */
.receipt-page .receipt-box {
    background: white;
    width: 600px;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

/* Header styles */
.receipt-page .receipt-header {
    text-align: center;
}

.receipt-page .receipt-header .logo {
    width: 120px;
    margin-bottom: 10px;
}

.receipt-page .receipt-header h2 {
    margin: 0;
}

.receipt-page .receipt-header .subtitle {
    color: #777;
    margin-top: -5px;
}

/* Booking info section */
.receipt-page .booking-info {
    margin-top: 20px;
}

/* General section styling */
.receipt-page .section {
    margin-top: 20px;
}

.receipt-page .section h3 {
    margin-bottom: 10px;
}

.receipt-page .thick-line {
    border: 2px solid #000;
    margin: 20px 0;
}

/* Thank you note */
.receipt-page .thank-you {
    text-align: center;
    margin-top: 30px;
    font-weight: bold;
}

/* Button styling */
.receipt-page .btn-area {
    text-align: center;
    margin-top: 30px;
}

.receipt-page .btn-area button {
    background: #55B89A;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;  /* ensure button is inline-block for centering */
    margin: 0 auto;
}

.receipt-page .btn-area button:hover {
    background: #479b84;
}

/* Hide the button when printing */
@media print {
    .receipt-page .no-print {
        display: none !important;
    }
}

@media (max-width: 1024px) {

    .receipt-page .receipt-box {
        max-width: 90%;
        padding: 25px;
    }

    .receipt-page .receipt-header .logo {
        width: 100px;
    }

    .receipt-page .receipt-header h2 {
        font-size: 22px;
    }

    .receipt-page .section h3 {
        font-size: 18px;
    }

}

@media (max-width: 767px) {

    .receipt-page {
        padding: 20px 10px;
    }

    .receipt-page .receipt-box {
        max-width: 100%;
        padding: 20px;
        border-radius: 5px;
    }

    .receipt-page .receipt-header .logo {
        width: 80px;
    }

    .receipt-page .receipt-header h2 {
        font-size: 20px;
    }

    .receipt-page .section h3 {
        font-size: 16px;
    }

    .receipt-page .btn-area button {
        width: 100%;
        padding: 12px;
    }

}

