/* ============================================
   LOST & FOUND PAGE STYLES
   Based on the Contact/FAQ design template
   ============================================ */

/* Font Faces - Reuse from invitation */
@font-face {
    font-family: 'ASM';
    src: url('../../invitation/font/ASM-Regular.woff2') format('woff2'),
         url('../../invitation/font/ASM-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'ASM';
    src: url('../../invitation/font/ASM-Bold.woff2') format('woff2'),
         url('../../invitation/font/ASM-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* CSS Variables */
:root {
    --color-primary: #F3AB0E;
    --color-primary-soft: rgba(243, 171, 14, 0.12);
    --color-bg: #0a0a0a;
    --color-text: #ffffff;
    --color-text-muted: rgba(255,255,255,0.6);
    --color-error: #ff6b6b;
    --card-bg: rgba(18, 18, 18, 0.55);
    --card-border: rgba(255, 255, 255, 0.1);
    --transition: all 0.3s ease;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'ASM', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--color-bg);
    color: var(--color-text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============================================
   VIDEO BACKGROUND
   ============================================ */
.video-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 110%, rgba(243, 171, 14, 0.08) 0%, transparent 55%),
        linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.72) 45%, rgba(0,0,0,0.85) 100%);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.video-bg video::-webkit-media-controls,
.video-bg video::-webkit-media-controls-panel,
.video-bg video::-webkit-media-controls-play-button,
.video-bg video::-webkit-media-controls-start-playback-button,
.video-bg video::-webkit-media-controls-enclosure,
.video-bg video::-webkit-media-controls-overlay-play-button,
.video-bg video::-webkit-media-controls-overlay-enclosure {
    display: none !important;
    -webkit-appearance: none;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: relative;
    z-index: 1000;
}

.nav-link {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary) !important;
}

.dropdown-menu-dark {
    background: rgba(0,0,0,0.95);
    border: 1px solid rgba(255,255,255,0.1);
}

.dropdown-item:hover {
    background: var(--color-primary);
    color: #000;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.98);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 30px;
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-nav {
    text-align: center;
}

.mobile-menu-section {
    margin-bottom: 24px;
}

.mobile-menu-label {
    display: block;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--color-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    opacity: 0.9;
}

.mobile-menu-link {
    display: block;
    width: 100%;
    text-align: center;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.mobile-menu-link:hover,
.mobile-menu-link.active {
    background: rgba(255,255,255,0.08);
    color: var(--color-primary);
}

.mobile-menu-divider {
    width: 60px;
    height: 1px;
    background: rgba(255,255,255,0.2);
    margin: 24px auto;
}

.mobile-menu-btn {
    display: inline-block;
    margin-top: 24px;
    padding: 12px 32px;
    background: var(--color-primary);
    color: #000;
    font-weight: 700;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
    background: #fff;
    transform: translateY(-2px);
}

/* ============================================
   SCROLLING LOGO BANNER
   ============================================ */
.logo-band {
    background: rgba(0,0,0,0.95);
    padding: 12px 0;
    overflow: hidden;
    position: relative;
    z-index: 100;
    transition: all 0.3s ease;
    /* fade the strip out at both edges */
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.logo-band.sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.logo-band-placeholder {
    display: none;
}

.logo-band-placeholder.active {
    display: block;
}

.logo-marquee {
    display: flex;
    align-items: center;
    gap: clamp(24px, 4vw, 40px);
    animation: marquee 30s linear infinite;
    width: max-content;
}

.logo-marquee img {
    height: clamp(18px, 2.5vw, 24px);
    width: auto;
    opacity: 0.8;
}

.banner-text {
    font-size: clamp(10px, 1.2vw, 12px);
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-primary);
    white-space: nowrap;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   LOST & FOUND SECTION
   ============================================ */
.lf-section {
    position: relative;
    z-index: 10;
    padding: clamp(32px, 6vh, 60px) 0 clamp(48px, 8vh, 80px);
    min-height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lf-title {
    font-family: 'ASM', sans-serif;
    font-weight: 700;
    text-align: center;
    color: var(--color-primary);
    text-transform: uppercase;
    text-shadow: 0 2px 40px rgba(243, 171, 14, 0.25);
}

.lf-subtitle {
    font-size: clamp(11px, 1.4vw, 14px);
    font-weight: 600;
    letter-spacing: clamp(1.5px, 0.4vw, 3px);
    text-align: center;
    color: var(--color-text-muted);
    margin: 0 auto clamp(28px, 5vh, 48px);
    padding: 0 24px;
    max-width: 60ch;
    text-transform: uppercase;
    text-wrap: balance;
    animation: fadeInUp 0.6s ease backwards;
}

/* ============================================
   FORM
   ============================================ */
.lf-form-wrap {
    max-width: 620px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 20px);
    width: 100%;
    animation: fadeInUp 0.6s var(--ease-out) backwards;
    animation-delay: 0.1s;
}

.lf-form {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: clamp(22px, 4vw, 32px);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.lf-field {
    margin-bottom: 22px;
}

.lf-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--color-text);
    margin-bottom: 10px;
}

.lf-req {
    color: var(--color-primary);
}

.lf-optional {
    color: var(--color-text-muted);
    font-weight: 600;
    letter-spacing: 1px;
}

.lf-field input,
.lf-field textarea {
    width: 100%;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    padding: 14px 16px;
    color: var(--color-text);
    font-family: inherit;
    font-size: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lf-field textarea {
    resize: vertical;
    min-height: 110px;
}

.lf-field input::placeholder,
.lf-field textarea::placeholder {
    color: rgba(255,255,255,0.35);
}

.lf-field input:focus,
.lf-field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(0,0,0,0.6);
    box-shadow: 0 0 0 3px rgba(243, 171, 14, 0.15);
}

/* Date picker indicator visible on dark bg */
.lf-field input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.7;
    cursor: pointer;
}

/* File input */
.lf-field input[type="file"] {
    padding: 12px 16px;
    cursor: pointer;
}

.lf-field input[type="file"]::file-selector-button {
    background: var(--color-primary);
    color: #000;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    margin-right: 14px;
    font-family: inherit;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lf-field input[type="file"]::file-selector-button:hover {
    background: #fff;
}

.lf-hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--color-text-muted);
}

/* Field-level errors */
.lf-field-error {
    display: none;
    margin-top: 8px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: var(--color-error);
}

.lf-field.has-error input,
.lf-field.has-error textarea {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12);
}

.lf-field.has-error .lf-field-error {
    display: block;
}

/* Top-level error banner */
.lf-error-banner {
    background: rgba(255, 107, 107, 0.12);
    border: 1px solid rgba(255, 107, 107, 0.4);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 22px;
    color: #ffd0d0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Honeypot - visually hidden but present in the DOM */
.lf-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Submit button */
.lf-submit {
    width: 100%;
    margin-top: 6px;
    padding: 16px 24px;
    background: var(--color-primary);
    color: #000;
    border: none;
    border-radius: 30px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.lf-submit:hover:not(:disabled) {
    background: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(243, 171, 14, 0.25);
}

.lf-submit:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.lf-submit:active:not(:disabled) {
    transform: translateY(0) scale(0.99);
}

.lf-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.lf-submit-spinner i {
    display: inline-block;
    animation: lfspin 0.9s linear infinite;
}

@keyframes lfspin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   SUCCESS PANEL
   ============================================ */
.lf-success {
    background: rgba(243, 171, 14, 0.08);
    border: 1px solid rgba(243, 171, 14, 0.35);
    border-radius: 16px;
    padding: clamp(28px, 5vw, 40px) clamp(20px, 4vw, 32px);
    text-align: center;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    animation: fadeInUp 0.5s ease;
}

.lf-success-icon {
    font-size: 48px;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 18px;
}

.lf-success-text {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    letter-spacing: 0.2px;
}

/* ============================================
   TITLE POSITION (CENTER IN HEADER)
   Desktop only; below 992px the title flows
   in-page so it never collides with the logo.
   ============================================ */
@media (min-width: 992px) {
    body.title-center .lf-title {
        position: fixed;
        top: 38px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 1001;
        font-size: 20px;
        margin: 0;
        letter-spacing: 3px;
        white-space: nowrap;
        line-height: 1;
    }

    body.title-center .lf-subtitle {
        margin-top: 80px;
    }

    body.title-center .lf-section {
        padding-top: 40px;
    }
}

@media (max-width: 991.98px) {
    body.title-center .lf-title {
        position: static;
        font-size: clamp(24px, 7vw, 40px);
        letter-spacing: clamp(3px, 1.2vw, 6px);
        margin: clamp(8px, 3vh, 24px) 0 10px;
        line-height: 1.1;
    }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: rgba(0,0,0,0.9);
    padding: 20px clamp(16px, 4vw, 24px);
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    text-align: center;
    position: relative;
    z-index: 10;
}

.footer-content p {
    margin: 0;
    font-size: clamp(10px, 1.3vw, 13px);
    line-height: 1.8;
    color: var(--color-text-muted);
}

.footer-content a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.footer-content a:hover {
    color: #fff;
}

/* ============================================
   RESPONSIVE
   ============================================ */
/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .lf-form-wrap,
    .lf-subtitle,
    .lf-success {
        animation: none;
    }

    .logo-marquee {
        animation-duration: 90s;
    }
}
