/* ==========================================
   GSWP PUBLIC STYLES - Frontend
   ========================================== */

/* CSS Variables for Brand Colors */
:root {
    --gswp-brand-gold: #EB9425;
    --gswp-brand-blue: #0078C5;
    --gswp-brand-navy: #1a3a52;
    --gswp-bg-offwhite: #f5f5f0;
    --gswp-pass-gold-1: #c5a253;
    --gswp-pass-gold-2: #d4af37;
    --gswp-pass-gold-3: #e8d48f;
    --gswp-pass-split: 60%;
    --gswp-pass-padding: 15px 20px;
    --gswp-pass-radius: 4px;
}

/* Overlay Background */
.gswp-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto; /* Make scrollable */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.gswp-overlay.gswp-visible {
    display: flex;
    opacity: 1;
}

/* Prevent body scroll when overlay is visible */
body.gswp-no-scroll {
    overflow: hidden;
}

.gswp-overlay-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gswp-bg-offwhite);
}

/* Passport Container */
.gswp-passport-container {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Passport Design */
.gswp-passport {
    width: 350px;
    height: 500px;
    background: linear-gradient(135deg, var(--gswp-brand-navy) 0%, #2d4d6b 50%, var(--gswp-brand-navy) 100%);
    border-radius: var(--gswp-pass-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 40px 30px;
    margin: 0 auto 30px;
    position: relative;
}

.gswp-passport-top {
    font-family: 'Great Vibes', 'Brush Script MT', cursive;
    font-size: 56px;
    color: var(--gswp-brand-gold);
    text-shadow: 0 1px 4px rgba(235, 148, 37, 0.4);
    margin-bottom: 10px;
}

.gswp-passport-title {
    font-family: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--gswp-brand-gold);
    letter-spacing: 8px;
    text-shadow: 0 1px 4px rgba(235, 148, 37, 0.4);
    margin-bottom: 40px;
}

.gswp-passport-monogram {
    margin: 60px auto;
}

.gswp-monogram-circle {
    width: 180px;
    height: 180px;
    border: 4px solid var(--gswp-brand-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 72px;
    color: var(--gswp-brand-gold);
    font-weight: 600;
    box-shadow: 0 0 15px rgba(235, 148, 37, 0.3);
}

.gswp-passport-location {
    font-family: 'Cormorant Garamond', 'Garamond', 'Times New Roman', serif;
    font-size: 28px;
    color: var(--gswp-brand-gold);
    text-shadow: 0 1px 4px rgba(235, 148, 37, 0.3);
    margin-top: 40px;
}

/* Check-in Form */
.gswp-checkin-form {
    max-width: 400px;
    margin: 0 auto;
}

.gswp-checkbox-group {
    margin-bottom: 20px;
}

.gswp-checkbox-group label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    color: #333;
    cursor: pointer;
}

.gswp-checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

#gswp-name-input {
    width: 100%;
    padding: 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

#gswp-name-input:focus {
    outline: none;
    border-color: #d4af37;
}

#gswp-name-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.gswp-submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    background: var(--gswp-brand-gold);
    color: #000;
    border: none;
    border-radius: var(--gswp-pass-radius);
    cursor: pointer;
    transition: all 0.3s;
}

.gswp-submit-btn:hover:not(:disabled) {
    background: #d58820;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(235, 148, 37, 0.4);
}

.gswp-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Error Message */
.gswp-error-message {
    margin-top: 15px;
    padding: 12px;
    background: #ff4444;
    color: white;
    border-radius: 4px;
    display: none;
}

.gswp-error-message.show {
    display: block;
}

/* Loading Animation */
.gswp-loading {
    text-align: center;
    margin-top: 20px;
}

.gswp-airplane {
    font-size: 48px;
    display: inline-block;
    animation: fly 2s ease-in-out infinite;
}

@keyframes fly {
    0%, 100% {
        transform: translateX(-20px) translateY(0px) rotate(-5deg);
    }
    50% {
        transform: translateX(20px) translateY(-10px) rotate(5deg);
    }
}

/* Multiple Names Modal */
.gswp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gswp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.gswp-modal-content {
    position: relative;
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.gswp-modal-content h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 24px;
}

.gswp-modal-content p {
    margin-bottom: 20px;
    color: #666;
}

#gswp-multiple-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.gswp-option-btn {
    padding: 15px;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.gswp-option-btn:hover {
    background: var(--gswp-brand-gold);
    border-color: var(--gswp-brand-gold);
    color: #000;
}

.gswp-option-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.gswp-option-distinction {
    font-size: 14px;
    color: #666;
}

/* Boarding Pass Display */
.gswp-boarding-pass-display {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000001;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto; /* Make scrollable */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    padding: 20px 0; /* Add padding for mobile */
}

.gswp-boarding-pass-display.gswp-visible {
    display: flex;
    opacity: 1;
}

.gswp-boarding-pass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.gswp-boarding-pass-wrapper {
    position: relative;
    z-index: 2;
    animation: passEntrance 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes passEntrance {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ============================================
   DEFAULT: HIDE MOBILE BOARDING PASS
   Only show on mobile via media query
   ============================================ */
.gswp-boarding-pass-mobile {
    display: none !important; /* Hidden by default */
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Boarding Pass - Horizontal Layout */
.gswp-boarding-pass {
    width: 700px;
    height: auto;
    min-height: 240px;
    display: flex;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    border-radius: var(--gswp-pass-radius);
    overflow: hidden;
    background: #fff;
}

/* Gold Left Side - 60% */
.gswp-pass-left {
    width: 420px;
    background: linear-gradient(135deg, var(--gswp-pass-gold-1) 0%, var(--gswp-pass-gold-2) 25%, var(--gswp-pass-gold-3) 50%, var(--gswp-pass-gold-2) 75%, var(--gswp-pass-gold-1) 100%);
    padding: 18px 20px;
    color: #000;
    display: flex;
    flex-direction: column;
}

.gswp-pass-header {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.gswp-pass-route {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.gswp-pass-from, .gswp-pass-to {
    flex: 1;
    overflow: visible;
    min-width: 0; /* Allow flex items to shrink below content size */
}

.gswp-pass-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 3px;
    opacity: 0.8;
}

.gswp-pass-location, .gswp-pass-destination {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.gswp-pass-plane {
    font-size: 24px;
    font-weight: 700;
}

.gswp-pass-dates {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}

.gswp-pass-date-col {
    flex: 1;
}

.gswp-pass-date {
    font-size: 14px;
    font-weight: 700;
    margin-top: 3px;
}

.gswp-pass-time {
    font-size: 14px;
    font-weight: 700;
    margin-top: 2px;
}

.gswp-pass-info {
    margin-top: auto;
    padding-top: 10px;
}

.gswp-pass-info-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.gswp-pass-info-col {
    flex: 1;
    min-width: 0;
}

.gswp-pass-value {
    font-size: 14px;
    font-weight: 700;
    margin-top: 3px;
}

/* White Right Side - 40% */
.gswp-pass-right {
    width: 280px;
    background: #fff;
    padding: 18px 15px;
    color: #000;
    border-left: 2px dashed var(--gswp-pass-gold-1);
    display: flex;
    flex-direction: column;
}

.gswp-pass-header-small {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.gswp-pass-route-small {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.gswp-pass-route-small > div {
    flex: 1;
}

.gswp-pass-label-small {
    font-size: 8px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.gswp-pass-value-small {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.gswp-pass-dates-small {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.gswp-pass-date-small {
    font-size: 12px;
    font-weight: 700;
}

.gswp-pass-time-small {
    font-size: 12px;
    font-weight: 700;
}

.gswp-pass-passenger-small {
    margin-bottom: 8px;
}

.gswp-pass-flight-small {
    margin-bottom: 8px;
}

.gswp-pass-seat-gate {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.gswp-pass-barcode {
    text-align: center;
    margin-top: auto;
    padding-top: 10px;
}

/* SVG Barcode - proper rendering */
.gswp-barcode-svg {
    width: 100%;
    max-width: 250px;
    height: 40px;
    margin: 0 auto;
    display: block;
}

/* Fallback text barcode */
.gswp-barcode-lines {
    font-size: 30px;
    font-family: 'Libre Barcode 128', monospace;
    letter-spacing: 0;
    line-height: 1;
    color: #000;
}

/* Floating Pass Widget */
.gswp-floating-pass {
    position: fixed;
    z-index: 999998;
    cursor: pointer;
    transition: all 0.3s;
    pointer-events: auto; /* Ensure it's clickable */
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1); /* iOS tap feedback */
    touch-action: manipulation; /* Better touch response */
}

.gswp-position-top-left {
    top: 20px;
    left: 20px;
}

.gswp-position-top-right {
    top: 20px;
    right: 20px;
}

.gswp-position-bottom-left {
    bottom: 20px;
    left: 20px;
}

.gswp-position-bottom-right {
    bottom: 20px;
    right: 20px;
}

.gswp-floating-badge {
    background: linear-gradient(135deg, rgba(235, 148, 37, 0.96), rgba(235, 148, 37, 1));
    color: #000;
    padding: 10px 18px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(235, 148, 37, 0.4);
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gswp-floating-monogram {
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
}

.gswp-floating-pass:hover .gswp-floating-badge {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(235, 148, 37, 0.5);
}

/* Close and Decline buttons */
.gswp-pass-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1;
    color: #333;
    transition: all 0.2s;
}

.gswp-pass-close-btn:hover {
    background: #f5f5f5;
    transform: scale(1.1);
}

.gswp-pass-decline-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.2s;
}

.gswp-pass-decline-btn:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

/* Modal close button */
.gswp-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.2s;
}

.gswp-modal-close:hover {
    color: #333;
}

/* Responsive Design - Mobile */
@media (min-width: 769px) {
    /* Show desktop boarding pass, hide mobile version */
    .gswp-boarding-pass {
        display: flex !important;
        width: 700px;
        flex-direction: row;
    }
    
    /* CRITICAL: Aggressively hide mobile boarding pass on desktop */
    .gswp-boarding-pass-mobile {
        display: none !important;
        visibility: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
        opacity: 0 !important;
        pointer-events: none !important;
        max-height: 0 !important;
        overflow: hidden !important;
    }
    
    .gswp-pass-left {
        width: 420px;
        display: flex !important;
    }
    
    .gswp-pass-right {
        width: 280px;
        display: flex !important;
        border-left: 2px dashed var(--gswp-pass-gold-1);
        border-top: none;
    }
}

@media (max-width: 768px) {
    /* Passport Check-in Styles */
    .gswp-passport {
        width: 90%;
        max-width: 350px;
        height: auto;
        aspect-ratio: 7/10;
        padding: 30px 20px;
    }
    
    .gswp-passport-top {
        font-size: 42px;
    }
    
    .gswp-passport-title {
        font-size: 24px;
        letter-spacing: 6px;
    }
    
    .gswp-monogram-circle {
        width: 140px;
        height: 140px;
        font-size: 56px;
    }
    
    .gswp-passport-location {
        font-size: 22px;
    }
    
    /* Make passport container scrollable */
    .gswp-passport-container {
        max-height: 100vh;
        overflow-y: auto;
        padding: 20px 0;
    }
    
    /* ============================================
       MOBILE BOARDING PASS - MODERN DESIGN
       Hide desktop version, show mobile version
       ============================================ */
    
    /* Hide desktop boarding pass on mobile */
    .gswp-boarding-pass {
        display: none !important;
        visibility: hidden !important;
        position: absolute !important;
        left: -9999px !important;
        max-height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Show mobile boarding pass - override all default hiding */
    .gswp-boarding-pass-mobile {
        display: block !important; /* Show on mobile, override default hidden */
        visibility: visible !important;
        position: relative !important;
        left: auto !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        max-height: none !important;
        overflow: visible !important;
        width: 95%;
        max-width: 400px;
        margin: 20px auto;
        background: #fff;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }
    
    /* Header Tab - Gold accent to match desktop pass */
    .gswp-mobile-header {
        background: linear-gradient(135deg, var(--gswp-pass-gold-1) 0%, var(--gswp-pass-gold-2) 25%, var(--gswp-pass-gold-3) 50%, var(--gswp-pass-gold-2) 75%, var(--gswp-pass-gold-1) 100%);
        padding: 15px 20px;
        color: #000000;
    }
    
    .gswp-mobile-title {
        font-size: 18px;
        font-weight: 700;
        text-align: center;
        letter-spacing: 0.5px;
    }
    
    /* Route Section */
    .gswp-mobile-route {
        padding: 25px 20px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .gswp-mobile-from,
    .gswp-mobile-to {
        flex: 1;
        text-align: center;
    }
    
    .gswp-mobile-label {
        font-size: 11px;
        font-weight: 600;
        color: #6b7280;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 6px;
    }
    
    .gswp-mobile-location,
    .gswp-mobile-destination {
        font-size: 16px;
        font-weight: 700;
        color: #111827;
        line-height: 1.3;
    }
    
    .gswp-mobile-arrow {
        font-size: 24px;
        color: #3b82f6;
        flex-shrink: 0;
    }
    
    /* Date Section */
    .gswp-mobile-date {
        padding: 20px;
        text-align: center;
        background: #f9fafb;
        border-bottom: 1px solid #e5e7eb;
    }
    
    #gswp-mobile-date-display {
        font-size: 20px;
        font-weight: 700;
        color: #111827;
    }
    
    /* Times Section */
    .gswp-mobile-times {
        padding: 25px 20px;
        display: flex;
        gap: 0;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .gswp-mobile-time-block {
        flex: 1;
        text-align: center;
    }
    
    .gswp-mobile-time-label {
        font-size: 11px;
        font-weight: 600;
        color: #6b7280;
        text-transform: uppercase;
        margin-bottom: 8px;
        letter-spacing: 0.5px;
    }
    
    .gswp-mobile-time-value {
        font-size: 28px;
        font-weight: 700;
        color: #111827;
    }
    
    .gswp-mobile-divider {
        width: 1px;
        background: #e5e7eb;
        margin: 0 20px;
    }
    
    /* Guest Info */
    .gswp-mobile-guest {
        padding: 20px;
        border-bottom: 1px solid #e5e7eb;
    }
    
    .gswp-mobile-passenger {
        text-align: center;
    }
    
    .gswp-mobile-passenger-name {
        font-size: 20px;
        font-weight: 700;
        color: #111827;
        margin-top: 6px;
    }
    
    /* Barcode */
    .gswp-mobile-barcode {
        padding: 25px 20px 20px;
        text-align: center;
    }
    
    .gswp-mobile-barcode-svg {
        width: 200px;
        height: 50px;
        margin: 0 auto;
        display: block;
    }
    
    .gswp-mobile-barcode-number {
        font-size: 14px;
        font-weight: 600;
        color: #6b7280;
        margin-top: 10px;
        letter-spacing: 2px;
    }
    
    /* Adjust gold side layout for mobile */
    .gswp-pass-route {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .gswp-pass-from, .gswp-pass-to {
        width: 100%;
        overflow: hidden; /* Prevent text overflow */
    }
    
    /* Fix destination text overflow on mobile */
    .gswp-pass-location, .gswp-pass-destination {
        font-size: 10px !important; /* Smaller text on mobile */
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
        display: block;
        padding-right: 5px; /* Extra padding to prevent edge cutoff */
    }
    
    .gswp-pass-plane {
        transform: rotate(90deg);
        font-size: 20px;
        align-self: center;
        margin: 5px 0;
    }
    
    .gswp-pass-dates {
        flex-direction: column;
        gap: 10px;
        margin: 15px 0;
    }
    
    .gswp-pass-date-col {
        width: 100%;
    }
    
    /* Adjust date/time text size on mobile */
    .gswp-pass-date {
        font-size: 13px !important;
    }
    
    .gswp-pass-time {
        font-size: 13px !important;
    }
    
    .gswp-pass-label {
        font-size: 8px !important;
    }
    
    .gswp-pass-info-row {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .gswp-pass-info-col {
        flex: 0 0 calc(50% - 5px);
    }
    
    /* Adjust passenger info text on mobile */
    .gswp-pass-value {
        font-size: 12px !important;
        word-wrap: break-word;
    }
    
    /* White section adjustments for mobile */
    .gswp-pass-route-small {
        flex-direction: column;
        gap: 10px;
    }
    
    /* Fix white section destination text overflow on mobile */
    .gswp-pass-value-small {
        font-size: 11px !important; /* Smaller on mobile */
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .gswp-pass-dates-small {
        flex-direction: column;
        gap: 8px;
        margin: 12px 0;
    }
    
    .gswp-pass-seat-gate {
        flex-direction: row;
        justify-content: space-between;
        margin-top: 12px;
    }
    
    .gswp-pass-barcode {
        margin-top: 15px;
    }
    
    /* Floating Badge - BIGGER for mobile touch */
    .gswp-floating-pass {
        bottom: 15px;
        right: 15px;
        left: auto;
        top: auto;
        z-index: 999999; /* Higher z-index on mobile */
        touch-action: manipulation; /* Faster touch response */
    }
    
    .gswp-floating-badge {
        padding: 14px 20px; /* Bigger touch target */
        font-size: 15px;
        min-width: 180px;
        min-height: 48px; /* 48px minimum for accessibility */
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer; /* Show it's interactive */
        -webkit-user-select: none; /* Prevent text selection on long press */
        user-select: none;
    }
    
    .gswp-floating-monogram {
        font-size: 18px;
    }
    
    /* Adjust button positions for mobile */
    .gswp-pass-close-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
        top: 10px;
        right: 10px;
        /* Bigger touch target */
    }
    
    .gswp-pass-decline-btn {
        bottom: 15px;
        right: 15px;
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px; /* Accessibility */
    }
}

/* ============================================
   LANDSCAPE MODE ON MOBILE
   Keep sections side-by-side if enough width
   ============================================ */
@media (max-width: 768px) and (orientation: landscape) {
    .gswp-boarding-pass {
        flex-direction: row; /* Side-by-side in landscape */
        max-width: 90%;
        max-height: 85vh;
    }
    
    .gswp-pass-left {
        width: 60%;
        border-radius: 12px 0 0 12px;
    }
    
    .gswp-pass-right {
        width: 40%;
        border-radius: 0 12px 12px 0;
        border-top: none;
        border-left: 2px dashed #ddd;
    }
    
    /* Make content scrollable in landscape if needed */
    .gswp-pass-left,
    .gswp-pass-right {
        overflow-y: auto;
    }
}

@media (max-width: 480px) {
    /* Check-in form adjustments */
    .gswp-checkin-form {
        padding: 0 15px;
    }
    
    .gswp-modal-content {
        padding: 20px;
        width: 90%;
    }
    
    /* Boarding pass on small phones */
    .gswp-boarding-pass {
        width: 98%;
        max-width: 100%;
    }
    
    .gswp-pass-left,
    .gswp-pass-right {
        padding: 15px 12px;
    }
    
    /* Smaller text on tiny screens */
    .gswp-pass-header {
        font-size: 13px;
        letter-spacing: 2px;
    }
    
    .gswp-pass-location, 
    .gswp-pass-destination,
    .gswp-pass-destination-small,
    .gswp-pass-value-small {
        font-size: 9px; /* Reduced for mobile to prevent cutoff */
        line-height: 1.3;
    }
    
    .gswp-pass-date, 
    .gswp-pass-time,
    .gswp-pass-date-small,
    .gswp-pass-time-small {
        font-size: 11px;
    }
    
    .gswp-pass-value {
        font-size: 11px;
    }
    
    .gswp-pass-label,
    .gswp-pass-label-small {
        font-size: 9px;
    }
    
    /* Floating badge - still big enough to tap */
    .gswp-floating-badge {
        padding: 12px 16px;
        font-size: 14px;
        min-width: 160px;
    }
    
    /* Buttons stay tappable */
    .gswp-pass-close-btn {
        width: 44px;
        height: 44px;
        font-size: 24px;
    }
    
    .gswp-pass-decline-btn {
        padding: 10px 16px;
        font-size: 13px;
        min-height: 44px;
    }
}

/* ==========================================
   SMALL MOBILE DEVICES (iPhone 12 Mini, SE, etc.)
   Optimizations for 320px-400px screens
   ========================================== */
@media (max-width: 400px) {
    /* Mobile Boarding Pass - Compact Layout */
    .gswp-boarding-pass-mobile {
        width: 98% !important;
        max-width: 100% !important;
        margin: 15px auto !important;
        border-radius: 12px;
    }
    
    /* Tighter header padding */
    .gswp-mobile-header {
        padding: 12px 15px;
    }
    
    .gswp-mobile-title {
        font-size: 16px;
    }
    
    /* Compact route section */
    .gswp-mobile-route {
        padding: 18px 15px;
        gap: 10px;
    }
    
    .gswp-mobile-label {
        font-size: 10px;
        margin-bottom: 4px;
    }
    
    .gswp-mobile-location,
    .gswp-mobile-destination {
        font-size: 14px;
        line-height: 1.25;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .gswp-mobile-arrow {
        font-size: 20px;
        margin: 0 5px;
    }
    
    /* Compact date section */
    .gswp-mobile-date {
        padding: 15px;
    }
    
    #gswp-mobile-date-display {
        font-size: 18px;
    }
    
    /* Smaller times for small screens */
    .gswp-mobile-times {
        padding: 20px 15px;
    }
    
    .gswp-mobile-time-label {
        font-size: 10px;
        margin-bottom: 6px;
    }
    
    .gswp-mobile-time-value {
        font-size: 24px; /* Reduced from 28px */
        line-height: 1.2;
    }
    
    .gswp-mobile-divider {
        margin: 0 15px;
    }
    
    /* Compact guest info */
    .gswp-mobile-guest {
        padding: 15px;
    }
    
    .gswp-mobile-passenger-name {
        font-size: 18px;
        line-height: 1.3;
    }
    
    /* Compact barcode section */
    .gswp-mobile-barcode {
        padding: 20px 15px 15px;
    }
    
    .gswp-mobile-barcode-svg {
        width: 180px;
        height: 45px;
    }
    
    .gswp-mobile-barcode-number {
        font-size: 12px;
        margin-top: 8px;
    }
}

/* ==========================================
   v12.5 ENHANCEMENTS - Country Select & Alignment
   ========================================== */

/* Country selector styling */
#gswp-country-select {
    width: 100%;
    padding: 15px 20px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 600;
    color: #1a3a52;
    background: white;
    border: 2px solid #d4af37;
    border-radius: 8px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#gswp-country-select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

#gswp-country-select:not(:disabled):hover,
#gswp-country-select:focus {
    border-color: #EB9425;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    outline: none;
}

/* Enhanced route alignment */
.gswp-pass-route {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 15px;
}

.gswp-pass-from, .gswp-pass-to {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.gswp-pass-to {
    align-items: flex-end;
    text-align: right;
}

.gswp-pass-plane {
    flex-shrink: 0;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enhanced dates alignment */
.gswp-pass-dates {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
    align-items: flex-start;
}

.gswp-pass-date-col {
    flex: 1;
}

.gswp-pass-date-col .gswp-pass-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 4px;
    opacity: 0.8;
}

.gswp-pass-date-col .gswp-pass-date {
    font-size: 14px;
    font-weight: 700;
    margin-top: 3px;
    line-height: 1.2;
}

.gswp-pass-date-col .gswp-pass-time {
    font-size: 14px;
    font-weight: 700;
    margin-top: 2px;
    line-height: 1.2;
}
