/**
 * ARK Travelers – Flight booking: hero, airplane window, form, popular routes, why book, trust
 * Replicates front-page / home.css logic: no top gap, hero fills viewport from top.
 */

/* ========== Fly page: same as front page – no gap, hero flush to top ========== */

/* No gap below hero – main/content add no bottom space on fly page (mirror .front-page .ark-main) */
.page-fly .ark-main,
.page-fly .ark-main-fly,
body.page-fly .ark-main {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Force zero gaps between sections on fly page (mirror .front-page .ark-main section) */
.page-fly .ark-main section,
.page-fly .ark-main-fly section,
body.page-fly .ark-main section {
    margin-top: 0;
    margin-bottom: 0;
}

/* Hero section flush – no margin/padding (mirror .front-page .ark-main section.airplane-scroll) */
.page-fly .ark-main section.ark-fly-hero-banner,
.page-fly .ark-main-fly section.ark-fly-hero-banner,
body.page-fly .ark-main section.ark-fly-hero-banner {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Remove any spacing from hero section wrapper (mirror section.airplane-scroll in home.css) */
section.ark-fly-hero-banner {
    display: block;
    margin: 0 !important;
    padding: 0 !important;
}

/* ========== Airplane window section: dark background, masked video, scroll room for animation ========== */
.ark-fly-window {
    background: #0c0f12;
    min-height: 120vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2xl) var(--space-md);
    position: relative;
}

.ark-fly-window-inner {
    width: 100%;
    max-width: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Window frame: visible “porthole” with subtle border; will get turbulence float via GSAP */
.ark-fly-window-frame {
    position: relative;
    width: 100%;
    max-width: 560px;
    aspect-ratio: 4 / 3;
}

/* Mask: airplane window shape (oval/rounded porthole); clips the video */
.ark-fly-window-mask {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3), inset 0 0 60px rgba(0, 0, 0, 0.2);
}

/* Wrapper we transform for pan + zoom (GPU-friendly: transform only) */
.ark-fly-window-video-wrap {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    will-change: transform;
}

.ark-fly-window-video {
    position: absolute;
    inset: -10%;
    width: 120%;
    height: 120%;
    object-fit: cover;
    display: block;
}

/* Responsive: smaller window on narrow viewports */
@media (max-width: 768px) {
    .ark-fly-window {
        min-height: 100vh;
        padding: var(--space-xl) var(--space-sm);
    }
    .ark-fly-window-frame {
        max-width: 100%;
    }
}

/* Fly page hero & form – mobile */
@media (max-width: 768px) {
    .ark-fly-hero-banner {
        height: auto;
        min-height: 100svh;
        min-height: 100dvh;
        overflow: visible;
        padding-top: calc(var(--header-height, 80px) + var(--space-sm));
        padding-bottom: var(--space-lg);
    }
    .ark-fly-hero-form-wrap {
        margin-top: 0;
        align-items: flex-start;
    }
    .ark-fly-form-row {
        grid-template-columns: 1fr;
    }
    .ark-fly-form-row.ark-fly-contact {
        grid-template-columns: 1fr;
    }
    .ark-fly-hero-form-wrap .ark-fly-form,
    .ark-fly-hero-form.ark-fly-form {
        padding: var(--space-md) var(--space-sm);
    }
    .ark-fly-form-actions .btn-primary {
        max-width: 100%;
        width: 100%;
    }
    .ark-fly-cta-section {
        padding: var(--space-xl) var(--space-sm);
    }
}

/* Reduced motion: disable scroll-driven animation room and keep layout stable */
@media (prefers-reduced-motion: reduce) {
    .ark-fly-window {
        min-height: auto;
        padding: var(--space-2xl) var(--space-md);
    }
    .ark-fly-window-video-wrap {
        will-change: auto;
    }
}

/* ========== Fly Page Hero Banner with Parallax (mirror home .ark-hero) ========== */
.ark-fly-hero-banner {
    position: relative;
    height: 100vh;
    height: 100dvh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
    margin: 0;
    overflow: auto;
    background: transparent;
    z-index: 1;
    box-sizing: border-box;
}


/* Parallax Background (mirror home .ark-hero-parallax: position absolute, inset 0) */
.ark-fly-hero-parallax {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: transparent;
}

.ark-fly-hero-parallax .ark-parallax-layer {
    position: absolute;
    inset: -20%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform-origin: center center;
}

.ark-fly-hero-parallax .ark-parallax-speed-slow {
    background-image: url('https://images.unsplash.com/photo-1506929562872-bb421503ef21?w=1920&h=1600&fit=crop');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.9;
}

/* Hero Content Overlay */
/* Form box centered in hero – below navbar, shorter height, soft shadow + hover */
.ark-fly-hero-form-wrap {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: min(1100px, 92vw);
    margin: 0 auto;
    margin-top: var(--header-height);
    padding: var(--space-md);
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ark-fly-hero-form-wrap .ark-fly-form,
.ark-fly-hero-form.ark-fly-form {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    background: var(--color-white);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

/* Shorter form: tighter spacing inside hero form only */
.ark-fly-hero-form-wrap .ark-fly-trip-type {
    margin-bottom: var(--space-sm);
}
.ark-fly-hero-form-wrap .ark-fly-form-row {
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
}
.ark-fly-hero-form-wrap .ark-fly-form-actions {
    margin-top: var(--space-sm);
}
.ark-fly-hero-form-wrap .ark-fly-field input,
.ark-fly-hero-form-wrap .ark-fly-field select {
    padding: var(--space-xs) var(--space-sm);
}
.ark-fly-hero-form-wrap .ark-fly-field label {
    margin-bottom: 2px;
}

.ark-fly-hero-form-wrap:hover .ark-fly-form,
.ark-fly-hero-form-wrap .ark-fly-form:hover,
.ark-fly-hero-form.ark-fly-form:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.16), 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Flight form (standalone / in hero) base */
.ark-fly-form {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-lg);
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

/* CTA section (replaces form section): heading + CTA */
.ark-fly-search.ark-fly-cta-section {
    position: relative;
    z-index: 2;
    padding: var(--space-2xl) var(--space-md);
    background: var(--color-bg-primary);
    margin-top: 0;
}

.ark-fly-cta-inner {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.ark-fly-cta-heading {
    font-size: clamp(1.35rem, 2.5vw, 1.75rem);
    font-weight: 600;
    color: var(--color-charcoal);
    margin: 0 0 var(--space-sm);
    letter-spacing: -0.02em;
}

.ark-fly-cta-text {
    color: var(--color-text-secondary);
    font-size: 1rem;
    margin: 0 0 var(--space-lg);
    line-height: 1.6;
}

.ark-fly-cta-btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.ark-fly-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 144, 164, 0.25);
}

.ark-fly-trip-type {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.ark-radio {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    cursor: pointer;
    font-size: 0.95rem;
}

.ark-fly-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

/* Contact row: name + email in two columns */
.ark-fly-form-row.ark-fly-contact {
    grid-template-columns: 1fr;
}

/* Phone: country code inside the same field as the number (single combined input) */
.ark-fly-phone-inline {
    display: flex;
    align-items: stretch;
    min-width: 0;
    gap: 0;
    position: relative;
}

.ark-fly-phone-inline .ark-fly-country-code {
    width: auto;
    min-width: 100px;
    max-width: 120px;
    border-radius: 8px 0 0 8px;
    border-right: none;
    margin: 0;
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", var(--font-body), sans-serif;
}

.ark-fly-phone-inline .ark-fly-country-code option {
    font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", var(--font-body), sans-serif;
}

.ark-fly-phone-inline .ark-fly-country-code:focus {
    border-right: none;
    box-shadow: none;
}

.ark-fly-phone-inline input[type="tel"] {
    flex: 1;
    min-width: 0;
    border-radius: 0 8px 8px 0;
    border-left: 1px solid var(--color-border);
}

.ark-fly-phone-inline input[type="tel"]:focus {
    border-left-color: var(--color-accent);
}

.ark-fly-phone-field .ark-fly-phone-inline:focus-within .ark-fly-country-code {
    border-color: var(--color-accent);
    z-index: 1;
}

.ark-fly-phone-field .ark-fly-phone-inline:focus-within input[type="tel"] {
    border-color: var(--color-accent);
}

.ark-fly-phone-field .ark-fly-phone-inline:focus-within {
    box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.2);
    border-radius: 8px;
}

.ark-fly-phone-field .ark-fly-phone-inline:focus-within .ark-fly-country-code {
    border-radius: 8px 0 0 8px;
}

.ark-fly-phone-field .ark-fly-phone-inline:focus-within input[type="tel"] {
    border-radius: 0 8px 8px 0;
}

.ark-fly-country-code {
    min-width: 0;
}

.ark-fly-country-code.is-enhanced {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 1px;
    height: 1px;
    margin: 0;
}

.ark-country-select {
    position: relative;
    min-width: 100px;
    max-width: 120px;
    flex: 0 0 auto;
}

.ark-country-select-button {
    width: 100%;
    height: 100%;
    min-height: 44px;
    padding: var(--space-xs) var(--space-sm);
    border: 1px solid var(--color-border);
    border-right: none;
    border-radius: 8px 0 0 8px;
    background: var(--color-white);
    cursor: pointer;
    text-align: left;
}

.ark-country-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 190px;
    max-height: 220px;
    overflow-y: auto;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    padding: 4px;
    z-index: 20;
    display: none;
}

.ark-country-select.is-open .ark-country-options {
    display: block;
}

.ark-country-option-item {
    width: 100%;
    border: none;
    background: transparent;
    padding: 6px 8px;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
}

.ark-country-option-item:hover {
    background: rgba(74, 144, 164, 0.1);
}

.country-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.country-option img {
    width: 20px;
    height: auto;
    border-radius: 2px;
}

.ark-fly-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: var(--space-xs);
    color: var(--color-charcoal);
}

.ark-fly-field input,
.ark-fly-field select {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
}

.ark-fly-field input:focus,
.ark-fly-field select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(74, 144, 164, 0.2);
}

.ark-return-wrap.hidden {
    opacity: 0.5;
    pointer-events: none;
}

.ark-fly-form-actions {
    margin-top: var(--space-md);
}

.ark-fly-form-actions .btn-primary {
    width: 100%;
    max-width: 320px;
}

/* ========== Popular Destinations – visual cards ========== */
.ark-fly-popular {
    padding: var(--space-2xl) 0;
    background: var(--color-bg-primary);
}

.ark-fly-popular .ark-section-title {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    font-weight: 600;
    color: var(--color-charcoal);
    margin: 0 0 var(--space-xl);
    letter-spacing: -0.02em;
}

.ark-fly-routes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-lg);
}

.ark-route-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-md);
    min-height: 220px;
    text-decoration: none;
    color: var(--color-white);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background-image:
        linear-gradient(180deg, rgba(10, 14, 20, 0.15) 0%, rgba(10, 14, 20, 0.78) 85%),
        var(--route-bg);
    background-size: cover;
    background-position: center;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base), filter var(--transition-base);
}

.ark-route-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
    border-color: rgba(174, 209, 226, 0.7);
    filter: saturate(1.08);
}

.ark-route-city {
    display: block;
    margin-top: auto;
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--color-white);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.ark-route-country {
    display: block;
    margin-top: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ========== Why Book With Us – improved section UI ========== */
/* ========== Why Book With Us – modern bento-style section ========== */
.ark-fly-why {
    padding: var(--space-2xl) 0;
    background: linear-gradient(180deg, #f0f4f8 0%, var(--color-bg-primary) 100%);
    position: relative;
    overflow: hidden;
}

.ark-fly-why::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.6;
}

.ark-fly-why-inner {
    position: relative;
    z-index: 1;
}

.ark-fly-why-eyebrow {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-accent);
    margin: 0 0 var(--space-sm);
}

.ark-fly-why-title {
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: var(--color-charcoal);
    margin: 0 0 var(--space-xl);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

/* Bento-style benefits grid */
.ark-fly-benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: minmax(140px, auto);
    gap: var(--space-md);
    max-width: 1000px;
    margin: 0 auto var(--space-xl);
}

.ark-fly-benefit-card {
    background: var(--color-white);
    border-radius: 16px;
    padding: var(--space-lg);
    border: 1px solid rgba(74, 144, 164, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
    position: relative;
    overflow: hidden;
}

.ark-fly-benefit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-accent);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.ark-fly-benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-color: rgba(74, 144, 164, 0.25);
}

.ark-fly-benefit-card:hover::before {
    opacity: 1;
}

.ark-fly-benefit-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(74, 144, 164, 0.1);
    color: var(--color-accent);
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
    font-weight: 700;
}

.ark-fly-benefit-card[data-icon="price"] .ark-fly-benefit-icon::before { content: '¢'; }
.ark-fly-benefit-card[data-icon="calendar"] .ark-fly-benefit-icon::before { content: '◷'; font-size: 1.1rem; }
.ark-fly-benefit-card[data-icon="support"] .ark-fly-benefit-icon::before { content: '✓'; font-size: 1.1rem; }
.ark-fly-benefit-card[data-icon="shield"] .ark-fly-benefit-icon::before { content: '◆'; font-size: 1rem; }
.ark-fly-benefit-card[data-icon="partners"] .ark-fly-benefit-icon::before { content: '\27A4'; font-size: 1rem; }

.ark-fly-benefit-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-charcoal);
    margin: 0 0 var(--space-xs);
    letter-spacing: -0.01em;
}

.ark-fly-benefit-desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin: 0;
    line-height: 1.5;
}

.ark-fly-benefit-card-featured {
    background: linear-gradient(135deg, rgba(74, 144, 164, 0.06) 0%, var(--color-white) 100%);
    border-color: rgba(74, 144, 164, 0.2);
}

.ark-fly-benefit-card-wide {
    grid-column: 1 / -1;
}

/* Trust strip inside Why section */
.ark-fly-why-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.ark-fly-why-trust .ark-trust-badge {
    padding: var(--space-sm) var(--space-lg);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-charcoal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.ark-fly-why-trust .ark-trust-badge:hover {
    border-color: var(--color-accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    transform: scale(1.02);
}

/* Legacy: keep .ark-fly-benefits for any other use (empty now) */
.ark-fly-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Extra spacing above footer on Fly page */
body.page-fly .ark-fly-why {
    padding-bottom: var(--space-2xl);
}

body.page-fly .ark-footer,
body.page-fly #colophon.ark-footer {
    padding-top: var(--space-2xl);
    margin-top: var(--space-2xl);
}

@media (max-width: 768px) {
    .ark-fly-popular,
    .ark-fly-why {
        padding: var(--space-xl) 0;
    }
    .ark-fly-popular .ark-section-title,
    .ark-fly-why-title {
        margin-bottom: var(--space-lg);
    }
    .ark-fly-routes-grid {
        gap: var(--space-md);
    }
    .ark-route-card {
        padding: var(--space-md);
    }
    .ark-fly-benefits-grid {
        grid-template-columns: 1fr;
        gap: var(--space-sm);
        margin-bottom: var(--space-lg);
    }
    .ark-fly-benefit-card-wide {
        grid-column: 1;
    }
    .ark-fly-benefit-card {
        padding: var(--space-md);
    }
    body.page-fly .ark-footer,
    body.page-fly #colophon.ark-footer {
        padding-top: var(--space-xl);
        margin-top: var(--space-xl);
    }
}

.ark-fly-results {
    display: none;
}

.ark-fly-results.is-visible {
    display: block;
}

.ark-fly-result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    margin-bottom: var(--space-sm);
    background: var(--color-white);
}

.ark-fly-result-route {
    font-weight: 500;
}

.ark-fly-result-meta {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.ark-fly-result-price {
    font-weight: 600;
    color: var(--color-accent);
}

.ark-fly-no-results {
    text-align: center;
    color: var(--color-text-secondary);
    padding: var(--space-xl);
}

/* ========== Airplane Scroll Section (Canvas-based) ========== */
/* Fly page uses normal scroll behavior (parallax hero) */

/* ---------- AirplaneScroll: one viewport; scroll bar does not move until all frames are covered ---------- */
.airplane-scroll {
    position: relative;
    height: 100vh;
    min-height: 100vh;
    background: #14171A;
    overflow: hidden;
    contain: layout style paint;
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.airplane-scroll-sticky {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform;
    contain: layout style paint;
}

.airplane-scroll-canvas {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    will-change: contents;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.airplane-scroll-overlays {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: opacity;
    contain: layout style;
}

.airplane-scroll-overlays .airplane-scroll-cta-btn {
    pointer-events: auto;
}

/* Black transparent overlay: fades in just before the form */
.airplane-scroll-dark-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: rgba(0, 0, 0, 0.55);
    pointer-events: none;
}

/* Ticket form on final frame: centered, shorter and wider */
.airplane-scroll-form-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    padding: var(--space-md, 24px);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

.airplane-scroll-form-inner {
    width: 100%;
    max-width: min(96vw, 1280px);
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.airplane-scroll-form-overlay .fly-form-box {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
    padding: var(--space-sm, 16px) var(--space-md, 24px);
    width: 100%;
    max-width: min(96vw, 1200px);
}

.airplane-scroll-form-overlay .ark-fly-form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-xs, 8px) var(--space-sm, 16px);
}

.airplane-scroll-form-overlay .ark-fly-trip-type {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm, 16px);
    margin-bottom: var(--space-xs, 8px);
}

.airplane-scroll-form-overlay .ark-fly-form-actions {
    margin-top: var(--space-xs, 8px);
}

@media (max-width: 768px) {
    .airplane-scroll-form-overlay {
        padding: var(--space-sm, 16px);
    }
    .airplane-scroll-form-overlay .fly-form-box {
        padding: var(--space-xs, 12px) var(--space-sm, 16px);
    }
    .airplane-scroll-form-overlay .ark-fly-form-row {
        grid-template-columns: 1fr;
    }
}

.airplane-scroll-copy {
    position: absolute;
    padding: var(--space-md, 24px);
    max-width: 90vw;
    text-align: center;
    text-shadow: 0 0 32px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.4));
    will-change: opacity;
}

.airplane-scroll-copy-0 {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.airplane-scroll-copy-30 {
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    text-align: left;
    max-width: 320px;
}

.airplane-scroll-copy-60 {
    right: 10%;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    text-align: right;
    max-width: 320px;
}

.airplane-scroll-copy-90 {
    left: 50%;
    bottom: 22%;
    top: auto;
    transform: translateX(-50%);
    text-align: center;
}

/* Hero CTA overlay on last frames */
.airplane-scroll-hero-cta {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100%;
    max-width: 900px;
    padding: var(--space-lg, 40px) var(--space-xl, 64px);
    z-index: 10;
    pointer-events: auto;
}

.airplane-hero-cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md, 24px);
}

.airplane-hero-cta-content .airplane-hero-cta-text {
    font-family: var(--font-body, 'Inter'), system-ui, sans-serif;
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 var(--space-lg, 32px);
    order: 1;
}

.airplane-hero-eyebrow {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    font-weight: 500;
}

.airplane-hero-title {
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.25;
    color: var(--color-white);
    margin: 0;
    text-shadow: 0 0 32px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.5);
    filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.4));
}

.airplane-hero-highlight {
    color: #aed1e2;
    font-weight: 400;
}

.airplane-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.7;
    max-width: 700px;
    text-shadow: 0 0 24px rgba(0, 0, 0, 0.6), 0 2px 6px rgba(0, 0, 0, 0.4);
}

.airplane-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md, 24px);
    justify-content: center;
    margin-top: 0;
    position: relative;
    z-index: 2;
    order: 2;
}

.btn-airplane-primary {
    display: inline-block;
    padding: var(--space-sm, 16px) var(--space-lg, 40px);
    background-color: #468a99;
    color: var(--color-white);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    will-change: transform;
    position: relative;
    z-index: 1;
}

.btn-airplane-primary:hover {
    background-color: #3a6f7f;
    color: var(--color-white);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.btn-airplane-primary:active {
    transform: translateY(-1px) scale(1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
    background-color: #35606d;
}

.btn-airplane-outline {
    display: inline-block;
    padding: var(--space-sm, 16px) var(--space-lg, 40px);
    background-color: transparent;
    color: var(--color-white);
    font-weight: 500;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
    cursor: pointer;
    box-shadow: 0 0 0 transparent;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.btn-airplane-outline:hover {
    background-color: rgba(255, 255, 255, 0.95);
    color: #2C3E50;
    border-color: var(--color-white);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.btn-airplane-outline:active {
    transform: translateY(-1px) scale(1);
    background-color: rgba(255, 255, 255, 0.9);
    color: #2C3E50;
}

@media (max-width: 768px) {
    .airplane-scroll-hero-cta {
        padding: var(--space-md, 24px) var(--space-lg, 40px);
    }
    .airplane-hero-title {
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    .airplane-hero-subtitle {
        font-size: 1rem;
    }
    .airplane-hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    .btn-airplane-primary,
    .btn-airplane-outline {
        width: 100%;
        max-width: 320px;
    }
    /* Homepage mobile: keep Umrah button readable by default (same as hover style) */
    .home .btn-airplane-outline,
    .front-page .btn-airplane-outline {
        background-color: rgba(255, 255, 255, 0.95);
        color: #2C3E50;
        border-color: var(--color-white);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

.airplane-scroll-title {
    font-family: var(--font-heading, 'Inter'), system-ui, sans-serif;
    font-size: clamp(1.5rem, 4vw + 1rem, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.airplane-scroll-body {
    font-family: var(--font-body, 'Inter'), system-ui, sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    letter-spacing: 0.01em;
}

.airplane-scroll-cta-text {
    font-family: var(--font-body, 'Inter'), system-ui, sans-serif;
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1rem;
}

.airplane-scroll-cta-btn {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #050505;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.airplane-scroll-cta-btn:hover {
    background: #fff;
    transform: scale(1.02);
}

/* Loading state */
.airplane-scroll-spinner-wrap {
    flex-direction: column;
    gap: 1rem;
}

.airplane-scroll-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: airplane-spin 0.8s linear infinite;
}

.airplane-scroll-loading-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin: 0;
}

.airplane-scroll-loading-pct {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin: 0;
    font-variant-numeric: tabular-nums;
}

.airplane-scroll-progress-bar {
    width: 160px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.airplane-scroll-progress-fill {
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    width: 0;
    transition: width 0.2s ease;
}

@keyframes airplane-spin {
    to { transform: rotate(360deg); }
}

.airplane-scroll-error-inner {
    flex-direction: column;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 2rem;
    gap: 1.5rem;
}

.airplane-scroll-error-inner p {
    margin: 0;
    font-size: 1.1rem;
}

.airplane-scroll-retry-btn {
    display: inline-block;
    padding: 0.75rem 2rem;
    background-color: rgba(255, 255, 255, 0.95);
    color: #2C3E50;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.airplane-scroll-retry-btn:hover {
    background-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.airplane-scroll-retry-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
    .airplane-scroll-copy-30,
    .airplane-scroll-copy-60 {
        max-width: 280px;
    }
}

@media (max-width: 768px) {
    .airplane-scroll-copy-30,
    .airplane-scroll-copy-60 {
        max-width: 240px;
        left: 5%;
        right: 5%;
    }
    .airplane-scroll-copy-30 { text-align: left; }
    .airplane-scroll-copy-60 { text-align: right; }
    .airplane-scroll-title {
        font-size: clamp(1.25rem, 5vw, 1.75rem);
    }
}

@media (max-width: 320px) {
    .airplane-scroll-copy {
        padding: 16px;
    }
    .airplane-scroll-copy-30,
    .airplane-scroll-copy-60 {
        max-width: 200px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .airplane-scroll {
        height: 100vh !important;
        min-height: 100vh !important;
    }
    .airplane-scroll-sticky {
        position: relative;
        height: 100vh;
    }
}

/* ──────────────────────────────────────────────────────────
   Mobile / tablet: portrait-frame, scroll-driven animation
   The JS adds .airplane-scroll--mobile when viewport ≤ 1024 px.
   – Container is made tall so the user scrolls through frames naturally.
   – The inner panel becomes position:sticky so the canvas stays in view.
   – No touch events are hijacked → zero scroll-lock on mobile.
   ────────────────────────────────────────────────────────── */
.airplane-scroll.airplane-scroll--mobile {
    height: 100vh !important;
    min-height: 100vh !important;
    overflow: hidden !important;
}

.airplane-scroll.airplane-scroll--mobile .airplane-scroll-sticky {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100svh !important;
    /* Keep GPU-compositing hints */
    transform: translateZ(0);
    contain: layout style paint;
}

@media (max-width: 767px) {
    .airplane-scroll.airplane-scroll--mobile {
        height: 100vh !important;
        min-height: 100vh !important;
    }
}

/* Fly page: allow tall scroll section to extend (no clip), dark background */
.ark-main.ark-main-fly {
    overflow-x: hidden !important;
    min-height: 0;
    margin: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    padding-top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
}

/* Admin bar: remove spacing on fly page when logged in */
body.page-fly.admin-bar .ark-header,
body.page-fly.admin-bar #masthead {
    top: 0 !important;
}
body.page-fly.admin-bar #wpadminbar {
    display: none !important;
}

.ark-main-fly-dark {
    background: #050505;
}

.ark-main-fly-dark .ark-section-title,
.ark-main-fly-dark .ark-fly-hero-title {
    color: rgba(255, 255, 255, 0.9);
}

.ark-main-fly-dark .ark-fly-hero-subtitle,
.ark-main-fly-dark .ark-fly-benefit-desc {
    color: rgba(255, 255, 255, 0.7);
}

/* Form section: no top gap, same dark bg so no visible seam below airplane scroll */
.fly-form-section {
    padding: var(--space-2xl, 96px) 0;
    background: #050505;
    margin-top: 0;
}

.fly-form-section .fly-form-box {
    margin: 0 auto;
}
