/* ================================================================== */
/* Flights page (wraps includes/flight-booking-form.php)               */
/* Colors mirror tailwind.config.js (ink / cream / gold / sun / lagoon)*/
/* ================================================================== */

.fl-container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .fl-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .fl-container { padding: 0 2rem; } }

.fl-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #d95f02;
}
.fl-eyebrow-sun { color: #ffb703; }
.fl-h2 { margin: 0.6rem 0 0; font-size: 2rem; line-height: 1.15; color: #0b1f33; }
@media (min-width: 640px) { .fl-h2 { font-size: 2.6rem; } }
.fl-section-head { text-align: center; max-width: 44rem; margin: 0 auto 3.25rem; }
.fl-section-head p { margin: 0.8rem 0 0; line-height: 1.65; color: #64748b; }

.fl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.55rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.fl-btn svg { width: 1.1rem; height: 1.1rem; }
.fl-btn-primary { border: 0; color: #fff; background: #f47c0b; box-shadow: 0 12px 28px -10px rgba(244, 124, 11, 0.8); }
.fl-btn-primary:hover { background: #d95f02; }
.fl-btn-wa { color: #fff; background: rgba(37, 211, 102, 0.12); border: 1px solid rgba(37, 211, 102, 0.6); }
.fl-btn-wa svg { color: #25d366; }
.fl-btn-wa:hover { background: #25d366; border-color: #25d366; }
.fl-btn-wa:hover svg { color: #fff; }
.fl-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

/* ---------- Hero ---------- */
.fl-hero {
  position: relative;
  z-index: 2;
  color: #fff;
  /* no bottom padding: the booking form's negative margin lets it overhang into the next section */
  padding: 4.5rem 0 0;
  background: #071827;
}
.fl-hero-media { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.fl-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transform: scale(1.06);
  animation: fl-kenburns 26s ease-in-out infinite alternate;
}
@keyframes fl-kenburns { to { transform: scale(1.16) translate(-2%, 1%); } }
.fl-hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(15, 118, 110, 0.35), transparent 55%),
    linear-gradient(180deg, rgba(7, 24, 39, 0.75) 0%, rgba(7, 24, 39, 0.88) 55%, #071827 100%);
}
.fl-flightpath { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
@media (max-width: 767px) { .fl-flightpath { display: none; } }

.fl-hero-copy { position: relative; z-index: 1; max-width: 50rem; text-align: center; }
.fl-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffb703;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 183, 3, 0.3);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
}
.fl-chip svg { width: 1rem; height: 1rem; transform: rotate(45deg); }
.fl-hero-title { margin: 1.3rem auto 1rem; font-size: 2.5rem; line-height: 1.08; }
@media (min-width: 640px) { .fl-hero-title { font-size: 3.4rem; } }
@media (min-width: 1280px) { .fl-hero-title { font-size: 4rem; } }
.fl-hero-title span {
  background: linear-gradient(90deg, #ffd166, #ffb703, #f47c0b, #ffb703, #ffd166);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  animation: fl-shimmer 6s linear infinite;
}
@keyframes fl-shimmer { to { background-position: -200% 0; } }
.fl-hero-sub { margin: 0 auto; max-width: 36rem; font-size: 1.05rem; line-height: 1.7; color: rgba(255, 255, 255, 0.75); }
.fl-trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.5rem; margin: 1.6rem 0 2.75rem; padding: 0; }
.fl-trust li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.86rem; font-weight: 600; color: rgba(255, 255, 255, 0.82); }
.fl-trust span {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: #0f766e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.65rem no-repeat;
}

.fl-form-slot { position: relative; z-index: 2; }
/* brief glow when a popular route fills the form */
.fl-flash { animation: fl-flash 1.4s ease-out; }
@keyframes fl-flash {
  0% { box-shadow: 0 0 0 0 rgba(244, 124, 11, 0.7); }
  100% { box-shadow: 0 0 0 22px rgba(244, 124, 11, 0); }
}

/* ---------- Benefits ---------- */
.fl-benefits-wrap { padding-top: 7rem; padding-bottom: 4.5rem; }
@media (min-width: 640px) { .fl-benefits-wrap { padding-top: 8.5rem; } }
.fl-benefits { display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .fl-benefits { grid-template-columns: repeat(3, 1fr); } }
.fl-benefit {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.5rem;
  border-radius: 1.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s, border-color 0.3s;
}
.fl-benefit::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #f47c0b, #ffb703, #0f766e);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.fl-benefit:hover { transform: translateY(-5px); border-color: transparent; box-shadow: 0 28px 50px -26px rgba(11, 31, 51, 0.45); }
.fl-benefit:hover::after { transform: scaleX(1); }
.fl-benefit-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #ff9433, #d95f02);
  box-shadow: 0 12px 24px -10px rgba(217, 95, 2, 0.7);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.fl-benefit:nth-child(2) .fl-benefit-icon { background: linear-gradient(135deg, #14a394, #0b5e58); box-shadow: 0 12px 24px -10px rgba(15, 118, 110, 0.7); }
.fl-benefit:nth-child(3) .fl-benefit-icon { background: linear-gradient(135deg, #23466b, #0b1f33); box-shadow: 0 12px 24px -10px rgba(11, 31, 51, 0.7); }
.fl-benefit:hover .fl-benefit-icon { transform: rotate(-8deg) scale(1.06); }
.fl-benefit-icon svg { width: 1.4rem; height: 1.4rem; }
.fl-benefit h3 { margin: 0.15rem 0 0.3rem; font-size: 1.05rem; font-weight: 700; color: #0b1f33; }
.fl-benefit p { margin: 0; font-size: 0.88rem; line-height: 1.6; color: #64748b; }

/* ---------- Popular routes ---------- */
.fl-routes {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0;
  color: #fff;
  background:
    radial-gradient(circle at 0% 0%, rgba(15, 118, 110, 0.4), transparent 45%),
    radial-gradient(circle at 100% 100%, rgba(244, 124, 11, 0.28), transparent 45%),
    linear-gradient(160deg, #0b1f33, #071827);
}
.fl-routes .fl-container { position: relative; z-index: 1; }
.fl-routes .fl-h2 { color: #fff; }
.fl-routes .fl-section-head p { color: rgba(255, 255, 255, 0.7); }
.fl-route-grid { display: grid; gap: 1.25rem; }
@media (min-width: 700px) { .fl-route-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .fl-route-grid { grid-template-columns: repeat(3, 1fr); } }

/* Each route is a mini boarding pass */
.fl-route {
  position: relative;
  padding: 1.25rem 1.35rem 1.2rem;
  border-radius: 1.35rem;
  color: #0b1f33;
  background: #fff;
  box-shadow: 0 24px 44px -24px rgba(0, 0, 0, 0.65);
  -webkit-mask: radial-gradient(circle at 0 62%, transparent 0.7rem, #000 calc(0.7rem + 0.5px)) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 62%, transparent 0.7rem, #000 calc(0.7rem + 0.5px)) right / 51% 100% no-repeat;
          mask: radial-gradient(circle at 0 62%, transparent 0.7rem, #000 calc(0.7rem + 0.5px)) left / 51% 100% no-repeat,
                radial-gradient(circle at 100% 62%, transparent 0.7rem, #000 calc(0.7rem + 0.5px)) right / 51% 100% no-repeat;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.fl-route:hover { transform: translateY(-6px); }
.fl-route-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.fl-route-tag {
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b04c02;
  background: #fff3e0;
}
.fl-route-tag.is-umrah { color: #0b5e58; background: #ecf8f6; }
.fl-route-weekly { font-size: 0.74rem; font-weight: 600; color: #64748b; }

.fl-route-pair { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.9rem; padding: 1.1rem 0 1.15rem; }
.fl-route-city strong { display: block; font-size: 2rem; line-height: 1; letter-spacing: 0.02em; color: #0b1f33; }
.fl-route-city span { display: block; margin-top: 0.25rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #64748b; }
.fl-route-city.is-to { text-align: right; }
.fl-route-city.is-to strong { color: #f47c0b; }
.fl-route-path { position: relative; height: 1.5rem; min-width: 3rem; }
.fl-route-line { position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed #cbd5e1; }
.fl-route-path svg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.15rem;
  color: #f47c0b;
  background: #fff;
  transform: translate(-50%, -50%) rotate(90deg);
  transition: left 0.9s cubic-bezier(0.65, 0, 0.35, 1);
}
.fl-route:hover .fl-route-path svg { left: 82%; }

.fl-route-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-top: 0.95rem;
  border-top: 2px dashed #e2e8f0;
}
.fl-airlines { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.fl-airlines span {
  padding: 0.22rem 0.55rem;
  border-radius: 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #0b1f33;
  background: #f2f4f6;
  border: 1px solid #e2e8f0;
}
.fl-airlines span.is-muted { font-weight: 600; color: #64748b; background: transparent; border-style: dashed; }
.fl-route-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.95rem;
  border: 0;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  background: #0b1f33;
  cursor: pointer;
  transition: background-color 0.25s;
}
.fl-route-btn svg { width: 0.95rem; height: 0.95rem; transition: transform 0.25s; }
.fl-route:hover .fl-route-btn { background: #f47c0b; }
.fl-route-btn:hover svg { transform: translateX(3px); }
.fl-routes-note { margin: 2rem auto 0; max-width: 40rem; text-align: center; font-size: 0.8rem; line-height: 1.6; color: rgba(255, 255, 255, 0.55); }

/* ---------- How it works ---------- */
.fl-how { padding-top: 5.5rem; padding-bottom: 4rem; }
.fl-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; counter-reset: fl; }
@media (min-width: 900px) { .fl-steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.fl-step {
  position: relative;
  padding: 1.75rem 1.6rem;
  border-radius: 1.5rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s, border-color 0.3s;
}
.fl-step:hover { transform: translateY(-5px); border-color: transparent; box-shadow: 0 28px 50px -26px rgba(11, 31, 51, 0.45); }
@media (min-width: 900px) {
  .fl-step:not(:last-child)::after {
    /* connector arrow to the next step */
    content: "";
    position: absolute;
    right: -1.15rem;
    top: 2.75rem;
    z-index: 1;
    width: 0.8rem;
    height: 0.8rem;
    border-top: 2px solid #f47c0b;
    border-right: 2px solid #f47c0b;
    transform: rotate(45deg);
  }
}
.fl-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 1rem;
  color: #d95f02;
  background: #fff3e0;
  transition: background-color 0.35s, color 0.35s, transform 0.35s;
}
.fl-step:hover .fl-step-icon { color: #fff; background: #f47c0b; transform: rotate(-8deg); }
.fl-step-icon svg { width: 1.45rem; height: 1.45rem; }
.fl-step-num { display: block; margin-top: 1.1rem; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #0f766e; }
.fl-step h3 { margin: 0.3rem 0 0.35rem; font-size: 1.1rem; font-weight: 700; color: #0b1f33; }
.fl-step p { margin: 0; font-size: 0.9rem; line-height: 1.6; color: #64748b; }

/* ---------- CTA ---------- */
.fl-cta {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 6.5rem;
  color: #fff;
  text-align: center;
  background: linear-gradient(160deg, #0b1f33, #071827);
}
.fl-orb {
  position: absolute;
  left: 50%;
  top: -12rem;
  width: 24rem;
  height: 24rem;
  margin-left: -12rem;
  border-radius: 50%;
  background: #f47c0b;
  opacity: 0.25;
  filter: blur(70px);
  pointer-events: none;
}
.fl-cta-inner { position: relative; z-index: 1; max-width: 44rem; }
.fl-cta h2 { margin: 0.6rem 0 0.8rem; font-size: 2.2rem; line-height: 1.15; }
@media (min-width: 640px) { .fl-cta h2 { font-size: 3rem; } }
.fl-cta p { margin: 0 auto; max-width: 34rem; line-height: 1.7; color: rgba(255, 255, 255, 0.72); }
.fl-cta .fl-actions { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .fl-hero-bg, .fl-hero-title span { animation: none; }
  .fl-route-path svg { transition: none; }
}
