/* ============================================
   booking.css — Booking Page Styles
   Nihon Studio
   ============================================ */

/* ========== NAVBAR BOOKING ========== */
.booking-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 64px;
  background: rgba(255, 253, 247, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(242,140,0,0.1);
}

.booking-navbar .nav-container {
  width: 100%;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.booking-navbar .logo-img {
  height: 38px;
  width: auto;
}

.nav-links-booking {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links-booking a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition);
}

.nav-links-booking a:hover {
  color: var(--color-primary);
}

.btn-book-active {
  background: var(--color-primary);
  color: var(--color-white) !important;
  padding: 9px 22px;
  border-radius: var(--radius-btn);
  font-weight: 700 !important;
}

/* ========== HERO BACKGROUND ========== */
.booking-hero {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.booking-hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.booking-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
}

/* ========== BOOKING WRAPPER ========== */
.booking-wrapper {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  padding: 80px 24px 48px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* ========== BOOKING CARD ========== */
.booking-card {
  background: var(--color-white);
  border-radius: 20px;
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  margin-top: 12px;
}

/* ========== TABS (Step Indicator) ========== */
.booking-tabs {
  display: flex;
  background: var(--color-primary-light);
}

.booking-tab {
  flex: 1;
  padding: 16px 8px;
  text-align: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  cursor: default;
  transition: background var(--transition), color var(--transition);
  border-bottom: 3px solid transparent;
  line-height: 1.3;
}

.booking-tab.active {
  background: var(--color-white);
  color: var(--color-primary);
  border-bottom: 3px solid var(--color-primary);
  border-radius: 12px 12px 0 0;
}

.booking-tab.done {
  color: rgba(255,255,255,0.55);
}

/* ========== STEP CONTENT ========== */
.booking-step {
  display: none;
  flex-direction: column;
}

.booking-step.active {
  display: flex;
}

.step-body {
  padding: 24px 32px 16px;
  flex: 1;
}

/* ========== FORM GROUPS ========== */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--color-primary);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-white);
  outline: none;
  transition: box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(242,140,0,0.2);
}

/* ========== STEP 1: Layout 2 Kolom ========== */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 0;
}

/* Input step 1 lebih kurus */
#booking-step-1 .form-group input {
  border-radius: 4px;
  padding: 11px 14px;
  font-size: 0.95rem;
  border: 1.5px solid var(--color-primary);
}

#booking-step-1 .form-group label {
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 8px;
}

/* Additional Notes — textarea lebih tinggi */
#booking-step-1 textarea#b-notes {
  min-height: 100px;
  resize: vertical;
}

/* ========== STEP FOOTER (Tombol) ========== */
.step-footer {
  padding: 12px 32px 24px;
  display: flex;
  gap: 16px;
}

.step-footer.single {
  justify-content: center;
}

.step-footer.double {
  justify-content: space-between;
}

.btn-booking-next,
.btn-booking-confirm {
  flex: 1;
  padding: 16px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.btn-booking-next:hover,
.btn-booking-confirm:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
}

.btn-booking-back {
  flex: 1;
  padding: 16px;
  background: var(--color-white);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.btn-booking-back:hover {
  background: var(--color-bg-section);
  transform: translateY(-2px);
}

.step-footer.single .btn-booking-next {
  max-width: 420px;
  text-align: center;
}

/* ========== STEP 2: LOCATION CARDS ========== */
.location-cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: stretch;
}

.loc-card input[type="radio"] {
  display: none;
}

.loc-card {
  flex: 1;
  min-width: 200px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.loc-card-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  border: 2px solid var(--color-border);
  border-radius: 16px;
  overflow: visible;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: #f9f9f9;
  position: relative;
  z-index: 1;
}

.loc-card * {
  pointer-events: auto;
}

.loc-card input[type="radio"]:checked + .loc-card-inner {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(242,140,0,0.2);
}

.loc-card-img {
  width: 100%;
  height: 140px;
  background: #e0e0e0;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
}

.loc-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loc-card-body {
  padding: 16px;
  flex: 1;
}

.loc-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.loc-card-body p {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.loc-card-radio {
  display: flex;
  justify-content: center;
  padding: 12px 0;
}

.loc-card-radio span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  display: block;
  transition: border-color var(--transition), background var(--transition);
}

.loc-card input[type="radio"]:checked ~ .loc-card-radio span,
.loc-card input[type="radio"]:checked + .loc-card-inner .loc-card-radio span {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

/* ========== STEP 3: SERVICE CARDS ========== */
.service-grid {
  display: flex;
  gap: 20px;
  background: #f5f5f5;
  border-radius: 16px;
  padding: 24px;
}

.service-card {
  flex: 1;
  cursor: pointer;
  position: relative;
}

.service-card input[type="radio"] {
  display: none;
}

.service-card-inner {
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.service-card input[type="radio"]:checked + .service-card-inner {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(242,140,0,0.2);
}

.service-img {
  width: 100%;
  height: 160px;
  background: #ddd;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-label {
  padding: 12px;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1rem;
  text-align: center;
}

.service-check {
  display: none;
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--color-primary);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.service-card input[type="radio"]:checked ~ .service-check {
  display: flex;
}

/* ========== STEP 4: KALENDER ========== */
.time-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.calendar-section {
  flex: 1;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.cal-month-year {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text);
  min-width: 140px;
  text-align: center;
}

.cal-nav {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--color-primary);
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  transition: transform var(--transition);
}

.cal-nav:hover {
  transform: scale(1.2);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-day-name {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
  padding: 6px 0;
}

.cal-day {
  text-align: center;
  padding: 10px 4px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--color-primary);
  cursor: pointer;
  position: relative;
  transition: background var(--transition), color var(--transition);
}

.cal-day:hover {
  background: var(--color-bg-section);
}

.cal-day.selected {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 700;
}

.cal-day.empty {
  cursor: default;
}

.cal-day.today {
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  background: none;
}

/* Tanggal lampau - disabled */
.cal-day.disabled {
  color: #ddd;
  cursor: not-allowed;
  pointer-events: none;
}

.time-section {
  width: 200px;
  flex-shrink: 0;
}

.time-section label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text);
  margin-bottom: 8px;
}

.time-section input[type="time"] {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--color-primary);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  outline: none;
}

.time-hint {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* ========== STEP 5: CONFIRM ========== */
.confirm-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 16px;
}

.confirm-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.confirm-col {
  flex: 1;
  min-width: 140px;
}

.confirm-col-title {
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.confirm-col p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

.confirm-col p span {
  color: var(--color-primary);
  font-weight: 700;
}

.addons-select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--color-primary);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  margin-top: 6px;
  outline: none;
}

.confirm-col textarea {
  width: 100%;
  border: 1.5px solid var(--color-primary);
  border-radius: 8px;
  padding: 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  resize: vertical;
  outline: none;
  margin-top: 6px;
}

.confirm-total {
  border-top: 1.5px solid var(--color-border);
  padding-top: 12px;
  text-align: center;
}

.total-label {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.total-price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-primary);
  margin: 2px 0 6px;
}

.total-note {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ========== STEP 6: THANK YOU ========== */
.thankyou-body {
  text-align: center;
  padding: 60px 40px;
}

.thankyou-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 24px;
}

.thankyou-msg {
  font-size: 1.05rem;
  color: var(--color-primary);
  line-height: 1.9;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .booking-wrapper {
    padding: 72px 12px 32px;
  }

  .step-body {
    padding: 24px 20px 16px;
  }

  .step-footer {
    padding: 16px 20px 24px;
    flex-direction: column-reverse;
  }

  .step-footer.double {
    flex-direction: column-reverse;
  }

  .booking-tabs {
    overflow-x: auto;
  }

  .booking-tab {
    font-size: 0.72rem;
    padding: 12px 6px;
    white-space: nowrap;
  }

  .location-cards {
    flex-direction: column;
  }

  .service-grid {
    flex-direction: column;
  }

  .time-layout {
    flex-direction: column;
  }

  .time-section {
    width: 100%;
  }

  .confirm-grid {
    flex-direction: column;
  }

  .nav-links-booking {
    display: none;
  }

  .form-row-2 {
    grid-template-columns: 1fr;
  }
}
