/* ========================================
   2FaceBeauty – Booking System Styles v2.0
   Real Booking + Stripe Integration
   ======================================== */

/* === BOOKING OVERLAY === */
.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.booking-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* === BOOKING MODAL === */
.booking-modal {
  width: 95%;
  max-width: 520px;
  max-height: 90vh;
  background: #FAFAFA;
  border-radius: 8px;
  overflow-y: auto;
  position: relative;
  transform: translateY(30px) scale(0.96);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}

.booking-overlay.active .booking-modal {
  transform: translateY(0) scale(1);
}

.booking-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  color: #7A7A7A;
  transition: color 0.2s;
}

.booking-close:hover {
  color: #0A0A0A;
}

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

/* === PROGRESS BAR === */
.booking-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.75rem 2rem 0;
  gap: 0.5rem;
}

.progress-step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #B0AAAA;
  transition: all 0.3s ease;
}

.progress-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid #E0E0E0;
  border-radius: 50%;
  font-size: 0.625rem;
  font-weight: 400;
  transition: all 0.3s ease;
}

.progress-step.active {
  color: #0A0A0A;
}

.progress-step.active span {
  background: #0A0A0A;
  color: #FAFAFA;
  border-color: #0A0A0A;
}

.progress-step.completed span {
  background: #E8DFD8;
  color: #0A0A0A;
  border-color: #E8DFD8;
}

.progress-line {
  width: 32px;
  height: 1px;
  background: #E0E0E0;
}

/* === BOOKING CONTENT === */
.booking-content {
  padding: 1.75rem 2rem 2rem;
}

.booking-step-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  margin-bottom: 0.25rem;
}

.booking-step-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8125rem;
  font-weight: 300;
  color: #7A7A7A;
  margin-bottom: 1.5rem;
}

.booking-back {
  font-family: 'Outfit', sans-serif;
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7A7A7A;
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 1rem;
  padding: 0;
  transition: color 0.2s;
}

.booking-back:hover {
  color: #0A0A0A;
}

/* === CATEGORY TABS === */
.category-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  border-bottom: 0.5px solid rgba(10, 10, 10, 0.08);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  padding: 0.625rem 0.875rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #7A7A7A;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
}

.category-tab.active {
  color: #0A0A0A;
  border-bottom-color: #0A0A0A;
  font-weight: 400;
}

/* === SERVICE LIST === */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.service-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border: none;
  border-bottom: 0.5px solid rgba(10, 10, 10, 0.05);
  background: transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.25s ease;
}

.service-option:hover {
  padding-left: 0.5rem;
  background: rgba(232, 200, 180, 0.06);
}

.service-option.selected {
  background: rgba(232, 200, 180, 0.12);
  padding-left: 0.75rem;
  border-left: 2px solid #0A0A0A;
}

.service-option-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.service-option-name {
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: #0A0A0A;
}

.service-option-desc {
  font-family: 'Outfit', sans-serif;
  font-size: 0.6875rem;
  font-weight: 300;
  color: #B0AAAA;
  font-style: italic;
}

.service-option-duration {
  font-family: 'Outfit', sans-serif;
  font-size: 0.625rem;
  font-weight: 300;
  color: #7A7A7A;
  letter-spacing: 0.05em;
}

.service-option-price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 300;
  color: #0A0A0A;
  flex-shrink: 0;
  margin-left: 1rem;
}

/* === DATE SCROLL === */
.date-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  margin-bottom: 1.25rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.date-scroll::-webkit-scrollbar {
  display: none;
}

.date-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.625rem 0.75rem;
  border: 0.5px solid rgba(10, 10, 10, 0.1);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  min-width: 54px;
  transition: all 0.2s ease;
}

.date-chip:hover:not(.closed) {
  border-color: #0A0A0A;
  background: rgba(10, 10, 10, 0.02);
}

.date-chip.active {
  background: #0A0A0A;
  border-color: #0A0A0A;
  color: #FAFAFA;
}

.date-chip.closed {
  opacity: 0.3;
  cursor: not-allowed;
}

.date-chip-day {
  font-size: 0.5625rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.date-chip-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.2;
}

.date-chip-month {
  font-size: 0.5rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.date-chip.active .date-chip-day,
.date-chip.active .date-chip-month {
  opacity: 1;
  color: rgba(255, 255, 255, 0.7);
}

/* === TIME SLOTS === */
.time-slots {
  min-height: 80px;
}

.time-slots-empty {
  font-size: 0.8125rem;
  font-weight: 300;
  color: #7A7A7A;
  text-align: center;
  padding: 2rem 0;
}

.time-slots-label {
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7A7A7A;
  margin-bottom: 0.75rem;
}

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

.time-chip {
  padding: 0.625rem;
  border: 0.5px solid rgba(10, 10, 10, 0.1);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8125rem;
  font-weight: 300;
  text-align: center;
  transition: all 0.2s ease;
}

.time-chip:hover {
  border-color: #0A0A0A;
  background: rgba(10, 10, 10, 0.02);
}

.time-chip.active {
  background: #0A0A0A;
  color: #FAFAFA;
  border-color: #0A0A0A;
}

/* === BOOKING SUMMARY === */
.booking-summary {
  margin-bottom: 1.5rem;
  border: 0.5px solid rgba(10, 10, 10, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 1rem;
  font-size: 0.8125rem;
  font-weight: 300;
  border-bottom: 0.5px solid rgba(10, 10, 10, 0.04);
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-row span {
  color: #7A7A7A;
}

.summary-row strong {
  font-weight: 400;
  color: #0A0A0A;
}

.summary-total {
  background: rgba(10, 10, 10, 0.02);
}

.summary-total strong {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.125rem;
}

/* === PAYMENT OPTIONS === */
.payment-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(10, 10, 10, 0.08);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.payment-option.active {
  border-color: #0A0A0A;
  background: rgba(10, 10, 10, 0.02);
}

.payment-option input[type="radio"] {
  margin-top: 0.2rem;
  accent-color: #0A0A0A;
}

.payment-option-content {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.payment-option-title {
  font-size: 0.875rem;
  font-weight: 400;
}

.payment-option-price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 400;
}

.payment-option-note {
  font-size: 0.6875rem;
  font-weight: 300;
  color: #7A7A7A;
}

/* === CUSTOMER FORM === */
.customer-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7A7A7A;
  margin-bottom: 0.25rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.875rem;
  font-weight: 300;
  border: 0.5px solid rgba(10, 10, 10, 0.12);
  border-radius: 4px;
  background: transparent;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: #0A0A0A;
}

.form-group input::placeholder {
  color: #B0AAAA;
}

/* === POLICIES === */
.booking-policies {
  margin-bottom: 1.5rem;
}

.booking-policies p {
  font-size: 0.6875rem;
  font-weight: 300;
  color: #7A7A7A;
  line-height: 1.8;
}

/* === SUBMIT BUTTON === */
.booking-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.booking-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* === ERROR MESSAGE === */
.booking-error {
  background: #FFF0F0;
  color: #CC0000;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  font-size: 0.8125rem;
  font-weight: 300;
  margin-bottom: 1rem;
  display: none;
}

/* === LOADING === */
.booking-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 0;
}

.booking-loading p {
  font-size: 0.8125rem;
  font-weight: 300;
  color: #7A7A7A;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 2px solid rgba(10, 10, 10, 0.1);
  border-top-color: #0A0A0A;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loading-spinner-sm {
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FAFAFA;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* === MOBILE === */
@media (max-width: 768px) {
  .booking-modal {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0;
  }

  .booking-content {
    padding: 1.25rem 1.5rem 2rem;
  }

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