/* ============================================================
   booking.css — shared "Book a Free Consultation" modal styles.
   Markup + logic are injected by js/booking.js on every page.
   The sticky mobile .cta-bar styles live in styles.css (§1.7).
   ============================================================ */

.booking-modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 99999;
  background: rgba(10, 10, 10, 0.85); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.booking-modal.is-open { opacity: 1; pointer-events: auto; }

.bm-box {
  background: #0A0A0A; border: 1px solid #222; border-top: 3px solid #E8001D;
  border-radius: 16px; width: 90%; max-width: 480px; padding: 2.5rem;
  position: relative; transform: translateY(20px); transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 25px 50px rgba(0,0,0,0.8);
}
.booking-modal.is-open .bm-box { transform: translateY(0); }

.bm-close {
  position: absolute; top: 1.2rem; right: 1.2rem; background: transparent;
  border: none; color: #888; font-size: 1.8rem; cursor: pointer; line-height: 1;
  transition: color 0.2s;
}
.bm-close:hover { color: #fff; }

.bm-step { display: none; }
.bm-step.is-active { display: block; animation: bmFadeIn 0.4s ease forwards; }
@keyframes bmFadeIn { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }

.bm-title { font-family: 'Bebas Neue', sans-serif; font-size: 2.5rem; color: #fff; margin: 0 0 0.5rem 0; letter-spacing: 1px; line-height: 1; }
.bm-desc { color: #888; font-family: 'Inter', sans-serif; font-size: 0.95rem; margin-bottom: 2rem; }

.bm-field { margin-bottom: 1.2rem; position: relative; }
.bm-field label { display: block; font-family: 'Inter', sans-serif; font-size: 0.85rem; color: #aaa; margin-bottom: 0.4rem; font-weight: 500; }
.bm-field input {
  width: 100%; padding: 0.85rem 1rem; background: #111; border: 1px solid #333;
  border-radius: 8px; color: #fff; font-family: 'Inter', sans-serif; font-size: 1rem;
  transition: all 0.2s; box-sizing: border-box;
}
.bm-field input:focus { outline: none; border-color: #E8001D; box-shadow: 0 0 0 3px rgba(232,0,29,0.15); }

/* Validation Styles */
.bm-field.is-valid input { border-color: #10B981; }
.bm-field.is-invalid input { border-color: #EF4444; }
.bm-err { color: #EF4444; font-size: 0.75rem; margin-top: 0.4rem; display: none; font-family: 'Inter', sans-serif; }
.bm-field.is-invalid .bm-err { display: block; }
.bm-icon { position: absolute; right: 1rem; top: 2.2rem; opacity: 0; transition: opacity 0.2s; }
.bm-field.is-valid .bm-icon.valid { opacity: 1; color: #10B981; }
.bm-field.is-invalid .bm-icon.invalid { opacity: 1; color: #EF4444; }

/* Buttons */
.bm-btn {
  width: 100%; padding: 1rem; background: #E8001D; color: #fff; border: none;
  border-radius: 8px; font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1rem;
  cursor: pointer; transition: background 0.2s, opacity 0.2s; margin-top: 1rem;
}
.bm-btn:disabled { background: #333; color: #666; cursor: not-allowed; }
.bm-btn:not(:disabled):hover { background: #FF2D40; }
.bm-btn-outline { background: transparent; border: 1px solid #444; margin-top: 0.75rem; color: #fff; }
.bm-btn-outline:hover { background: #111; border-color: #666; }

/* Calendar */
.bm-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.bm-cal-nav { background: #111; border: 1px solid #333; color: #fff; width: 32px; height: 32px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.bm-cal-nav:hover { background: #222; }
.bm-cal-month { font-family: 'Inter', sans-serif; font-weight: 600; color: #fff; font-size: 1.1rem; }

.bm-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.bm-day-name { font-size: 0.75rem; color: #666; text-transform: uppercase; font-weight: 600; padding-bottom: 0.5rem; }
.bm-day { padding: 0.6rem 0; border-radius: 6px; font-size: 0.9rem; cursor: pointer; border: 1px solid transparent; color: #fff; transition: all 0.2s; font-family: 'Inter', sans-serif;}
.bm-day:hover:not(.is-disabled) { border-color: #E8001D; background: rgba(232,0,29,0.05); }
.bm-day.is-disabled { color: #333; cursor: not-allowed; text-decoration: line-through; }
.bm-day.is-selected { background: #E8001D; color: #fff; font-weight: bold; border-color: #E8001D; }

/* Time Slots */
.bm-slots-wrap { margin-top: 2rem; display: none; }
.bm-slots-wrap.is-active { display: block; animation: bmFadeIn 0.3s ease forwards; }
.bm-slots-wrap h4 { margin: 0 0 1rem 0; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.9rem; color: #aaa; }
.bm-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 160px; overflow-y: auto; padding-right: 4px; }
.bm-slots::-webkit-scrollbar { width: 4px; }
.bm-slots::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }
.bm-slot { background: #111; border: 1px solid #333; padding: 0.75rem; border-radius: 6px; text-align: center; cursor: pointer; font-size: 0.9rem; color: #fff; transition: all 0.2s; }
.bm-slot:hover:not(.is-disabled) { border-color: #E8001D; }
.bm-slot.is-disabled { opacity: 0.3; cursor: not-allowed; text-decoration: line-through; }
.bm-slot.is-selected { background: #E8001D; border-color: #E8001D; font-weight: 600; }

/* Success State */
.bm-success-content { text-align: center; }
.bm-check-ring { width: 70px; height: 70px; background: rgba(232, 0, 29, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem auto; color: #E8001D; border: 2px solid rgba(232,0,29,0.3); }
.bm-success-content p { color: #aaa; line-height: 1.6; font-size: 1rem; margin-bottom: 2rem; }
.bm-success-content strong { color: #fff; }
.bm-red-text { color: #E8001D !important; }
