/* ==========================================================================
   SCOT AIRPORT TRANSFERS — Booking Engine Integration CSS
   Responsive, zero layout shift (CLS protected), accessibility-tested
   ========================================================================== */

#airport-booking-widget {
  width: 100%;
  min-height: 380px;
  position: relative;
  background-color: #FFFFFF;
  border-radius: var(--radius-lg, 16px);
  transition: all 0.25s ease;
}

/* Loading State Overlay */
.widget-loading-state {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  z-index: 10;
  border-radius: var(--radius-lg, 16px);
  gap: 1rem;
}

.widget-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid #E2E8F0;
  border-top-color: #0077D4;
  border-radius: 50%;
  animation: widgetSpin 0.8s linear infinite;
}

@keyframes widgetSpin {
  to { transform: rotate(360deg); }
}

/* Error / Fallback State */
.widget-error-state {
  padding: 2rem;
  background-color: #FFF5F5;
  border: 1px solid #FED7D7;
  border-radius: var(--radius-md, 10px);
  color: #9B2C2C;
  font-size: 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Pre-booking Interface / Interactive Search Bar */
.booking-search-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.search-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 640px) {
  .search-field-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.search-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
}

.search-field-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #102A43;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.search-field-group label svg {
  color: #0077D4;
}

.search-input,
.search-select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #111827;
  background-color: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.search-input:focus,
.search-select:focus {
  outline: none;
  background-color: #FFFFFF;
  border-color: #0077D4;
  box-shadow: 0 0 0 3px rgba(0, 119, 212, 0.15);
}

.booking-submit-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  background-color: #0077D4;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(0, 119, 212, 0.28);
}

.booking-submit-btn:hover {
  background-color: #005FA8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 119, 212, 0.38);
}

.booking-submit-btn:focus-visible {
  outline: 3px solid #102A43;
  outline-offset: 2px;
}

/* Third-Party Iframe Container */
.booking-iframe-wrapper {
  position: relative;
  width: 100%;
  min-height: 480px;
  overflow: hidden;
  border-radius: 12px;
}

.booking-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border: none;
  display: block;
}

/* Configuration Instruction Box (Visible only when no integration script is added) */
.booking-integration-badge {
  background: #F0F7FD;
  border: 1px dashed #1769AA;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.825rem;
  color: #102A43;
  line-height: 1.5;
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.booking-integration-badge svg {
  color: #0077D4;
  flex-shrink: 0;
  margin-top: 2px;
}

