/* ============================================================
   BOOKING PAGE — booking-page.css
   Loads ONLY on Booking page (page-template-page-booking).
   ============================================================ */

/* ── SECTION 1: Hero ── */
.bk-hero {
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  min-height: 520px;
  padding-top: calc(var(--site-header-full-height, 153px) + 140px);
  padding-bottom: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bk-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,27,46,0.55) 0%, rgba(7,27,46,0.75) 100%);
  z-index: 0;
}

.bk-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.bk-hero__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 16px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.30);
  border-radius: 999px;
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-weight: 700;
  font-size: 14px;
  line-height: 24px;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.bk-hero__label {
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-weight: 700;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.12em;
  color: #D6B54A;
  font-style: italic;
  margin: 0 0 20px;
}

.bk-hero__title {
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-weight: 700;
  font-size: 52px;
  line-height: 62px;
  color: #FFFFFF;
  margin: 0 0 20px;
}

.bk-hero__title-highlight {
  color: #D6B54A;
}

.bk-hero__desc {
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: rgba(255,255,255,0.88);
  max-width: 660px;
  margin: 0 auto;
}

/* ── SECTION 2: Booking Form ── */
.bk-form-section {
  background: #F5F7FA;
  padding: 100px 0;
}

.bk-form-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
}

.bk-form-card {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
}

/* Vehicle selection */
.bk-vehicles {
  margin-bottom: 32px;
}

.bk-vehicles__label {
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748B;
  margin: 0 0 12px;
}

.bk-vehicles__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.bk-vehicle-card {
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  user-select: none;
}

.bk-vehicle-card:hover {
  border-color: #94A3B8;
}

.bk-vehicle-card.is-selected {
  border: 2px solid #071B2E;
  box-shadow: 0 4px 16px rgba(7,27,46,0.10);
}

.bk-vehicle-card__img-wrap {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: #F1F5F9;
}

.bk-vehicle-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.bk-vehicle-card:hover .bk-vehicle-card__img {
  transform: scale(1.04);
}

.bk-vehicle-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #E5E7EB 0%, #F8FAFC 100%);
}

/* Gold check badge — visible only on selected card */
.bk-vehicle-card__check {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bk-vehicle-card.is-selected .bk-vehicle-card__check {
  opacity: 1;
}

.bk-vehicle-card__body {
  padding: 12px 14px 14px;
}

.bk-vehicle-card__name {
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-weight: 700;
  font-size: 15px;
  line-height: 22px;
  color: #071B2E;
  margin: 0 0 6px;
}

.bk-vehicle-card__specs {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.bk-vehicle-card__spec {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-size: 13px;
  color: #64748B;
  line-height: 1.4;
}

/* Vehicle card hidden state (controlled by service type selection) */
.bk-vehicle-card--hidden { display: none !important; }

/* Placeholder shown when no service type is selected */
.bk-vehicles__placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: #F5F7FA;
  border: 1px dashed #CBD5E1;
  border-radius: 8px;
  color: #64748B;
  font-size: 14px;
  margin-top: 4px;
}
.bk-vehicles__placeholder svg { flex-shrink: 0; }

/* CF7 form overrides */
.bk-cf7-wrapper .wpcf7 { margin: 0; }
.bk-cf7-wrapper .wpcf7-form { margin: 0; }

/* Labels */
.bk-cf7-wrapper label,
.bk-cf7-wrapper .wpcf7-form label {
  display: block;
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748B;
  margin-bottom: 6px;
  line-height: 1;
}

/* Inputs, selects */
.bk-cf7-wrapper input[type="text"],
.bk-cf7-wrapper input[type="email"],
.bk-cf7-wrapper input[type="tel"],
.bk-cf7-wrapper input[type="number"],
.bk-cf7-wrapper input[type="date"],
.bk-cf7-wrapper input[type="time"],
.bk-cf7-wrapper select,
.bk-cf7-wrapper .wpcf7-text,
.bk-cf7-wrapper .wpcf7-email,
.bk-cf7-wrapper .wpcf7-tel,
.bk-cf7-wrapper .wpcf7-select,
.bk-cf7-wrapper .wpcf7-date {
  width: 100%;
  height: 52px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 0 16px;
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-size: 15px;
  color: #071B2E;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}

.bk-cf7-wrapper input:focus,
.bk-cf7-wrapper select:focus,
.bk-cf7-wrapper .wpcf7-text:focus,
.bk-cf7-wrapper .wpcf7-email:focus {
  border-color: #071B2E;
  box-shadow: 0 0 0 3px rgba(7,27,46,0.08);
}

.bk-cf7-wrapper input::placeholder,
.bk-cf7-wrapper .wpcf7-text::placeholder {
  color: #94A3B8;
}

/* Textarea */
.bk-cf7-wrapper textarea,
.bk-cf7-wrapper .wpcf7-textarea {
  width: 100%;
  min-height: 100px;
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 14px 16px;
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-size: 15px;
  color: #071B2E;
  outline: none;
  resize: vertical;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
  line-height: 1.6;
}

.bk-cf7-wrapper textarea:focus,
.bk-cf7-wrapper .wpcf7-textarea:focus {
  border-color: #071B2E;
  box-shadow: 0 0 0 3px rgba(7,27,46,0.08);
}

/* Submit (hide CF7 default; we use our custom confirm button) */
.bk-cf7-wrapper input[type="submit"],
.bk-cf7-wrapper .wpcf7-submit {
  display: none;
}

/* Validation messages */
.bk-cf7-wrapper .wpcf7-not-valid-tip {
  color: #EF4444;
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

.bk-cf7-wrapper .wpcf7-response-output {
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 14px;
  margin: 16px 0 0;
  border: none;
}

.bk-cf7-wrapper .wpcf7-mail-sent-ok {
  background: #F0FDF4;
  color: #166534;
}

.bk-cf7-wrapper .wpcf7-mail-sent-ng,
.bk-cf7-wrapper .wpcf7-spam-blocked {
  background: #FEF2F2;
  color: #991B1B;
}

/* Form notice (no shortcode set) */
.bk-form-notice {
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-size: 15px;
  color: #94A3B8;
  font-style: italic;
  padding: 24px;
  background: #F8FAFC;
  border-radius: 12px;
  text-align: center;
}

/* Form footer: terms + confirm button */
.bk-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #F1F5F9;
  flex-wrap: wrap;
}

.bk-form-terms {
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-size: 13px;
  line-height: 20px;
  color: #94A3B8;
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.bk-form-terms a {
  color: #D6B54A;
  text-decoration: none;
}

.bk-form-terms a:hover {
  text-decoration: underline;
}

.bk-confirm-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 32px;
  height: 56px;
  background: #071B2E;
  color: #FFFFFF;
  border: none;
  border-radius: 16px;
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.bk-confirm-btn:hover {
  background: #1B2033;
  transform: translateY(-2px);
}

/* ============================================================
   BOOKING FORM — Custom pill-input form (booking-form-section.php)
   ============================================================ */

/* 2-column field rows */
.bk-field-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 28px;
  margin-bottom: 0;
}

/* Uppercase field labels */
.bk-field-label {
  display: block;
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-weight: 700;
  font-size: 13px;
  line-height: 22px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748B;
  margin-bottom: 10px;
}

.bk-field-label--optional {
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
  color: #94A3B8;
  margin-left: 6px;
}

/* Icon + input wrapper */
.bk-field-wrap {
  position: relative;
}

.bk-field-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
  align-items: center;
  z-index: 1;
}

/* Pill inputs */
.kk-booking-form .kk-form__input {
  height: 52px;
  border-radius: 999px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  padding: 0 20px 0 52px;
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-size: 16px;
  line-height: 26px;
  color: #1B2033;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.kk-booking-form .kk-form__input::placeholder { color: #94A3B8; }

.kk-booking-form .kk-form__input:focus {
  border-color: #071B2E;
  box-shadow: 0 0 0 3px rgba(7, 27, 46, 0.08);
}

/* Select: keep chevron right */
.kk-booking-form .kk-form__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 46px;
  cursor: pointer;
}

/* Date input: push calendar icon clear of left SVG */
.kk-booking-form input[type="date"] {
  padding-right: 14px;
}

/* Textarea: rounded, not pill */
.bk-field-textarea {
  height: 78px !important;
  border-radius: 22px !important;
  padding-top: 18px !important;
  padding-bottom: 14px !important;
  padding-left: 20px !important;
  resize: vertical;
  min-height: 78px;
  line-height: 1.6;
}

/* Error state */
.kk-booking-form .kk-form__group.has-error .kk-form__input {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.kk-booking-form .kk-form__error {
  display: block;
  font-size: 12px;
  color: #DC2626;
  font-weight: 500;
  min-height: 16px;
  margin-top: 4px;
}

.kk-booking-form .kk-form__group { margin-bottom: 20px; }

/* Vehicle group: full width */
.bk-vehicle-group {
  margin-top: 4px;
}

.bk-vehicle-group > .bk-field-label { margin-bottom: 12px; }

.bk-vehicle-group .kk-form__error { margin-top: 8px; }

/* Terms checkbox inline */
.bk-form-terms--checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.bk-form-terms--checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #071B2E;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 4px;
}

/* Confirm button — pill style (overrides earlier border-radius: 16px) */
.bk-confirm-btn {
  border-radius: 999px;
  padding: 18px 42px;
  font-size: 18px;
  line-height: 28px;
  box-shadow: 0 12px 30px rgba(7, 27, 46, 0.25);
}

/* Form card padding from spec (overrides earlier 40px) */
.bk-form-card {
  padding: 48px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

/* Success state inside the form card */
.bk-form-card .kk-form-success {
  padding: 60px 24px;
}

/* ── SECTION 3: How It Works (loaded from shared template-part) ── */
/* Ensure styles apply when section-how-it-works.php is used */
.how-it-works-section {
  background: #FFFFFF;
  padding: 100px 0;
}

.hiw-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 80px;
}

.hiw-header {
  text-align: center;
  margin-bottom: 64px;
}

.hiw-title {
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-weight: 700;
  font-size: 44px;
  line-height: 54px;
  color: #071B2E;
  margin: 0 0 16px;
}

.hiw-subtitle {
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-size: 18px;
  line-height: 30px;
  color: #64748B;
  margin: 0;
}

.hiw-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}

.hiw-process-track {
  position: absolute;
  top: 48px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: #E5E7EB;
  z-index: 0;
}

.hiw-process-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #D6B54A 0%, #071B2E 100%);
  transition: width 1.4s ease;
}

.hiw-process-fill.is-animated {
  width: 100%;
}

.hiw-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hiw-step__icon-wrap {
  position: relative;
  margin-bottom: 28px;
}

.hiw-step__icon {
  width: 96px;
  height: 96px;
  background: #071B2E;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(7,27,46,0.18);
}

.hiw-step__icon svg,
.hiw-step__icon img {
  width: 48px;
  height: 48px;
}

.hiw-step__badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 28px;
  height: 28px;
  background: #D6B54A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-weight: 700;
  font-size: 13px;
  color: #071B2E;
  border: 2px solid #FFFFFF;
}

.hiw-step__title {
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-weight: 700;
  font-size: 20px;
  line-height: 30px;
  color: #071B2E;
  margin: 0 0 12px;
}

.hiw-step__desc {
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-size: 16px;
  line-height: 26px;
  color: #64748B;
  margin: 0;
  max-width: 260px;
}

/* ── SECTION 4: Support Strip ── */
.bk-support-strip {
  background: #071B2E;
  padding: 28px 0;
  position: relative;
  overflow: hidden;
}

.bk-support-strip__container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 144px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.bk-support-strip__left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.bk-support-strip__icon {
  width: 56px;
  height: 56px;
  background: rgba(18,36,82,0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bk-support-strip__title {
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 28px;
  color: #FFFFFF;
  margin: 0 0 4px;
}

.bk-support-strip__subtitle {
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: rgba(255,255,255,0.70);
  margin: 0;
}

.bk-support-strip__phones {
  display: flex;
  align-items: center;
  gap: 0;
}

.bk-support-strip__sep {
  display: block;
  width: 5px;
  height: 5px;
  background: #D6B54A;
  border-radius: 50%;
  flex-shrink: 0;
  margin: 0 24px;
}

.bk-support-strip__phone {
  display: flex;
  align-items: center;
  gap: 0;
}

.bk-support-strip__phone-city {
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  line-height: 1;
  white-space: nowrap;
}

.bk-support-strip__phone-num {
  font-family: var(--font-family, 'Open Sans', sans-serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 24px;
  color: #FFFFFF;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
}

.bk-support-strip__phone-icon {
  flex-shrink: 0;
  margin: 0 6px;
}

.bk-support-strip__phone-num:hover {
  color: #F0CC6A;
}

.bk-support-strip__phone-num:hover .bk-support-strip__phone-icon path {
  stroke: #F0CC6A;
}

/* ── SECTION 5: Proudly Serving Northwest BC ── */
/* Styles live in serving-section.css (shared with Home page). */

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* 1200px */
@media (max-width: 1200px) {
  .bk-form-container,
  .hiw-container,
  .bk-support-strip__container { padding: 0 40px; }

  .bk-hero__title { font-size: 44px; line-height: 54px; }
  .hiw-title { font-size: 36px; line-height: 46px; }

  /* Vehicles: 4 → 2 columns at 1200px */
  .bk-vehicles__grid { grid-template-columns: repeat(2, 1fr); }
}

/* 991px (tablet) */
@media (max-width: 991px) {
  .bk-hero { min-height: 460px; padding-top: calc(var(--site-header-full-height, 153px) + 110px); padding-bottom: 110px; }
  .bk-hero__inner { padding-top: 0; }
  .bk-hero__title { font-size: 40px; line-height: 50px; }

  .bk-form-section,
  .how-it-works-section { padding: 80px 0; }

  .hiw-steps { grid-template-columns: 1fr; gap: 40px; }
  .hiw-process-track { display: none; }
  .hiw-step { flex-direction: row; text-align: left; align-items: flex-start; gap: 24px; }
  .hiw-step__icon-wrap { margin-bottom: 0; flex-shrink: 0; }
  .hiw-step__icon { width: 72px; height: 72px; }
  .hiw-step__icon svg, .hiw-step__icon img { width: 36px; height: 36px; }
  .hiw-step__desc { max-width: 100%; }
  .hiw-title { font-size: 32px; line-height: 42px; }

  .bk-support-strip__container { flex-direction: column; align-items: flex-start; gap: 20px; }
  .bk-support-strip__left { align-items: flex-start; }
  .bk-support-strip__phones { flex-wrap: wrap; gap: 0; }

  /* Custom form tablet: vehicles 2 per row */
  .bk-vehicles__grid { grid-template-columns: repeat(2, 1fr); }
}

/* 767px (mobile) */
@media (max-width: 767px) {
  .bk-form-container,
  .hiw-container,
  .bk-support-strip__container { padding: 0 20px; }

  .bk-hero { min-height: 420px; padding-top: calc(var(--site-header-full-height, 153px) + 90px); padding-bottom: 90px; }
  .bk-hero__title { font-size: 36px; line-height: 46px; }
  .bk-hero__desc { font-size: 16px; }

  .bk-form-section,
  .how-it-works-section { padding: 60px 0; }

  .bk-form-card { padding: 24px 20px; }

  .bk-vehicles__grid { grid-template-columns: 1fr; }

  .bk-form-footer { flex-direction: column; align-items: stretch; }
  .bk-confirm-btn { width: 100%; justify-content: center; }

  .bk-support-strip { padding: 24px 0; }
  .bk-support-strip__container { text-align: center; align-items: center; }
  .bk-support-strip__left { flex-direction: column; align-items: center; gap: 14px; }
  .bk-support-strip__text { text-align: center; }
  .bk-support-strip__phones { flex-direction: column; align-items: center; gap: 14px; }
  .bk-support-strip__sep { display: none; }
  .bk-support-strip__phone { gap: 0; }
  .bk-support-strip__title { font-size: 17px; }
  .bk-support-strip__phone-num { font-size: 16px; }
  .bk-support-strip__phone-city { letter-spacing: 1.5px; }

  .hiw-title { font-size: 28px; line-height: 38px; }
  .hiw-step { flex-direction: column; text-align: center; align-items: center; }

  /* Custom form: stack field rows */
  .bk-field-row { grid-template-columns: 1fr; gap: 0; }
  .kk-booking-form .kk-form__group { margin-bottom: 16px; }
  .bk-form-footer { flex-direction: column; align-items: stretch; }
  .bk-confirm-btn { width: 100%; justify-content: center; }
  .bk-form-card { padding: 24px 20px; }
}
