@import url('https://fonts.googleapis.com/css2?family=Berkshire+Swash&family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&display=swap');

*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: #060d14;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ---- Aurora Canvas ---- */

#auroraCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

#auroraFade {
    position: fixed;
    inset: 0;
    background: linear-gradient(to bottom,
        transparent            0%,
        transparent           15%,
        rgba(6, 13, 20, 0.50) 38%,
        rgba(6, 13, 20, 0.80) 58%,
        rgba(6, 13, 20, 0.95) 75%,
        #060d14               90%
    );
    pointer-events: none;
    z-index: 1;
}

/* ---- All page content sits above the canvas ---- */

.PageContent {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    padding: 0 24px 60px;
}

/* ---- Navigation: Menu ---- */

.MenuContainer {
    position: fixed;
    top: calc(50% - 37.5vh - 37px);
    right: 28px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 12px;
    z-index: 200;
}

.MenuWrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    cursor: pointer;
}

.MenuText {
    font-family: "Google Sans", sans-serif;
    font-size: 16px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(190, 228, 251, 0.75);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.MenuLine {
    height: 1.5px;
    width: 32px;
    background: rgba(190, 228, 251, 0.35);
    transition: width 0.35s ease, background 0.3s ease;
}

.MenuWrapper:hover .MenuText {
    color: rgba(190, 228, 251, 1);
    text-shadow: 0 0 24px rgba(190, 228, 251, 0.5), 0 0 60px rgba(34, 211, 238, 0.2);
}

.MenuWrapper:hover .MenuLine {
    width: 48px;
    background: rgba(190, 228, 251, 0.75);
}

/* Dropdown expands leftward from the menu button */
.MenuDropdown {
    display: flex;
    flex-direction: row;
    gap: 0;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transition: max-width 0.35s ease, opacity 0.3s ease;
    white-space: nowrap;
}

.MenuDropdown.open {
    max-width: 400px;
    opacity: 1;
}

.MenuNavItem {
    font-family: "Google Sans", sans-serif;
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(190, 228, 251, 0.65);
    text-decoration: none;
    padding: 6px 14px;
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.MenuNavItem:hover {
    color: rgba(190, 228, 251, 1);
    text-shadow: 0 0 16px rgba(190, 228, 251, 0.45);
}

/* ---- Form Wrap: centers the panel vertically ---- */

.FormWrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 100px 0 40px;
}

/* ---- Liquid Glass Panel ---- */

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

.FormPanel {
    width: 100%;
    max-width: 560px;
    background: rgba(255, 255, 255, 0.045);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    border: 1px solid rgba(190, 228, 251, 0.12);
    border-radius: 20px;
    padding: clamp(36px, 6vw, 56px) clamp(32px, 6vw, 52px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 0 0 1px rgba(0, 0, 0, 0.25),
        0 24px 64px rgba(0, 0, 0, 0.45),
        0 0 80px rgba(34, 211, 238, 0.04);
    position: relative;
    overflow: hidden;
    animation: panelFadeUp 0.8s ease 0.15s both;
}

/* Dome sheen */
.FormPanel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        ellipse 80% 50% at 50% -10%,
        rgba(255, 255, 255, 0.07) 0%,
        transparent 70%
    );
    pointer-events: none;
}

/* ---- Form Header ---- */

.FormTitle {
    font-family: "Google Sans", sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 400;
    color: rgba(190, 228, 251, 0.95);
    margin: 0 0 10px;
    letter-spacing: 1px;
}

.FormSubtitle {
    font-family: "Google Sans", sans-serif;
    font-size: 13px;
    line-height: 1.7;
    color: rgba(190, 228, 251, 0.45);
    margin: 0 0 36px;
    letter-spacing: 0.3px;
}

/* ---- Fields ---- */

.FieldGroup {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 22px;
}

.FieldLabel {
    font-family: "Google Sans", sans-serif;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(190, 228, 251, 0.50);
}

.FieldInput {
    font-family: "Google Sans", sans-serif;
    font-size: 14px;
    color: rgba(190, 228, 251, 0.90);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(190, 228, 251, 0.12);
    border-radius: 10px;
    padding: 13px 16px;
    outline: none;
    width: 100%;
    transition:
        border-color 0.25s ease,
        background   0.25s ease,
        box-shadow   0.25s ease;
    -webkit-appearance: none;
}

.FieldInput::placeholder {
    color: rgba(190, 228, 251, 0.22);
}

.FieldInput:focus {
    border-color: rgba(34, 211, 238, 0.45);
    background: rgba(34, 211, 238, 0.04);
    box-shadow:
        0 0 0 3px rgba(34, 211, 238, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.FieldTextarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

/* ---- reCAPTCHA ---- */

.CaptchaWrap {
    margin-bottom: 24px;
    /* reCAPTCHA renders a fixed-size iframe; keep it left-aligned */
    display: flex;
}

/* ---- Status message ---- */

.FormStatus {
    font-family: "Google Sans", sans-serif;
    font-size: 13px;
    letter-spacing: 0.3px;
    min-height: 20px;
    margin-bottom: 16px;
    transition: opacity 0.3s ease;
}

.FormStatus.success {
    color: rgba(52, 211, 153, 0.90);
}

.FormStatus.error {
    color: rgba(248, 113, 113, 0.90);
}

/* ---- Submit Button ---- */

.SubmitBtn {
    display: inline-flex;
    align-items: center;
    padding: 13px 36px;
    font-family: "Google Sans", sans-serif;
    font-size: 11px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(34, 211, 238, 0.90);
    background: rgba(34, 211, 238, 0.06);
    border: 1px solid rgba(34, 211, 238, 0.40);
    border-radius: 4px;
    cursor: pointer;
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        0 0 18px rgba(34, 211, 238, 0.12),
        0 0 40px rgba(34, 211, 238, 0.06);
    transition:
        color        0.3s ease,
        border-color 0.3s ease,
        background   0.3s ease,
        text-shadow  0.3s ease,
        box-shadow   0.3s ease,
        opacity      0.3s ease;
}

.SubmitBtn:hover:not(:disabled) {
    color: rgba(34, 211, 238, 1);
    border-color: rgba(34, 211, 238, 0.70);
    background: rgba(34, 211, 238, 0.10);
    text-shadow: 0 0 22px rgba(34, 211, 238, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 28px rgba(34, 211, 238, 0.22),
        0 0 60px rgba(34, 211, 238, 0.10);
}

.SubmitBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ---- Footer ---- */

.PageFooter {
    width: 100%;
    text-align: center;
    padding: 28px 0 0;
}

.Copyright {
    font-family: "Google Sans", sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    color: rgba(190, 228, 251, 0.20);
    text-transform: uppercase;
}

/* ================================================================
   MOBILE — Both orientations
   ================================================================ */
@media (max-width: 900px) {

    /* Static gradient, no canvas */
    #auroraCanvas,
    #auroraFade { display: none; }

    html {
        background:
            radial-gradient(ellipse 160% 70% at 50% 22%, rgba(34, 211, 238, 0.22) 0%, transparent 65%),
            radial-gradient(ellipse 110% 55% at 15% 12%, rgba(52, 211, 153, 0.16) 0%, transparent 60%),
            radial-gradient(ellipse 90%  50% at 85% 32%, rgba(129, 140, 248, 0.14) 0%, transparent 58%),
            radial-gradient(ellipse 130% 40% at 50% 50%, rgba(13,  148, 136, 0.10) 0%, transparent 70%),
            linear-gradient(to bottom, #020709 0%, #050d16 50%, #060d14 100%);
    }

    /* Fix menu to top of screen */
    .MenuContainer {
        top: 20px;
        right: 16px;
    }

    .MenuText { font-size: 11px; letter-spacing: 3px; }
    .MenuLine { width: 22px; }

    /* Cap dropdown so it never exceeds available screen width */
    .MenuDropdown.open { max-width: calc(100vw - 90px); }
    .MenuNavItem {
        font-size: 9px;
        letter-spacing: 2px;
        padding: 6px 8px;
    }

    /* Reduce top padding on the form wrap — nav is smaller on mobile */
    .FormWrap {
        padding-top: 70px;
        padding-bottom: 24px;
    }

    /* Slightly tighter panel padding on narrow screens */
    .FormPanel {
        padding: clamp(24px, 5vw, 40px) clamp(20px, 5vw, 40px);
    }

    /* Shrink the message textarea a little to save space */
    .FieldTextarea {
        min-height: 100px;
    }

    /* Submit button: full width on mobile for easy tapping */
    .SubmitBtn {
        width: 100%;
        justify-content: center;
    }
}

/* ================================================================
   MOBILE — Landscape: extra compact to keep form usable
   ================================================================ */
@media (max-width: 900px) and (orientation: landscape) {

    .MenuContainer { top: 14px; }

    .FormWrap {
        padding-top: 52px;
        padding-bottom: 16px;
        align-items: flex-start;
    }

    .FormSubtitle { margin-bottom: 20px; }

    .FieldGroup { margin-bottom: 14px; }

    .FieldTextarea { min-height: 72px; }
}
