/* =========================================
   VANBERT — Booking Modal & Quote Form
   ========================================= */

.book-modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0,0,0,0.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s ease, visibility .35s;
}
.book-modal-overlay.open { opacity: 1; visibility: visible; pointer-events: auto; }

.book-modal {
  background: linear-gradient(180deg, #141416 0%, #0E0E10 100%);
  border: 1px solid rgba(255,255,255,0.08); border-radius: 18px;
  width: 100%; max-width: 720px; max-height: 92vh; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  transform: translateY(20px) scale(0.98); transition: transform .4s cubic-bezier(.2,.7,.3,1);
  position: relative;
  isolation: isolate;
}
.book-modal-overlay.open .book-modal { transform: translateY(0) scale(1); }

.book-modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #C9A96E; transition: all .2s ease;
}
.book-modal-close:hover { background: rgba(255,255,255,0.12); transform: rotate(90deg); }
.book-modal-close svg { width: 14px; height: 14px; }

.book-modal-header {
  padding: 36px 40px 20px; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.book-modal-eyebrow {
  font-size: 11px; letter-spacing: 3px; color: #C9A96E; margin-bottom: 8px; display: block;
  text-transform: uppercase;
}
.book-modal-title {
  font-family: 'Cormorant Garamond', serif; font-size: 32px; line-height: 1.15; margin: 0; color: #C9A96E;
}
.book-modal-title em { font-style: italic; color: #C9A96E; font-weight: 300; }
.book-modal-subtitle {
  color: rgba(201, 169, 110,0.6); font-size: 14px; margin: 8px 0 0; line-height: 1.5;
}

/* Step indicator */
.book-stepper {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px; gap: 6px; background: rgba(255,255,255,0.02);
}
.book-stepper-item {
  flex: 1; display: flex; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: 1.5px; color: rgba(201, 169, 110,0.4); text-transform: uppercase;
  transition: color .3s ease;
}
.book-stepper-item .step-num {
  width: 24px; height: 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  font-size: 11px; font-weight: 500; transition: all .3s ease;
}
.book-stepper-item.active { color: #C9A96E; }
.book-stepper-item.active .step-num { background: #C9A96E; color: #0E0E10; border-color: #C9A96E; }
.book-stepper-item.complete .step-num { background: rgba(201, 169, 110,0.15); color: #C9A96E; }
.book-stepper-item.complete .step-num::before { content: '✓'; }
.book-stepper-item.complete .step-num-txt { display: none; }
.book-stepper-connector { flex: 0 0 8px; height: 1px; background: rgba(255,255,255,0.1); }

.book-modal-body {
  padding: 32px 40px; overflow-y: auto; flex: 1;
}

.book-step { display: none; animation: bookFadeIn .4s ease; }
.book-step.active { display: block; }
@keyframes bookFadeIn { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: translateY(0);} }

.book-step h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 22px; color: #C9A96E;
  margin: 0 0 20px; font-weight: 400;
}

/* Trip type radio cards */
.book-trip-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.book-trip-types label {
  position: relative; cursor: pointer; padding: 20px 18px;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
  background: rgba(255,255,255,0.02); transition: all .25s ease;
  display: flex; flex-direction: column; gap: 4px;
}
.book-trip-types label:hover { border-color: rgba(201, 169, 110,0.4); background: rgba(255,255,255,0.04); }
.book-trip-types input[type=radio] { position: absolute; opacity: 0; pointer-events: none; }
.book-trip-types input[type=radio]:checked + .book-tt-label { color: #C9A96E; }
.book-trip-types input[type=radio]:checked ~ * { }
.book-trip-types label:has(input:checked) { border-color: #C9A96E; background: rgba(201, 169, 110,0.06); }
.book-tt-title { font-family: 'Cormorant Garamond', serif; font-size: 20px; color: #C9A96E; }
.book-tt-desc { font-size: 12px; color: rgba(201, 169, 110,0.5); }

/* Form fields */
.book-field { margin-bottom: 18px; }
.book-field label, .book-field-label {
  display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(201, 169, 110,0.6); margin-bottom: 8px;
}
.book-field input[type=text], .book-field input[type=email], .book-field input[type=tel],
.book-field input[type=date], .book-field input[type=time], .book-field input[type=number],
.book-field select, .book-field textarea {
  width: 100%; padding: 14px 16px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
  color: #C9A96E; font-family: 'DM Sans', sans-serif; font-size: 16px;
  transition: border-color .2s ease, background .2s ease;
}
.book-field input:focus, .book-field select:focus, .book-field textarea:focus {
  outline: none; border-color: #C9A96E; background: rgba(255,255,255,0.05);
}
.book-field input::placeholder, .book-field textarea::placeholder { color: rgba(201, 169, 110,0.3); }
.book-field textarea { resize: vertical; min-height: 90px; }
.book-field select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C9A96E' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.book-field input[type="date"] {
  color-scheme: dark;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' stroke='%23FFFFFF' stroke-width='1.6'/%3E%3Cpath d='M8 2V6M16 2V6M3 10H21' stroke='%23FFFFFF' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 44px;
}
.book-field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
  width: 18px;
  height: 18px;
}
[hidden] { display: none !important; }

.book-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.book-row-2 .book-field { margin-bottom: 0; }

/* Aircraft category chips */
.book-aircraft-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.book-aircraft-chips label {
  padding: 10px 16px; border: 1px solid rgba(255,255,255,0.1); border-radius: 30px;
  cursor: pointer; font-size: 13px; color: rgba(201, 169, 110,0.7);
  transition: all .2s ease; background: rgba(255,255,255,0.02);
}
.book-aircraft-chips label:hover { border-color: rgba(201, 169, 110,0.4); color: #C9A96E; }
.book-aircraft-chips input { position: absolute; opacity: 0; pointer-events: none; }
.book-aircraft-chips label:has(input:checked) { background: rgba(201, 169, 110,0.12); border-color: #C9A96E; color: #C9A96E; }

/* Footer actions */
.book-modal-footer {
  padding: 20px 40px; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: rgba(0,0,0,0.3);
  position: relative;
  z-index: 5;
  pointer-events: auto;
}
.book-btn {
  padding: 12px 24px; border-radius: 30px; font-family: 'DM Sans', sans-serif;
  font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; cursor: pointer;
  border: 1px solid transparent; transition: all .25s ease; background: transparent;
  color: #C9A96E; display: inline-flex; align-items: center; gap: 8px;
  position: relative;
  z-index: 6;
  pointer-events: auto;
}
.book-btn-primary { background: #C9A96E; color: #0E0E10; font-weight: 500; }
.book-btn-primary:hover { background: #D4B889; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(201, 169, 110,0.3); }
.book-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.book-btn-ghost { border-color: rgba(255,255,255,0.15); color: rgba(201, 169, 110,0.8); }
.book-btn-ghost:hover { border-color: rgba(255,255,255,0.3); color: #C9A96E; }
.book-btn-text { color: rgba(201, 169, 110,0.5); padding: 12px 4px; }
.book-btn-text:hover { color: #C9A96E; }
.book-modal-footer > div:last-child {
  display: flex;
  gap: 10px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

/* Success state */
.book-success {
  text-align: center; padding: 40px 20px;
}
.book-success-icon {
  width: 72px; height: 72px; margin: 0 auto 24px;
  border-radius: 50%; background: rgba(201, 169, 110,0.12);
  display: flex; align-items: center; justify-content: center;
  color: #C9A96E; animation: bookPulse 2s ease infinite;
}
@keyframes bookPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(201, 169, 110,0.4);} 50% { box-shadow: 0 0 0 14px rgba(201, 169, 110,0);} }
.book-success h3 {
  font-family: 'Cormorant Garamond', serif; font-size: 32px; color: #C9A96E; margin: 0 0 12px; font-weight: 400;
}
.book-success h3 em { font-style: italic; color: #C9A96E; }
.book-success p { color: rgba(201, 169, 110,0.6); font-size: 15px; line-height: 1.6; margin: 0 0 24px; }
.book-success-meta { display: flex; justify-content: center; gap: 28px; margin: 28px 0; padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08); }
.book-success-meta div { text-align: center; }
.book-success-meta .meta-label { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(201, 169, 110,0.4); margin-bottom: 4px; }
.book-success-meta .meta-val { font-family: 'Cormorant Garamond', serif; font-size: 16px; color: #C9A96E; }

/* Validation */
.book-field.error input, .book-field.error select, .book-field.error textarea { border-color: #D97B7B; }
.book-field-error { color: #D97B7B; font-size: 12px; margin-top: 6px; }

/* Mobile */
@media (max-width: 640px) {
  .book-modal-overlay { padding: 0; align-items: stretch; }
  .book-modal { max-height: 100vh; border-radius: 0; max-width: 100%; }
  .book-modal-header { padding: 28px 24px 16px; }
  .book-modal-title { font-size: 26px; }
  .book-stepper { padding: 14px 24px; overflow-x: auto; }
  .book-stepper-item { flex: 0 0 auto; font-size: 10px; }
  .book-modal-body { padding: 24px; }
  .book-modal-footer { padding: 16px 24px; align-items: stretch; flex-wrap: wrap; }
  .book-modal-footer > div:last-child { width: 100%; margin-left: 0; }
  .book-btn { justify-content: center; }
  .book-modal-footer > div:last-child .book-btn { flex: 1 1 100%; width: 100%; }
  .book-modal-footer > div:last-child .book-btn-ghost,
  .book-modal-footer > div:last-child .book-btn-text { flex-basis: calc(50% - 5px); }
  .book-trip-types { grid-template-columns: 1fr; }
  .book-row-2 { grid-template-columns: 1fr; gap: 18px; }
}

/* Lock body scroll when modal open */
body.book-modal-locked { overflow: hidden; }
