/* ===== MODAL BACKDROP ===== */
.booking-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(8px);
  display: none;
  z-index: 4000;
}

/* ===== MODAL BOX ===== */
.booking-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 92%;
  max-width: 420px;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  animation: popupIn 0.3s ease;
}

@keyframes popupIn {
  from {
    transform: translate(-50%, -55%) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* ===== MODAL CLOSE BUTTON ===== */
.booking-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f3f4f6;
  border: none;
  cursor: pointer;
  font-size: 20px;
  font-weight: 500;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

/* Hover effect */
.booking-close:hover {
  background: #e5e7eb;
  color: #111827;
  transform: scale(1.05);
}

/* Active (click) */
.booking-close:active {
  transform: scale(0.95);
}

/* Mobile touch comfort */
@media (max-width: 480px) {
  .booking-close {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}


/* ===== STEP INDICATOR ===== */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.step {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #374151;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step.active {
  background: #009b48;
  color: #fff;
}

.step-line {
  width: 40px;
  height: 3px;
  background: #e5e7eb;
  margin: 0 8px;
}

/* ===== CONTENT ===== */
.booking-step {
  display: none;
}

.booking-step.active {
  display: block;
}

/* ===== HEADING ===== */
.booking-box h3 {
  text-align: center;
  margin-bottom: 6px;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.2px;
}

/* subtle helper text below heading (if any) */
.booking-box h3 + p {
  text-align: center;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 18px;
}

/* ===== LABELS ===== */
.booking-box label {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

/* ===== INPUTS ===== */
/* ===== INPUTS & ADDRESS ===== */

.booking-box input,
.booking-box textarea {
  width: 100%;
  box-sizing: border-box;

  padding: 12px 14px;
  margin: 6px 0 14px;

  border: 1px solid #d1d5db;
  border-radius: 12px;

  background: #ffffff;
  color: #111827;

  font-family: inherit;
  font-size: 14px;

  outline: none;

  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}


/* ===== ADDRESS ===== */

.booking-box textarea {
  min-height: 88px;

  resize: vertical;

  line-height: 1.55;

  display: block;
}


/* ===== PLACEHOLDER ===== */

.booking-box input::placeholder,
.booking-box textarea::placeholder {
  color: #9ca3af;
}


/* ===== FOCUS ===== */

.booking-box input:focus,
.booking-box textarea:focus {
  border-color: #078f89;

  background: #ffffff;

  box-shadow:
    0 0 0 3px rgba(7, 143, 137, 0.10);
}


/* ===== READONLY SERVICE ===== */

.booking-box input[readonly] {
  background: #f7faf9;
  color: #078f89;
  font-weight: 600;
  cursor: not-allowed;
}

/* readonly input (service field) */
.booking-box input[readonly] {
  background: #f9fafb;
  color: #111827;
  font-weight: 600;
  cursor: not-allowed;
}

/* ===== OTP INPUTS ===== */
.otp-wrapper {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 12px 0 18px;
}

.otp-input {
  width: 52px;
  height: 56px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  border-radius: 12px;
  border: 1.5px solid #d1d5db;
  outline: none;
  transition: all 0.2s ease;
}

.otp-input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}

/* ===== PRIMARY BOOK NOW BUTTON ===== */
.book-now-btn {
  padding: 6px 32px;           /* desktop height ↑ */
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #ffffff;
  border: none;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.4px;
  cursor: pointer;

  box-shadow: 
    0 14px 30px rgba(34, 197, 94, 0.45),
    inset 0 1px 0 rgba(255,255,255,0.25);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.3s ease;
}

/* Desktop hover = strong highlight */
@media (hover: hover) {
  .book-now-btn:hover {
    transform: translateY(-3px);
    box-shadow: 
      0 20px 42px rgba(34, 197, 94, 0.6),
      inset 0 1px 0 rgba(255,255,255,0.3);
    background: linear-gradient(135deg, #15803d, #22c55e);
  }
}

/* Active click */
.book-now-btn:active {
  transform: translateY(0);
  box-shadow:
    0 8px 18px rgba(34, 197, 94, 0.4);
}

/* ===== MOBILE HEIGHT REDUCE ===== */
@media (max-width: 768px) {
  .book-now-btn {
    padding: 12px 24px;   /* height ↓ */
    font-size: 15px;
    border-radius: 14px;
  }
}


/* ===== BUTTON ===== */
.primary-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #1db954, #4ade80);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}


.primary-btn:hover {
  opacity: 0.95;
}

/* ===== RESEND ===== */
.resend {
  text-align: center;
  font-size: 13px;
  margin-top: 12px;
}

.resend span {
  color: #ff7a18;
  cursor: pointer;
}



/* Mobile Optimization */
@media (max-width: 768px) {
  .book-now-btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border-radius: 16px;
  }
}

.confirmation-text {
  text-align: center;
  font-size: 15px;
  line-height: 1.6;
  color: #374151;
  margin: 18px 0 24px;
}

.confirmation-text strong {
  color: #16a34a;
}
#step3 {
  text-align: center;
  padding-top: 10px;
}

#step3 h3 {
  color: #16a34a;
  margin-bottom: 14px;
}

#step3 .primary-btn {
  margin-top: 10px;
}


/* ===== BOOKING SUCCESS ===== */

.booking-success {
  display: none;
  text-align: center;
  padding: 20px 8px 5px;
}

.booking-success-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #e9f8f0;
  color: #16a34a;
  font-size: 27px;
}

.booking-success h3 {
  margin: 0 0 8px;
  color: #173f46;
  font-size: 21px;
  font-weight: 800;
}

.booking-success p {
  max-width: 320px;
  margin: 0 auto 22px;
  color: #6b7b7f;
  font-size: 13px;
  line-height: 1.6;
}

.booking-success-btn {
  width: 100%;
  padding: 13px 18px;
  border: 0;
  border-radius: 11px;
  background: #078f89;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.booking-success-btn:hover {
  background: #067b76;
}

