/* ===== GLOBAL ===== */

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  margin: 0;
  padding: 10px;
  background: linear-gradient(to bottom, #0078d4, #e8f2ff);
  color: #1a1a1a;
}


/* Main form container */
form {
  background: white;
  padding: 30px;
  max-width: 850px;
  margin: auto;
  border-radius: 5px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
  position: relative;
  z-index: 0;  
}


#flightForm {
  position: relative;
}

.form-logo {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 300px;
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;   /* pushes logo behind all form elements */
}


/* Headings */
h2 {
  font-size: 20px;
  margin-top: 15px;
  color: #045592;
}

/* ===== LABELS ===== */

.option-label,
.destination-label,
.time-label,
.return-label {
  font-weight: 600;
  font-size: 1.1em;
  margin-right: 10px;
  white-space: nowrap;
}

.header-label {
  font-size: 20px;
  font-weight: 700;
  color: #045592;
  margin-right: 10px;
}



/* ===== INPUTS & SELECTS ===== */

input[type="text"],
input[type="number"],
input[type="date"],
select {
  padding: 8px 12px;
  font-size: 16px;
  border: 2px solid #c3c5c6;
  border-radius: 6px;
  background-color: #eef5ff;
  color: #1a1a1a;
  outline: none;
}


input[type="roundtrip"],
select {
  padding: 6px 8px;
  font-size: 16px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  background-color: #95c0f8;
  color: #1a1a1a;
  outline: none;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus {
  border-color: #0078d4;
  box-shadow: 0 0 0 2px rgba(0,120,212,0.25);
}

/* Radio & checkbox color */
input[type="radio"],
input[type="checkbox"] {
  accent-color: #0078d4;
}

/* ===== BUTTON ===== */

button,
button[type="submit"] {
  background-color: #0078d4;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 17px;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 20px;
  transition: background 0.2s ease;
}

button:hover,
button[type="submit"]:hover {
  background-color: #005a9e;
}

/* ===== AUTOCOMPLETE DROPDOWN ===== */

.input-wrapper_from {
  position: relative;
  display: inline-block;
  position: absolute;
  left: 385px;
}

.input-wrapper_to {
  position: relative;
  display: inline-block;
  position: absolute;
  left: 185px;
}

.suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #ccc;
  border-top: none;
  max-height: 250px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0;
  z-index: 1000;
  border-radius: 0 0 6px 6px;
}

.suggestions li {
  padding: 10px;
  cursor: pointer;
}

.suggestions li.highlighted {
  background-color: #f0f8ff;
}

.suggestions li strong {
  color: #0078d4;
}


.hidden {
  display: none;
}

/* ===== DESTINATION & TIME OPTIONS ===== */

.destination-option,
.time-option,
.return-option {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  position: relative;
  min-height: 28px;
}

.destination-option details,
.time-option details,
.return-option details {
  flex: 1;
}

/* ===== DETAILS / SUMMARY ===== */

/* Show/Hide details buttons ===== */
details summary {
  display: inline-block;
  padding: 1px 6px;
  background-color: #e8f2ff;
  border-radius: 4px;
  cursor: pointer;
  color: #034e87;
  border: 1px solid #d0d7de;
}

/* Roll-out lists ===== */
details div {
  background-color: #f1f7ff;
  border-radius: 6px;
  padding: 5px;
  margin-top: 6px;
  border: 1px solid #d0d7de;
}

/* ===== DATE RANGE GROUPS ===== */

.date-range {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: 10px;
  position: absolute;
  left: 110px; /* adjust so it sits to the right of the label */
}

.specificdate-range {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: 10px;
  position: absolute;
  left: 140px; /* adjust so it sits to the right of the label */
}

.returnanydate-range {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: 10px;
  position: absolute;
  left: 95px;
}

.returnspecificdate-range {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-left: 10px;
  position: absolute;
  left: 135px;
  top: -8px; /* positive = move down, negative = move up */
}

/* ===== TABLES INSIDE DETAILS ===== */

details table {
  width: 100%;
  border-collapse: collapse;
}

details label {
  display: block;
  width: 100%;
  padding: 4px 0;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 650px) {
  form {
    padding: 20px;
  }
}

.to-destination {
  display: flex;
  align-items: center;
  gap: 0px;
  position: relative;
}


.to-destination > div:first-child {
  display: flex;
  align-items: center;
}

#toAirportWrapper {
  margin-left: 28px; /* aligns input with the text after the radio button */
}


.site-header {
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  padding: 8px 5px;        /* reduced from 16px 32px */
  border-radius: 0 0 10px 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  margin-bottom: 5px;      /* slightly smaller gap below */
}

.header-content {
  max-width: 850px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;                /* smaller spacing between title + tagline */
  white-space: nowrap;
  line-height: 1.0;         /* tighter vertical spacing */
}

.site-title {
  font-size: 20px;          /* reduced from 26px */
  font-weight: 700;
  color: white;
}

.site-tagline {
  font-size: 16px;          /* reduced from 14px */
  color: #e8f2ff;
  opacity: 1.0;             /* softer look */
}


.inline-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0px;
}


/* Shrink the number inputs in Redurn days */
.return-option input[type="number"] {
  padding: 4px 6px;   /* was 8px 12px */
  height: 24px;       /* forces a compact height */
}

.destination-label-return-days {
  font-weight: 600;
  font-size: 1.1em;
  margin-right: 1px;
  white-space: nowrap;
}



/* FOOTER STYLE */
.site-footer {
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  padding: 20px 5px;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.12);
  margin-top: 25px;
}

.footer-content {
  max-width: 850px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* four equal columns */  
  justify-content: space-between;
  gap: 40px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0px;
  min-height: 30px;
}

.footer-column a {
  color: #045592;
  font-size: 15px;
  text-decoration: none;
  font-weight: 600;
}

.footer-column a:hover {
  text-decoration: underline;
}


.footer-copy {
  text-align: center;
  margin-top: -5px;
  font-size: 14px;
  color: #045592;
  font-weight: 600;
  opacity: 0.9;
}


/* The following 3 blocks are for the Loading Spinner */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* --- Combined Spinner --- */

.spinner-container {
  position: relative;
  width: 80px;
  height: 80px;
}

/* Use the spinner you liked from the commented-out section */
.spinner-old {
  width: 80px;
  height: 80px;
  border: 8px solid #ccc;
  border-top-color: #007bff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Airplane overlay from your current code */
.spinner-airplane {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px; /* zoom in */ 
  height: 37px; /* preserve correct aspect ratio */
  background-image: url('IMAGES/load_icon.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transform: translate(-35%, -30%); /* ← slight horizontal nudge */
  pointer-events: none;
}



/* Rotation animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}


