@font-face {
    font-family: 'Paralucent';
    src: url('/assets/pilot/fonts/Paralucent/Paralucent-Light-d4cfe006d3a5cbd695617ccafcb73ed7.woff2') format('woff2'),
         url('/assets/pilot/fonts/Paralucent/Paralucent-Light-7f11b5261fbfacafe655e9b7fa0a1540.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Paralucent';
    src: url('/assets/pilot/fonts/Paralucent/Paralucent-LightItalic-0f2b947b22a134c5ef30f9b3ac13acd1.woff2') format('woff2'),
         url('/assets/pilot/fonts/Paralucent/Paralucent-LightItalic-1107593ef14773e487314836299ed083.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Paralucent';
    src: url('/assets/pilot/fonts/Paralucent/Paralucent-Medium-1cdc92a78169537d7c26bd0a54c1e8d1.woff2') format('woff2'),
         url('/assets/pilot/fonts/Paralucent/Paralucent-Medium-39bc0cb86eb274fba016d6a4e17e4bc2.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'InterSemiBold';
    src: url('/assets/pilot/fonts/Inter_18pt-SemiBold-e5532d993e2de30fa92422df0a8849dd.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

/* Arial-Buffered — metric-compatible fallback used on av.html */
@font-face {
    font-family: "Arial-Buffered";
    src: local("Arial");
    size-adjust: 94.8%;
    ascent-override: 100%;
}

body.pilot-page {
    margin: 0;
    padding: 0;
    background-color: #F0EAE0;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    font-family: 'Paralucent', 'IBM Plex Sans', sans-serif;
    font-weight: 400;
}

.pilot-header {
    margin-top: 50px;
    margin-bottom: 80px;
    text-align: left;
    max-width: 1000px;
    width: 90%;
}

.logo-image {
    max-width: 300px;
    height: auto;
}

.pilot-index-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1000px;
    width: 90%;
    gap: 40px;
}

.content-left {
    flex: 1;
}

.content-left h2 {
    margin-top: 0;
}

.buttons-right {
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 55px;
}

.pilot-nav-btn {
    background-color: #3d1a2a;
    color: white;
    padding: 25px 30px;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 4px;
    font-size: 1.5rem;
    font-weight: 700;
    transition: background-color 0.2s;
}

.pilot-nav-btn:visited {
    color: white;
}

.pilot-nav-btn:hover,
.pilot-nav-btn:visited:hover {
    background-color: #522439;
    color: white;
}

.arrow {
    background-color: white;
    color: #3d1a2a;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.arrow .icon-svg {
    width: 24px;
    height: 24px;
    fill: #3d1a2a;
    margin-left: 4px;
}

ol li::marker {
    font-weight: 700;
}

ol li strong {
    font-weight: 700;
}

.small-text {
    font-size: 1.3rem;
}

.success-body,
.success-body * {
    color: white !important;
}

.success-body {
    background: #203E5D;
}

.success-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 80vh;
}

.success-form {
    text-align: left;
    margin-top: 20px;
}

.success-button {
    background-color: transparent;
    border: 2px solid white;
    padding: 5px;
}

.av-body {
    background: #3F1A2B;
}

.av-main-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
}

.av-main-title {
    text-align: center;
    color: white;
}

.av-main-form {
    text-align: center;
    margin-top: 20px;
}

.av-main-button {
    color: white;
    background-color: transparent;
    border: 2px solid white;
    padding: 12px;
}

h1 {
    font-family: 'IBM Plex Sans', 'Arial-Buffered', sans-serif;
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: white;
    border: none;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.2s ease;
    z-index: 100;
}

.back-button:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.back-button .icon-svg {
    width: 35px;
    height: 35px;
    padding-right: 5px;
}

body.pid-page {
    background-image: url('/assets/pilot/pid-background-7a182be1c796c2fa49dadd44fbe82ccb.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.find-button {
    background-color: rgba(255, 255, 255, 0.75);
    color: black;
    padding: 10px 20px;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: black;
    border-radius: 100px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.find-button:hover {
    background-color: rgba(255, 255, 255);
    box-shadow: 10px 10px;
}

/* ---------------------------------------------------------------------------
   qr-popup.html
   --------------------------------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out 0.3s forwards;
}

.popup-wrapper {
    width: clamp(300px, calc(100vw - 32px), 375px);
    height: 630px;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    padding: 10px;
    position: relative;
    opacity: 0;
    animation: slideUp 0.4s ease-out 0.4s forwards;
}

.qr-close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background-color: #F7F7F7;
    border: none;
    padding: 0 0 2px 0;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s, color 0.2s;
}

.qr-close-button:hover {
    background-color: #e4eaeb;
    color: #333;
}

.popup-logo {
    max-width: 69px;
    margin-bottom: 15px;
}

.popup-text-container {
    text-align: center;
    margin-bottom: 20px;
    font-family: 'IBM Plex Sans', sans-serif;
}

.popup-title {
    font-family: 'InterSemiBold', 'IBM Plex Sans', sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.popup-subtitle {
    font-size: 12px;
    color: #666;
}

.popup-content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: clamp(20px, 4vw, 36px);
}

.qr-code-image-wrapper {
    position: relative;
    display: inline-block;
}

.qr-code-image {
    width: clamp(180px, calc(100vw - 112px), 300px);
    object-fit: contain;
    border: 8px solid #F2F5F9;
    border-radius: 16px;
}

.qr-center-icon-pilot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    border: 4px solid #ffffff;
    border-radius: 7px;
    background-color: #ffffff;
}

.qr-code-subtext {
    background-color: #F2F5F9;
    border-radius: 38px;
    padding: 4px 12px;
    margin-top: 10px;
    font-size: 10px;
    color: #666;
    width: fit-content;
    text-align: center;
}

.popup-button {
    background-color: #000000;
    color: #ffffff;
    border: none;
    border-radius: 38px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    text-align: center;
    transition: background-color 0.2s;
}

.popup-button:hover {
    background-color: #333333;
}

.popup-button-white {
    background-color: #ffffff;
    color: #000000;
    border: solid 1px #000000;
}

.popup-button-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.popup-button-logo-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.popup-footer-separator {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 63px;
    border-top: 1px solid #F2F5F9;
}

#popup-footer {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
    height: 40px;
    display: flex;
    align-items: center;
    color: #666;
    font-size: 12px;
}

.popup-footer-right {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.popup-footer-right a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #666;
    text-decoration: none;
    font-size: 12px;
}

.popup-footer-right a:hover {
    text-decoration: underline;
}

.popup-error {
    margin: 20px;
    font-family: 'InterSemiBold', 'IBM Plex Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #586B7D;
}

.popup-error-description {
    margin: 20px;
    font-family: 'InterSemiBold', 'IBM Plex Sans', sans-serif;
    font-size: 12px;
    font-weight: 400;
    color: #586B7D;
    text-align: center;
}

.popup-error-container {
    width: clamp(180px, calc(100vw - 112px), 300px);
    height: clamp(180px, calc(100vh - 112px), 300px);
    object-fit: contain;
    background-color: #F2F5F9;
    border-radius: 16px;
}


@media (min-width: 768px) {
    .popup-content-container {
        margin-bottom: 46px;
    }
}

@media (max-width: 768px) {
    .pilot-index-container {
        flex-direction: column;
        align-items: center;
    }

    .buttons-right {
        flex: none;
        width: 100%;
        margin-top: 0;
    }

    h1 {
        font-size: 2rem;
    }

    .pilot-header {
        margin-top: 30px;
        margin-bottom: 40px;
    }

    .find-button {
        margin-top: 80px;
        padding: 15px 30px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .find-button {
        margin-top: 50px;
        padding: 12px 24px;
        font-size: 18px;
        letter-spacing: 0.5px;
    }
}

@media (orientation: landscape) and (max-height: 620px) {
    .popup-wrapper {
        height: auto;
        max-height: 92vh;
        justify-content: flex-start;
        padding-top: 44px;
        overflow-y: auto;
    }

    .popup-text-container {
        margin-bottom: 12px;
    }

    .popup-content-container {
        margin-bottom: 16px;
    }

    .qr-code-image {
        width: clamp(150px, 28vh, 220px);
    }

    .popup-footer-separator {
        position: static;
        width: 100%;
        margin-top: 8px;
    }

    #popup-footer {
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
        width: 100%;
        height: auto;
        min-height: 40px;
        margin-top: 6px;
    }
}

