/* V8 Styles - Extracted from V8/index.php */

/* Loader overlay */
.page-loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.page-loader.hidden {
  display: none;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #e2e8f0;
  border-top-color: #2b6cbd;
  border-radius: 50% !important;
  animation: spin 0.8s linear infinite;
}

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

/* Global sharp edges - remove all border radii (except spinner) */
*:not(.spinner),
*:not(.spinner)::before,
*:not(.spinner)::after {
  border-radius: 0;
}

/* Top marquee */
.announcement-bar {
  background: transparent;
  color: #fff;
  font-weight: 600;
}

.announcement-inner {
  overflow: hidden;
  background: linear-gradient(135deg, #2b6cbd, #2c5d87);
  padding: 6px 20px;
  position: relative;
}

.announcement-text {
  display: inline-block;
  white-space: nowrap;
  font-size: 14px;
  letter-spacing: 0.02em;
  padding-left: 100%;
  animation: marquee-scroll 20s linear infinite;
}

.announcement-text::before {
  content: "\f0a1";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  margin-right: 8px;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* Shared wrapper to keep sections aligned with banner width */
.wrap-1400 {
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  padding: 0;
}

@media (max-width: 768px) {
  .wrap-1400 {
    padding: 0;
  }
}

/* Content Footer Controls (below center scroll frame) */
.booking-content-footer {
  background: #fff;
  border-top: 1px solid #e2e8f0;
  padding: 12px 20px;
  grid-column: 1 / -1;
}

.booking-content-footer .bar-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.booking-content-footer .controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Align footer under right column of grid on desktop (left col is 400px) */
@media (min-width: 1025px) {
  .booking-content-footer .bar-inner {
    width: calc(100% - 360px);
    margin-left: 360px;
  }
}

@media (max-width: 1024px) {
  .booking-content-footer .bar-inner {
    width: 100%;
    margin-left: 0;
  }
}

/* Mobile tweaks: ensure good wrapping and tap targets */
@media (max-width: 768px) {
  .booking-content-footer {
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    grid-column: 1;
  }

  .booking-content-footer .bar-inner {
    justify-content: center;
    gap: 10px;
    flex-direction: column;
  }

  .booking-content-footer #footer-hint {
    order: -1;
    margin-bottom: 4px;
  }

  .booking-content-footer .controls {
    width: 100%;
    display: flex;
    gap: 8px;
  }

  .booking-content-footer .controls .btn {
    flex: 1;
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* Ensure content spacing above footer */
.booking-content {
  padding-bottom: 32px;
}

@media (max-width: 768px) {
  .booking-content {
    padding-bottom: calc(160px + env(safe-area-inset-bottom, 0px));
  }
}

/* Small utilities for Bootstrap 5 migration */
.me-2 {
  margin-right: 0.5rem !important;
}

.me-3 {
  margin-right: 1rem !important;
}

.ms-2 {
  margin-left: 0.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.mb-2 {
  margin-bottom: 0.5rem !important;
}

.w-100 {
  width: 100% !important;
}

.d-none {
  display: none !important;
}

.small {
  font-size: 0.875em;
}

.text-success {
  color: #198754 !important;
}

.text-muted {
  color: #6c757d !important;
}

.text-decoration-none {
  text-decoration: none !important;
}

/* Global mobile safety */
html,
body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* Top utility links */
.top-links {
  background: transparent;
}

.top-links .wrap-1400 {
  background: #ffffffcc;
  padding: 8px 15px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-links a {
  color: #1e293b;
}

.top-links a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .top-links {
    display: none !important;
  }
}

/* Banner Carousel Styles */
.homepage-banners {
  margin: 20px auto;
  max-width: 1400px;
  padding: 0;
  width: 100%;
}

.banner-carousel {
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.banner-slide {
  display: none;
  position: relative;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.banner-slide.active {
  display: block;
}

.banner-bg-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.banner-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  padding: 32px;
  text-align: center;
}

.banner-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0f172a;
}

.banner-description {
  font-size: 18px;
  margin-bottom: 18px;
  color: #475569;
}

.banner-link {
  display: inline-block;
  background: linear-gradient(135deg, #2b6cbd, #2c5d87);
  color: white;
  padding: 14px 28px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(43, 108, 189, 0.4);
}

.banner-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(43, 108, 189, 0.5);
  color: white;
  text-decoration: none;
}

.banner-navigation {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #2b6cbd;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.banner-navigation:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.banner-prev {
  left: 20px;
}

.banner-next {
  right: 20px;
}

.banner-indicators {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.banner-indicator {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.banner-indicator.active {
  background: white;
  transform: scale(1.3);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .homepage-banners {
    padding: 0;
    margin: 10px 0;
    max-width: 100%;
    width: 100%;
  }

  .banner-slide {
    min-height: 250px;
  }

  .banner-bg-img {
    height: 250px;
  }

  .banner-content {
    padding: 25px 20px;
    position: absolute;
  }

  .banner-title {
    font-size: 22px;
  }

  .banner-description {
    font-size: 15px;
  }

  .banner-link {
    padding: 12px 24px;
    font-size: 14px;
  }

  .banner-navigation {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .banner-prev {
    left: 10px;
  }

  .banner-next {
    right: 10px;
  }

  .banner-indicators {
    bottom: 15px;
  }
}

/* Modern Compact Design System */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* Global font inheritance */
* {
  font-family: inherit;
}

/* Ensure all text elements use Signika */
html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Signika",
    "Segoe UI",
    -apple-system,
    BlinkMacSystemFont,
    "Roboto",
    "Helvetica Neue",
    Arial,
    sans-serif !important;
  background: linear-gradient(135deg, #2b6cbd 0%, #2c5d87 100%);
  min-height: 100vh;
  padding: 12px 0 40px;
  overflow-x: hidden;
}

/* Compact Hero */
.dgca-hero {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 30px 40px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  max-width: 1400px;
}

.dgca-header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}

.dgca-logos {
  display: flex;
  align-items: center;
  gap: 15px;
}

.dgca-logos img {
  height: 50px;
  object-fit: contain;
}

.logo-separator {
  font-size: 24px;
  color: #cbd5e1;
}

.dgca-hero-content {
  text-align: center;
}

.dgca-hero h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.2;
}

.dgca-hero .subtitle {
  font-size: 14px;
  color: #64748b;
  margin-top: 5px;
}

.dgca-info-badge {
  background: linear-gradient(135deg, #2b6cbd, #2c5d87);
  color: white;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 768px) {
  body {
    padding: 10px 0 140px;
  }

  .wrap-1400 {
    padding: 0 12px;
  }

  .dgca-hero {
    padding: 22px;
    margin: 0 12px;
  }

  .dgca-header-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    text-align: center;
  }

  .dgca-logos {
    justify-content: center;
    gap: 10px;
  }

  .dgca-logos img {
    height: 42px;
    max-width: 120px;
  }

  .dgca-info-badge {
    justify-self: center;
    font-size: 12px;
    padding: 8px 16px;
  }

  .homepage-banners {
    margin: 16px auto;
    padding: 0 12px;
  }

  .banner-bg-img {
    height: 220px;
  }

  .banner-content {
    padding: 20px;
  }

  .booking-main {
    margin: 0 12px;
    padding-bottom: 120px;
  }

  .booking-grid {
    grid-template-columns: 1fr;
  }

  .booking-sidebar {
    padding: 24px 18px;
    border-right: none;
    border-bottom: 1px solid #e2e8f0;
  }

  .booking-content {
    padding: 24px 18px;
    padding-bottom: calc(160px + env(safe-area-inset-bottom, 0px));
  }
}

/* Main Container - Single View Layout */
.booking-main {
  max-width: 1400px;
  margin: 12px auto 40px;
  background: white;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  width: 100%;
}

/* Two Column Layout for Desktop */
.booking-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  min-height: auto;
}

/* Left Sidebar - Steps & Info */
.booking-sidebar {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 32px 26px;
  border-right: 1px solid #e2e8f0;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Custom scrollbar for sidebar */
.booking-sidebar::-webkit-scrollbar {
  width: 6px;
}

.booking-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.booking-sidebar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
}

.booking-sidebar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.step-nav {
  margin-bottom: 28px;
}

.step-nav-item {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  margin-bottom: 10px;
  background: white;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.step-nav-item.active {
  border-color: #2b6cbd;
  background: linear-gradient(135deg, #2b6cbd 0%, #2c5d87 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(43, 108, 189, 0.3);
}

.step-nav-item.completed {
  background: #22c55e !important;
  color: #fff !important;
  border-color: #22c55e !important;
}

.step-nav-item.completed .step-number {
  background: #16a34a !important;
  color: #fff !important;
}

.step-nav-item.completed .step-number::before {
  content: "✓";
}

.step-number {
  width: 32px;
  height: 32px;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #64748b;
  margin-right: 15px;
  flex-shrink: 0;
}

.step-nav-item.active .step-number {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.step-nav-item.completed .step-number {
  background: #10b981;
  color: white;
}

.step-nav-item.completed .step-number::before {
  content: "✓";
}

.step-info h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
  color: #1e293b;
}

.step-nav-item.active .step-info h3 {
  color: white;
}

.step-info p {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

.step-nav-item.active .step-info p {
  color: rgba(255, 255, 255, 0.9);
}

/* Info Panel in Sidebar */
.info-panel {
  background: white;
  padding: 20px;
  border: 1px solid #e2e8f0;
}

.info-panel h4 {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: #475569;
  margin-bottom: 15px;
  line-height: 1.5;
}

.info-item i {
  font-size: 14px;
  color: #2b6cbd;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Right Content Area - Forms */
.booking-content {
  padding: 32px;
  overflow-y: auto;
  position: relative;
}

.form-section {
  display: none;
  opacity: 0;
  transform: translateY(24px);
}

.form-section.active {
  display: block;
}

.form-section[data-animate="fade-up"].active {
  animation: sectionFadeUp 0.45s ease forwards;
}

@keyframes sectionFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {

  .form-section[data-animate],
  .pilot-card {
    animation: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

.section-header {
  margin-bottom: 20px;
  text-align: left;
}

.section-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
}

.section-header p {
  font-size: 14px;
  color: #64748b;
  margin-top: 5px;
}

/* Pilot Selection Cards */
.pilot-type-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
  pointer-events: auto;
}

.pilot-card {
  padding: 24px;
  border: 2px solid #e2e8f0;
  text-align: center;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.3s ease;
  position: relative;
  animation: cardFloat 0.6s ease forwards;
}

.pilot-card:nth-child(2) {
  animation-delay: 0.07s;
}

.pilot-card:nth-child(3) {
  animation-delay: 0.14s;
}

@keyframes cardFloat {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pilot-card:hover {
  border-color: #94a3b8;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  pointer-events: auto;
}

.pilot-card.selected {
  border-color: #2b6cbd;
  background: #f0f9ff;
  box-shadow: 0 4px 12px rgba(43, 108, 189, 0.2);
}

.pilot-icon {
  font-size: 28px;
  color: #2b6cbd;
  margin-bottom: 15px;
}

.pilot-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.pilot-card p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
}

/* How to Book Section */
.booking-info-panel {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 20px;
  max-height: 210px;
  overflow-y: auto;
}

.booking-info-panel h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
}

.booking-info-panel ul {
  list-style: none;
  padding-left: 0;
}

.booking-info-panel li {
  font-size: 13px;
  color: #475569;
  margin-bottom: 10px;
  display: flex;
  gap: 10px;
}

.booking-info-panel li i {
  color: #2b6cbd;
  margin-top: 3px;
}

/* Form Styles */
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.form-grid.two-col {
  grid-template-columns: 1fr 1fr;
}

.form-grid.single {
  grid-template-columns: 1fr;
}

.form-group {
  margin-bottom: 0;
  position: relative;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.form-text {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.alert {
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}

.alert-danger {
  background-color: #fee2e2;
  border-color: #fecaca;
  color: #991b1b;
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #cbd5e1;
  background: white;
  font-size: 14px;
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}

.form-control:focus {
  outline: none;
  border-color: #2b6cbd;
  box-shadow: 0 0 0 3px rgba(43, 108, 189, 0.2);
}

.mobile-input-wrapper {
  display: flex;
  align-items: stretch;
  border: 2px solid #cbd5e1;
  background: #fff;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
  border-radius: 8px;
  overflow: hidden;
  min-height: 56px;
}

.mobile-input-wrapper:focus-within {
  border-color: #2563eb;
  box-shadow:
    0 0 0 1px rgba(37, 99, 235, 0.1),
    0 8px 18px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.mobile-input-wrapper[data-ready="true"] {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.2);
}

.mobile-input-wrapper[data-verified="true"] {
  border-color: #059669;
  box-shadow: 0 0 0 1px rgba(5, 150, 105, 0.25);
}

.mobile-input-wrapper[data-locked="true"] {
  background: #f8fafc;
}

.country-code-select {
  min-width: 140px;
  padding: 12px 14px;
  border: none;
  border-right: 2px solid #e2e8f0;
  background: #f8fafc;
  font-weight: 600;
  appearance: none;
  flex: 0 0 auto;
  font-size: 15px;
  cursor: pointer;
  line-height: 1.5;
}

.country-code-select--disabled,
.country-code-select:disabled {
  background: transparent;
  color: #475569;
  cursor: not-allowed;
}

.mobile-input-wrapper .mobile-input {
  border: none;
  flex: 1 1 auto;
  min-width: 200px;
  background: #fff;
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}

.mobile-field-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
  padding: 0 2px;
}

.mobile-preview {
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s ease;
  font-size: 14px;
}

.mobile-preview[data-state="empty"] {
  color: #94a3b8;
  font-size: 13px;
}

.mobile-length-chip {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f172a;
  background: #e0f2fe;
  padding: 6px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: chipPulse 1.8s ease infinite;
  border-radius: 12px;
  font-weight: 600;
}

.mobile-length-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  background: #0284c7;
  display: block;
}

@keyframes chipPulse {
  0% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0.6;
  }
}

#country-code-wrapper[data-ready="true"]~.mobile-field-meta .mobile-length-chip {
  background: #dcfce7;
  color: #065f46;
}

#country-code-wrapper[data-verified="true"]~.mobile-field-meta .mobile-length-chip {
  background: #d1fae5;
  color: #047857;
  animation: none;
}

@media (max-width: 576px) {
  .mobile-input-wrapper {
    flex-direction: column;
    min-height: auto;
  }

  .country-code-select {
    width: 100%;
    border-right: none;
    border-bottom: 2px solid #e2e8f0;
    flex: 0 0 auto;
    padding: 14px 16px;
    font-size: 16px;
    min-height: 52px;
  }

  .mobile-input-wrapper .mobile-input {
    width: 100%;
    border-left: none;
    padding: 14px 16px;
    font-size: 16px;
    min-height: 52px;
  }

  .mobile-field-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: 12px;
  }

  .otp-timer-section .d-flex {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .otp-timer-section .d-flex>div:last-child {
    width: 100%;
    margin-top: 12px;
  }

  .otp-timer-section .btn {
    flex: 1;
    min-width: 120px;
  }

  #otp_code {
    font-size: 20px !important;
    letter-spacing: 10px !important;
    padding: 16px !important;
  }
}

/* Tablet and Desktop improvements */
@media (min-width: 577px) and (max-width: 768px) {
  .country-code-select {
    flex: 0 0 180px;
    font-size: 15px;
  }

  .mobile-input-wrapper .mobile-input {
    font-size: 15px;
  }
}

@media (min-width: 769px) {
  .country-code-select {
    flex: 0 0 200px;
  }
}

.form-text {
  font-size: 12px;
  color: #64748b;
  margin-top: 5px;
}

/* OTP Verification Styles */
.otp-verification-container {
  position: relative;
}

.otp-timer-section {
  animation: slideDown 0.3s ease-out;
}

.otp-input-section {
  animation: slideDown 0.3s ease-out;
}

.otp-verified-status {
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#otp_code:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

.otp-verified-status .alert {
  border-left: 4px solid #10b981;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
}

.mobile-input-wrapper[data-verified="true"] {
  pointer-events: none;
  opacity: 0.7;
}

.mobile-input-wrapper[data-verified="true"] .country-code-select,
.mobile-input-wrapper[data-verified="true"] .mobile-input {
  background: #f1f5f9;
  cursor: not-allowed;
}

/* Buttons */
.btn {
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, #2b6cbd, #2c5d87);
  color: white;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-primary:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.btn-secondary {
  background: #e2e8f0;
  color: #334155;
}

.btn-secondary:hover {
  background: #cbd5e1;
}

.btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
  border: none;
}

.btn-success:hover {
  background: linear-gradient(135deg, #059669, #047857);
}

.btn-success:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.btn-outline-secondary {
  background: transparent;
  color: #64748b;
  border: 2px solid #cbd5e1;
}

.btn-outline-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.btn-outline-primary {
  background: transparent;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.btn-outline-primary:hover {
  background: #eff6ff;
  border-color: #1d4ed8;
}

.btn-outline-primary:disabled {
  color: #cbd5e1;
  border-color: #cbd5e1;
  cursor: not-allowed;
}

/* Info Box */
.info-box {
  background: #f0f9ff;
  border-left: 4px solid #2b6cbd;
  padding: 15px 20px;
  margin-bottom: 25px;
  font-size: 14px;
  color: #0c4a6e;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* OTP helper & resend controls */
.otp-helper {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #475569;
}

.otp-helper .otp-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.otp-helper .btn-link {
  color: #1e3c72;
  font-weight: 600;
  text-decoration: none;
  padding: 0;
  background: transparent;
  border: none;
}

.otp-helper .btn-link:disabled {
  color: #94a3b8;
  pointer-events: none;
}

/* Time slot grid */
.time-slots-container {
  margin-top: 12px;
  padding: 16px;
  border: 1px dashed #cbd5f5;
  background: #f8fafc;
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.slot-btn {
  border: 1px solid #94a3b8;
  background: #fff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  transition: all 0.2s ease;
}

.slot-btn .slot-time {
  font-size: 1.05rem;
}

.slot-btn small {
  font-weight: 500;
  color: #475569;
}

.slot-btn:hover {
  border-color: #1e3c72;
  color: #1e3c72;
}

.slot-btn.selected {
  background: #1e3c72;
  border-color: #1e3c72;
  color: #fff;
}

.slot-btn.selected small {
  color: #e0e7ff;
}

.slot-btn.disabled {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
  cursor: not-allowed;
}

.slot-placeholder,
.slot-alert {
  padding: 14px;
  border: 1px solid #cbd5f5;
  background: #fff;
  color: #475569;
  text-align: center;
}

.slot-alert {
  background: #fff8e5;
  border-color: #facc15;
  color: #92400e;
  font-weight: 600;
}

@media (max-width: 768px) {
  .slot-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}

/* Consent Section */
.consent-section {
  margin: 25px 0;
  padding: 20px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.consent-section input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

.consent-section label {
  font-size: 14px;
  color: #475569;
  cursor: pointer;
  user-select: none;
  line-height: 1.5;
}

/* Booking Summary Card Styles */
.booking-summary-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid #e2e8f0;
  padding: 30px;
  margin-bottom: 25px;
}

.booking-summary-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.booking-summary-card h3 i {
  color: #2b6cbd;
}

#booking-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
}

.summary-row:last-child {
  border-bottom: none;
}

.summary-label {
  font-weight: 600;
  color: #475569;
  font-size: 14px;
}

.summary-row span:not(.summary-label) {
  color: #1e293b;
  font-weight: 500;
  font-size: 14px;
}

/* Payment CTA */
.payment-cta {
  margin-top: 30px;
}

.payment-cta .btn {
  font-size: 1.05rem;
  padding: 16px 18px;
  width: 100%;
}

.payment-cta small {
  display: block;
  text-align: center;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #475569;
}

/* Alert Styles */
.alert {
  padding: 15px 20px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}

.alert-info {
  background-color: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
}

.alert-danger {
  background-color: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.alert i {
  margin-right: 8px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
  body {
    padding: 0;
  }

  .booking-grid {
    grid-template-columns: 1fr;
  }

  .booking-sidebar {
    display: none;
    /* Hide sidebar on mobile */
  }

  .booking-content {
    padding: 20px;
  }

  .dgca-hero {
    padding: 20px;
  }

  .dgca-header-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }

  .dgca-logos {
    justify-content: center;
  }

  .dgca-info-badge {
    display: none;
  }

  .pilot-type-selector {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr !important;
  }

  .booking-summary-card {
    padding: 20px;
  }

  .summary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

/* Real-time field validation styles */
.form-group.field-valid .form-control {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-group.field-invalid .form-control {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-group.field-valid .form-control:focus {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-group.field-invalid .form-control:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.field-error {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #dc3545;
  animation: fadeInError 0.3s ease-in-out;
}

@keyframes fadeInError {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Validation icons */
.form-group.field-valid::after {
  content: "\f00c";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #28a745;
  font-size: 14px;
  pointer-events: none;
}

.form-group.field-invalid::after {
  content: "\f00d";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #dc3545;
  font-size: 14px;
  pointer-events: none;
}

/* Adjust form control padding for icons */
.form-group.field-valid .form-control,
.form-group.field-invalid .form-control {
  padding-right: 35px;
}

/* Select field adjustments */
.form-group.field-valid select.form-control,
.form-group.field-invalid select.form-control {
  background-image:
    linear-gradient(45deg, transparent 50%, #28a745 50%),
    linear-gradient(135deg, #28a745 50%, transparent 50%),
    linear-gradient(to right, #ccc, #ccc);
  background-position:
    calc(100% - 20px) calc(1em + 2px),
    calc(100% - 15px) calc(1em + 2px),
    calc(100% - 2.5em) 0.5em;
  background-size:
    5px 5px,
    5px 5px,
    1px 1.5em;
  background-repeat: no-repeat;
}

.form-group.field-invalid select.form-control {
  background-image:
    linear-gradient(45deg, transparent 50%, #dc3545 50%),
    linear-gradient(135deg, #dc3545 50%, transparent 50%),
    linear-gradient(to right, #ccc, #ccc);
}

/* Calendar Styles */
.calendar-container {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-header h4 {
  color: #334155;
  font-weight: 600;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.calendar-day-header {
  text-align: center;
  font-weight: 600;
  color: #64748b;
  padding: 10px 0;
  font-size: 14px;
}

.calendar-days {
  display: contents;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
  min-height: 40px;
}

.calendar-day:hover:not(.disabled):not(.selected) {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calendar-day.disabled {
  cursor: not-allowed;
  opacity: 0.4;
}

.calendar-day.available {
  background-color: #d1fae5;
  color: #065f46;
  border: 2px solid #10b981;
}

.calendar-day.available:hover {
  background-color: #a7f3d0;
  border-color: #059669;
}

.calendar-day.blocked {
  background-color: #fee2e2;
  color: #991b1b;
  border: 2px solid #ef4444;
}

.calendar-day.selected {
  background-color: #fef3c7;
  color: #92400e;
  border: 2px solid #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

.calendar-day.weekend {
  background-color: #fee2e2;
  color: #991b1b;
  border: 2px solid #ef4444;
}

.calendar-day.today {
  font-weight: bold;
  border: 2px solid #3b82f6;
}

.calendar-day.today.available {
  border: 2px solid #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.calendar-day.today.selected {
  border: 2px solid #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.3);
}

/* Calendar Legend */
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 15px;
  background: #f8fafc;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #475569;
}

.legend-color {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  border: 1px solid #cbd5e1;
}

.legend-color.available {
  background-color: #10b981;
}

.legend-color.blocked {
  background-color: #ef4444;
}

.legend-color.selected {
  background-color: #f59e0b;
}

.legend-color.weekend {
  background-color: #e2e8f0;
}

/* Selected Date Display */
.selected-date-display {
  animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Calendar Adjustments */
@media (max-width: 768px) {
  .calendar-container {
    padding: 15px;
  }

  .calendar-legend {
    gap: 15px;
  }

  .calendar-day {
    min-height: 35px;
    font-size: 14px;
  }

  .calendar-day-header {
    font-size: 12px;
    padding: 8px 0;
  }
}

/* OTP Input Placeholder Fix */
.otp-input-field {
  letter-spacing: 8px;
}

.otp-input-field::placeholder {
  letter-spacing: normal;
  font-family: 'Signika', sans-serif;
  color: #94a3b8;
}