/* =========================================================================
   BMC Hero + Booking Form — Phase 10-5a port
   Source: bmc-hero-production.php v2.4 (wp_head priority 999 + 1000 inline)
   Mechanical translation — same selectors, same rules, same output.
   Loaded only on front page (is_front_page enqueue gate).
   ========================================================================= */

/* ---- Mobile fixes block (was wp_head 999, id="bmc-mobile-fixes") ---- */

/* Full-width hero breakout */
.bmc-hero {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
}
/* Hide old Revolution Slider hero (no-op on shell theme; kept for prod parity) */
.elementor-element-efdc6b0 {
    display: none !important;
}
/* IX-21: Hide broken "View Destination" gallery — links point to empty ?c=&post_type=our-fleet */
.elementor-element-8a68103 {
    display: none !important;
}
@media (max-width: 1001px) {
    .header-main .vender-link { display: none !important; }
}
.mobile-vendor-buttons .mobile-btn { display: block; width: 100%; text-align: center; margin-bottom: 10px; }
/* form mobile layout in head so it applies before form first paint, eliminating CLS */
@media (max-width: 768px) {
    #rasa-form-booking .rasa-form-grid { display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 12px !important; }
    #rasa-form-booking .rasa-field-group { width: 100% !important; }
    .bmc-form-overlap { margin: -40px 10px 0 !important; padding: 20px !important; }
}
/* P1-4: Disable Elementor entrance animations on homepage — non-composited animation TBT and CLS */
.elementor-invisible { visibility: visible !important; opacity: 1 !important; }
.elementor-widget-animation, [data-element_type="widget"], [data-element_type="section"] { animation: none !important; transform: none !important; }
/* Phase 7-J: GPU compositor hints on known animated containers (no visual change). */
.slick-track, .slick-slide, .vh-slider .slick-slide, .b-goods-f .b-goods-f__media,
.uk-transition-slide-top, .uk-transition-slide-bottom, .uk-transition-slide-left, .uk-transition-slide-right,
.equipment-item__btn, .feature-item, .b-team__inner, .b-services-nav__link {
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
}

/* ---- Critical hero CSS block (was wp_head 1000) ---- */

/* Hero styles — scoped to .bmc-hero, no global resets */
.bmc-hero *, .bmc-hero *::before, .bmc-hero *::after,
.bmc-form-overlap *, .bmc-form-overlap *::before, .bmc-form-overlap *::after { box-sizing: border-box; }

/* ======== OPTION SEPARATOR ======== */
.bmc-option-header {
  text-align: center;
  padding: 60px 20px 30px;
  background: #f5f5f5;
}
.bmc-option-header h2 {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #c46a4a;
  margin-bottom: 8px;
}
.bmc-option-header p {
  font-size: 0.95rem;
  color: #888;
  font-weight: 300;
}
.bmc-option-divider {
  height: 3px;
  background: linear-gradient(to right, transparent, #c46a4a, transparent);
  max-width: 300px;
  margin: 0 auto;
}

/* ======== SHARED HERO BASE ======== */
.bmc-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-image: image-set(url('https://i0.wp.com/bookmycaravan.in/wp-content/uploads/2023/07/bg-1-min.jpg?w=1920&quality=80') 1x);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.bmc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #333333 0%, #333333 20%, rgba(51,51,51,0.9) 35%, rgba(51,51,51,0.5) 50%, rgba(51,51,51,0.15) 60%, transparent 70%);
  z-index: 1;
}
.bmc-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin-left: 5%;
  margin-right: auto;
  padding: 0 20px;
}
.bmc-hero-content {
  max-width: 60%;
  padding: 140px 0 100px;
  text-align: left;
}
.bmc-hero-preheader {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #c46a4a;
  margin-bottom: 20px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}
.bmc-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  max-width: 90%;
}
.bmc-hero-sub {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  line-height: 1.7;
  max-width: 550px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  font-weight: 300;
}
.bmc-hero-cities {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Lato', sans-serif;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.bmc-hero-cities svg { flex-shrink: 0; color: #c46a4a; }
.bmc-hero-trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
  margin-top: 24px;
  max-width: 480px;
}
.bmc-hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Lato', sans-serif;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.bmc-hero-trust-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(196,106,74,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.bmc-hero-trust-dot { display: none; }

/* ======== SHARED FORM ELEMENTS ======== */
.bmc-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}
.bmc-form-field label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #999;
}
.bmc-form-field select,
.bmc-form-field input {
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: #333;
  outline: none;
  transition: border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
}
.bmc-form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.bmc-form-field select:focus,
.bmc-form-field input:focus { border-color: #c46a4a; }
.bmc-form-btn {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: #c46a4a;
  border: none;
  border-radius: 8px;
  padding: 14px 32px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(196,106,74,0.3);
}
.bmc-form-btn:hover {
  background: #b35a3a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(196,106,74,0.45);
}

/* ======== TRUST STRIP ======== */
.bmc-trust-mini {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 18px 20px;
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  color: #999;
  letter-spacing: 0.3px;
}
.bmc-trust-mini span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bmc-trust-mini svg { color: #c46a4a; flex-shrink: 0; }

/* ============================================================
   OPTION A: OVERLAPPING FORM (active option in production)
   ============================================================ */
.bmc-hero-a { margin-bottom: 0; }
.bmc-hero-a .bmc-hero-content { padding-bottom: 140px; }
.bmc-option-a-wrap { position: relative; background: transparent; margin-bottom: 60px; }
.bmc-form-overlap {
  position: relative;
  z-index: 10;
  max-width: 1100px;
  margin: -80px auto 0;
  padding: 28px 32px 32px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
}
.bmc-form-overlap::before {
  content: 'FIND YOUR CARAVAN';
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.4px;
  color: #c46a4a;
  text-transform: uppercase;
  margin: 0 0 18px;
  text-align: center;
}
.bmc-form-overlap .rasa-form-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 14px 16px !important;
  align-items: end !important;
}
.bmc-form-overlap .rasa-field-group {
  margin-bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}
.bmc-form-overlap .rasa-field-group label {
  font-family: 'Montserrat', sans-serif !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.6px !important;
  text-transform: uppercase !important;
  color: #666 !important;
  margin: 0 0 6px !important;
}
.bmc-form-overlap .rasa-field-group input,
.bmc-form-overlap .rasa-field-group select,
.bmc-form-overlap .rasa-field-group textarea {
  width: 100% !important;
  padding: 11px 14px !important;
  font-size: 14px !important;
  font-family: 'Lato', sans-serif !important;
  border: 1px solid #e8e4de !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: #333 !important;
  height: 42px !important;
  box-sizing: border-box !important;
  appearance: auto !important;
}
.bmc-form-overlap .rasa-field-group input:focus,
.bmc-form-overlap .rasa-field-group select:focus,
.bmc-form-overlap .rasa-field-group textarea:focus {
  border-color: #c46a4a !important;
  outline: 2px solid rgba(196,106,74,0.18) !important;
  outline-offset: 0 !important;
}
.bmc-form-overlap .rasa-field-group input::placeholder {
  color: #aaa !important;
}
/* Submit button — terracotta pill, last grid cell */
.bmc-form-overlap .rasa-form-grid button[type="submit"],
.bmc-form-overlap .rasa-form-grid input[type="submit"],
.bmc-form-overlap .rasa-form-submit,
.bmc-form-overlap button.rasa-submit {
  grid-column: span 4 !important;
  justify-self: center !important;
  margin-top: 8px !important;
  padding: 14px 36px !important;
  font-family: 'Montserrat', sans-serif !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 1.4px !important;
  text-transform: uppercase !important;
  background: #c46a4a !important;
  color: #fff !important;
  border: 2px solid #c46a4a !important;
  border-radius: 999px !important;
  cursor: pointer !important;
  transition: background .2s ease, border-color .2s ease, transform .15s ease !important;
  height: auto !important;
  width: auto !important;
  min-width: 240px !important;
}
.bmc-form-overlap .rasa-form-grid button[type="submit"]:hover,
.bmc-form-overlap .rasa-form-grid input[type="submit"]:hover,
.bmc-form-overlap .rasa-form-submit:hover,
.bmc-form-overlap button.rasa-submit:hover {
  background: #a14d2f !important;
  border-color: #a14d2f !important;
}

/* Let RASA plugin CSS handle form styling — matches live site */
.bmc-rasa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: end;
}
.bmc-rasa-field label {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #666;
  margin-bottom: 6px;
}
.bmc-rasa-field input,
.bmc-rasa-field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Lato', sans-serif;
  font-size: 0.9rem;
  color: #333;
  background: #fff;
}
.bmc-rasa-field input:focus,
.bmc-rasa-field select:focus {
  border-color: #c46a4a;
  outline: none;
}
.bmc-rasa-submit { display: flex; align-items: flex-end; }
.bmc-rasa-submit .bmc-form-btn {
  width: 100%;
  padding: 10px 20px;
  height: 42px;
}
.bmc-trust-a { background: #fff; padding-top: 24px; padding-bottom: 0; }

/* ============================================================
   OPTION B: STRIP BELOW HERO (kept for prod parity, unused)
   ============================================================ */
.bmc-hero-b { min-height: 85vh; }
.bmc-form-strip { background: #333; padding: 24px 0; }
.bmc-form-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: flex-end;
  gap: 16px;
}
.bmc-form-strip .bmc-form-field label { color: rgba(255,255,255,0.55); }
.bmc-form-strip .bmc-form-field select,
.bmc-form-strip .bmc-form-field input {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #fff;
}
.bmc-form-strip .bmc-form-field select:focus,
.bmc-form-strip .bmc-form-field input:focus { border-color: #c46a4a; }
.bmc-form-strip .bmc-form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: rgba(255,255,255,0.08);
}
.bmc-form-strip .bmc-form-field input::placeholder { color: rgba(255,255,255,0.4); }
.bmc-form-strip .bmc-form-field select option { color: #333; background: #fff; }
.bmc-form-strip .bmc-form-btn {
  border-radius: 8px;
  padding: 12px 28px;
  min-height: 48px;
}
.bmc-trust-b { background: #fff; }

/* ============================================================
   OPTION C: RIGHT-SIDE CARD (kept for prod parity, unused)
   ============================================================ */
.bmc-hero-c .bmc-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-left: 5%;
  margin-right: 5%;
}
.bmc-hero-c .bmc-hero-content {
  flex: 1;
  max-width: 55%;
  padding: 140px 0 100px;
}
.bmc-form-glass {
  flex: 0 0 360px;
  background: rgba(30,30,30,0.55);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  z-index: 2;
  position: relative;
}
.bmc-form-glass .bmc-form-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}
.bmc-form-glass .bmc-form-field label { color: rgba(255,255,255,0.5); }
.bmc-form-glass .bmc-form-field select,
.bmc-form-glass .bmc-form-field input {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #fff;
  border-radius: 10px;
}
.bmc-form-glass .bmc-form-field select:focus,
.bmc-form-glass .bmc-form-field input:focus { border-color: #c46a4a; }
.bmc-form-glass .bmc-form-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-color: rgba(255,255,255,0.08);
}
.bmc-form-glass .bmc-form-field input::placeholder { color: rgba(255,255,255,0.35); }
.bmc-form-glass .bmc-form-field select option { color: #333; background: #fff; }
.bmc-form-glass .bmc-form-btn {
  width: 100%;
  border-radius: 12px;
  padding: 16px;
  font-size: 1rem;
  margin-top: 4px;
}
.bmc-trust-c { background: #fff; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .bmc-hero::before {
    background: linear-gradient(to bottom, rgba(51,51,51,0.75), rgba(51,51,51,0.8));
  }
  .bmc-hero-inner { margin-left: auto; margin-right: auto; }
  .bmc-hero-content { max-width: 100%; padding: 100px 0 60px; }
  .bmc-hero-cities { flex-wrap: wrap; }

  /* Option A */
  .bmc-hero-a .bmc-hero-content { padding-bottom: 100px; }
  .bmc-form-overlap {
    flex-direction: column;
    margin: -36px 16px 0;
    padding: 24px 20px;
    gap: 14px;
  }
  .bmc-rasa-grid { grid-template-columns: 1fr 1fr; }
  .bmc-form-overlap .bmc-form-btn { width: 100%; text-align: center; }

  /* Option B */
  .bmc-form-strip-inner {
    flex-direction: column;
    gap: 14px;
  }
  .bmc-form-strip .bmc-form-btn { width: 100%; text-align: center; }

  /* Option C */
  .bmc-hero-c .bmc-hero-inner {
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
  }
  .bmc-hero-c .bmc-hero-content { max-width: 100%; padding-bottom: 30px; }
  .bmc-form-glass {
    flex: none;
    width: 100%;
    max-width: 100%;
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .bmc-hero h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .bmc-option-header { padding: 40px 16px 20px; }
  .bmc-option-header h2 { font-size: 0.9rem; }
}
