/* ==========================================================================
   AURA SILK • Skin & Wax Studio - Components Stylesheet (Mobile Optimized)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Benefits & Experience Highlights Cards
   -------------------------------------------------------------------------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.8rem;
}

.benefit-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 131, 43, 0.3);
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-icon-box {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.benefit-icon-box svg {
  width: 28px;
  height: 28px;
}

.benefit-card:hover .benefit-icon-box {
  transform: scale(1.1) rotate(4deg);
  background: var(--primary);
  color: #FFFFFF;
}

.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
}

.benefit-card p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   2. Interactive Services Tabs & Cards
   -------------------------------------------------------------------------- */
.services-filter-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3.5rem;
}

.filter-btn {
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.filter-btn svg {
  width: 16px;
  height: 16px;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(197, 131, 43, 0.35);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(197, 131, 43, 0.4);
}

.service-image-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.service-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-image {
  transform: scale(1.08);
}

.service-category-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(26, 21, 19, 0.75);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
}

.service-badge-popular {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #E29B38, #C5832B);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 10px rgba(197, 131, 43, 0.4);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.service-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.service-duration, .service-comfort {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.service-comfort span.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #25D366;
  display: inline-block;
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.service-description {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.4rem;
}

.service-features-list {
  margin-bottom: 1.6rem;
  flex-grow: 1;
}

.service-features-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.86rem;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.service-features-list li svg {
  color: var(--primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
}

.service-price-block {
  display: flex;
  flex-direction: column;
}

.service-price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.service-price-val {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--primary);
}

.service-price-val small {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   3. Interactive Session Calculator
   -------------------------------------------------------------------------- */
.calculator-card-wrapper {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.calculator-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 3rem;
  align-items: start;
}

.calc-section-title {
  font-size: 1.15rem;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.zones-category-group {
  margin-bottom: 2rem;
}

.zones-category-group:last-child {
  margin-bottom: 0;
}

.zone-group-title {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.zone-group-title svg {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

.zones-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}

.zone-item-checkbox {
  position: relative;
  cursor: pointer;
  user-select: none;
  display: block;
}

.zone-item-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.zone-pill {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  border: 1.5px solid var(--border-subtle);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.zone-pill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.zone-pill-header svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.zone-item-checkbox input:checked + .zone-pill {
  background: var(--primary-light);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(197, 131, 43, 0.2);
}

.zone-item-checkbox input:checked + .zone-pill .zone-pill-header svg {
  transform: rotate(45deg);
  color: var(--primary);
}

.zone-pill-price {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
}

.zone-pill-time {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Calculator Summary Box */
.calc-summary-panel {
  background: linear-gradient(145deg, #FAF6F0 0%, #F5EAE0 100%);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  border: 1px solid var(--border-light);
  position: sticky;
  top: 6rem;
  box-shadow: var(--shadow-md);
}

.calc-summary-header {
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.4rem;
}

.calc-selected-list {
  max-height: 180px;
  overflow-y: auto;
  margin-bottom: 1.4rem;
  padding-right: 0.5rem;
}

.calc-selected-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.88rem;
  color: var(--text-main);
  border-bottom: 1px dashed rgba(32, 26, 22, 0.05);
}

.calc-empty-hint {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  padding: 1rem 0;
}

.calc-discount-badge {
  background: #EBF7EE;
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #198754;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.4rem;
  animation: pulseGentle 2.5s infinite;
}

.calc-totals-block {
  margin-bottom: 1.6rem;
}

.calc-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.calc-total-row.highlight {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-main);
  padding-top: 0.8rem;
  border-top: 1px dashed var(--border-subtle);
}

.calc-final-price {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   4. Step-by-Step Experience Timeline
   -------------------------------------------------------------------------- */
.protocol-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  position: relative;
}

.protocol-step-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.6rem;
  border: 1px solid var(--border-subtle);
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}

.protocol-step-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.step-number-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #DE9F4D);
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 12px rgba(197, 131, 43, 0.3);
}

.protocol-step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.protocol-step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   5. Pre & Post Care Interactive Section
   -------------------------------------------------------------------------- */
.care-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.care-tab-btn {
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.care-tab-btn svg {
  width: 18px;
  height: 18px;
}

.care-tab-btn.active {
  background: var(--text-main);
  color: #FAF7F2;
  border-color: var(--text-main);
  box-shadow: var(--shadow-md);
}

.care-content-panel {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.care-content-panel.active {
  display: block;
}

.care-tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.6rem;
}

.care-tip-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}

.care-tip-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.care-tip-icon svg {
  width: 20px;
  height: 20px;
}

.care-tip-body h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.care-tip-body p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   6. Testimonials & Social Proof
   -------------------------------------------------------------------------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.review-card {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease;
}

.review-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.review-stars {
  color: #F5A623;
  margin-bottom: 1.1rem;
  display: flex;
  gap: 0.25rem;
}

.review-stars svg {
  width: 16px;
  height: 16px;
  fill: #F5A623;
}

.review-quote {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  font-style: italic;
  margin-bottom: 1.6rem;
  flex-grow: 1;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-light);
}

.author-info strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-main);
}

.author-info span {
  font-size: 0.78rem;
  color: var(--botanical);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   7. Interactive FAQ Accordion
   -------------------------------------------------------------------------- */
.faq-container {
  max-width: 780px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item.active {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.faq-question-btn {
  width: 100%;
  padding: 1.4rem 1.6rem;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text-main);
  gap: 1rem;
}

.faq-icon-chevron {
  color: var(--primary);
  transition: transform 0.3s ease;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.faq-item.active .faq-icon-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.6rem;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.4rem;
}

/* --------------------------------------------------------------------------
   8. Promo CTA Banner
   -------------------------------------------------------------------------- */
.cta-banner-wrapper {
  background: linear-gradient(135deg, #241D1A 0%, #15100E 100%);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  border: 1px solid rgba(197, 131, 43, 0.3);
}

.cta-banner-wrapper::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(197, 131, 43, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.cta-banner-content {
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.cta-banner-content h2 {
  color: #FFFFFF;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  margin-bottom: 1rem;
}

.cta-banner-content p {
  color: #D6CBC4;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  line-height: 1.65;
}

.cta-discount-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(197, 131, 43, 0.2);
  border: 1px solid rgba(197, 131, 43, 0.4);
  color: #F8B868;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}

.cta-discount-chip svg {
  width: 16px;
  height: 16px;
}

/* --------------------------------------------------------------------------
   9. Booking Modal
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(20, 16, 14, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-surface);
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 25px 60px rgba(0,0,0,0.3);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--border-light);
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-primary);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn svg {
  width: 20px;
  height: 20px;
}

.modal-close-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.modal-header {
  margin-bottom: 1.8rem;
  padding-right: 2rem;
}

.modal-header h3 {
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

.modal-header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-primary);
  color: var(--text-main);
  font-size: 16px; /* Prevents auto-zoom on iOS */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--primary);
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(197, 131, 43, 0.15);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.time-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.time-slot-btn {
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.time-slot-btn.active, .time-slot-btn:hover {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
}

/* --------------------------------------------------------------------------
   10. Component Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .calculator-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
  .calc-summary-panel {
    position: static;
  }
}

@media (max-width: 600px) {
  .calculator-card-wrapper {
    padding: 1.8rem 1.2rem;
  }
  
  .zones-picker-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
  }

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

  .modal-card {
    padding: 1.8rem 1.3rem;
  }

  .cta-banner-wrapper {
    padding: 2.5rem 1.4rem;
    text-align: center;
  }

  .cta-banner-content h2 {
    font-size: 1.8rem;
  }

  .cta-banner-wrapper .btn {
    width: 100%;
  }

  .care-nav-tabs {
    flex-direction: column;
    width: 100%;
  }

  .care-tab-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 400px) {
  .zones-picker-grid {
    grid-template-columns: 1fr;
  }
}
