/* =====================================================================
   Guest-mode base (reset, tokens, typography, buttons, nav, footer)
   mirrors the landing page (partials.head) so the reused partials.nav /
   partials.footer render identically. Contact-page styles follow below.
   ===================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue: #2563EB;
    --blue-d: #1D4ED8;
    --blue-l: #EFF4FF;
    --blue-m: #C7D8FF;
    --green: #10B981;
    --green-d: #059669;
    --green-l: #E7F8F1;
    --green-m: #A7EBD0;
    --emer: #34D399;
    --amber: #D97706;
    --amber-l: #FEF6E7;
    --amber-m: #F3D9A6;
    --violet: #7C3AED;
    --violet-l: #F3ECFF;
    --teal: #0E8F86;
    --teal-l: #E4F5F2;
    --ink: #0B1220;
    --ink-2: #283242;
    --muted: #5B6675;
    --faint: #93A0B2;
    --bg: #FFFFFF;
    --soft: #F4F7FB;
    --soft-2: #EDF2F8;
    --line: #E3E9F1;
    --card: #FFFFFF;
    --d1: #0A1A33;
    --d2: #0C2A47;
    --d3: #0B3A33;
    --red: #DC2626;
    --sans: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --disp: 'Space Grotesk', var(--sans);
    --r: 16px;
    --r-lg: 22px;
    --r-xl: 30px;
    --sh-1: 0 1px 2px rgba(11, 18, 32, .05);
    --sh-2: 0 10px 30px -12px rgba(11, 18, 32, .18), 0 2px 6px -3px rgba(11, 18, 32, .08);
    --sh-3: 0 34px 70px -24px rgba(11, 18, 32, .34), 0 10px 26px -12px rgba(11, 18, 32, .14);
    --maxw: 1120px;
}

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--ink-2);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--green-l); color: var(--green-d); }

*:focus-visible {
    outline: 2.5px solid var(--blue);
    outline-offset: 3px;
    border-radius: 8px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }

h1, h2, h3, h4 {
    font-family: var(--disp);
    color: var(--ink);
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -.02em;
    text-wrap: balance;
}

p { text-wrap: pretty; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: var(--green-d);
    background: var(--green-l);
    border: 1px solid var(--green-m);
    padding: 7px 14px;
    border-radius: 999px;
}

.eyebrow.blue { color: var(--blue-d); background: var(--blue-l); border-color: var(--blue-m); }
.eyebrow.amber { color: var(--amber); background: var(--amber-l); border-color: var(--amber-m); }
.eyebrow.dark { color: var(--emer); background: rgba(52, 211, 153, .12); border-color: rgba(52, 211, 153, .3); }

.btn {
    font-family: var(--sans);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 24px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .2s cubic-bezier(.2, .7, .3, 1), box-shadow .2s, background .2s, border-color .2s;
    position: relative;
    overflow: hidden;
}

.btn svg { width: 18px; height: 18px; }

.btn.primary {
    background: linear-gradient(180deg, #13C98C, #0E9E6E);
    color: #06231a;
    box-shadow: 0 14px 30px -12px rgba(16, 185, 129, .8);
}

.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -12px rgba(16, 185, 129, .85); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: var(--sh-1); }
.btn.ghost:hover { transform: translateY(-2px); border-color: var(--blue-m); box-shadow: var(--sh-2); }
.btn.white { background: #fff; color: var(--d1); }
.btn.white:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }
.btn.outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .32); }
.btn.outline:hover { background: rgba(255, 255, 255, .1); transform: translateY(-2px); }

.btn.primary::after,
.btn.white::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .3) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .65s;
}

.btn.primary:hover::after,
.btn.white:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0); }

/* NAV */
.nav {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: .25s;
}

.nav.scrolled { border-color: var(--line); box-shadow: 0 6px 22px -16px rgba(11, 18, 32, .5); background: rgba(255, 255, 255, .93); }

.nav-in {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--disp);
    font-weight: 700;
    font-size: 20px;
    color: var(--ink);
    letter-spacing: -.03em;
}

.brand .logo { width: 100%; max-width: 250px; height: auto; object-fit: contain; }
.brand i { font-style: normal; color: var(--green-d); }

.brand .mk {
    width: 36px;
    height: 36px;
    border-radius: 11px;
}

.brand .mk svg { width: 19px; height: 19px; }
.nav-links { display: flex; align-items: center; gap: 2px; }

.nav-links a {
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-2);
    padding: 9px 14px;
    border-radius: 10px;
    transition: .15s;
}

.nav-links a:hover { color: var(--ink); background: var(--soft); }
.nav-links a.active { color: var(--green-d); background: var(--green-l); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .login { font-size: 15px; font-weight: 700; color: var(--ink); padding: 9px 8px; }
.nav-cta .login:hover { color: var(--green-d); }
.nav-cta .btn { padding: 11px 22px; }

.profile-menu { position: relative; }

.profile-trigger {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--card);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--sh-1);
    transition: border-color .15s, box-shadow .15s, transform .15s;
}

.profile-trigger:hover,
.profile-menu.open .profile-trigger { border-color: var(--green-m); box-shadow: var(--sh-2); transform: translateY(-1px); }

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #13C98C, #2563EB);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
}

.profile-dropdown {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    min-width: 190px;
    padding: 8px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--sh-3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .15s, transform .15s, visibility .15s;
}

.profile-menu.open .profile-dropdown,
.profile-menu:focus-within .profile-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }

.profile-meta {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
    padding: 8px 10px 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-dropdown a,
.profile-dropdown button {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--ink);
    display: flex;
    align-items: center;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 10px;
    text-align: left;
}

.profile-dropdown a:hover,
.profile-dropdown button:hover { background: var(--soft); }
.profile-dropdown form { margin: 0; }

.burger {
    display: none;
    background: none;
    border: none;
    flex-direction: column;
    gap: 5px;
    padding: 9px;
    cursor: pointer;
}

.burger span { width: 23px; height: 2.5px; background: var(--ink); border-radius: 3px; }

@media(max-width:940px) {
    .nav-links { display: none; }
    .nav-cta .login { display: none; }
    .burger { display: flex; }
}

.drawer {
    position: fixed;
    inset: 66px 0 0;
    background: var(--bg);
    z-index: 79;
    transform: translateX(100%);
    transition: transform .3s;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border-top: 1px solid var(--line);
}

.drawer.open { transform: none; }
.drawer a { font-size: 17px; font-weight: 600; color: var(--ink); padding: 15px 12px; border-radius: 11px; }
.drawer a:hover { background: var(--soft); }
.drawer .btn { margin-top: 14px; }
.drawer-logout-form { margin: 0; }

.drawer-logout {
    width: 100%;
    background: transparent;
    border: 0;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 17px;
    font-weight: 600;
    padding: 15px 12px;
    text-align: left;
    border-radius: 11px;
}

.drawer-logout:hover { background: var(--soft); }

.skip {
    position: absolute;
    left: 50%;
    top: -64px;
    transform: translateX(-50%);
    background: var(--green-d);
    color: #fff;
    padding: 11px 20px;
    border-radius: 0 0 12px 12px;
    font-weight: 700;
    font-size: 14px;
    z-index: 300;
    transition: top .2s;
}

.skip:focus { top: 0; }
main:focus { outline: none; }

/* FINAL CTA + FOOTER */
.final { padding: 0; }

.final-card {
    background: radial-gradient(700px 360px at 80% 0%, rgba(52, 211, 153, .22), transparent 60%), linear-gradient(135deg, var(--d1), var(--d2) 55%, var(--d3));
    color: #fff;
    padding: clamp(56px, 8vw, 104px) 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-card h2 { color: #fff; font-size: clamp(32px, 4.8vw, 54px); }
.final-card h2 .u { color: var(--emer); }
.final-card p { color: rgba(255, 255, 255, .8); font-size: 18px; max-width: 52ch; margin: 18px auto 0; }
.final-btns { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.final-note { color: var(--emer); font-size: 13.5px; font-weight: 600; margin-top: 22px; }

.footer { background: #080C13; color: #8A94A4; padding: 66px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand .brand { color: #fff; margin-bottom: 16px; }
.foot-brand p { font-size: 14.5px; line-height: 1.65; max-width: 34ch; }

.foot-col h5 {
    color: #fff;
    font-size: 12.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: 16px;
}

.foot-col a { display: block; font-size: 14.5px; color: #8A94A4; margin-bottom: 11px; }
.foot-col a:hover { color: #fff; }

.foot-bot {
    border-top: 1px solid #1B212B;
    margin-top: 50px;
    padding-top: 26px;
    text-align: center;
    font-size: 13.5px;
    color: #5B6675;
}

@media(max-width:900px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:520px) { .foot-grid { grid-template-columns: 1fr; } }

.to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--sh-2);
    color: var(--ink);
    font-size: 20px;
    display: grid;
    place-items: center;
    z-index: 85;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: .25s;
}

.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--green-m); color: var(--green-d); transform: translateY(-3px); }
.mcta { display: none; }

@media(max-width:720px) {
    .to-top { display: none; }
    .mcta {
        display: flex;
        position: fixed;
        left: 14px;
        right: 14px;
        bottom: 14px;
        z-index: 90;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: linear-gradient(180deg, #13C98C, #0E9E6E);
        color: #06231a;
        font-weight: 800;
        font-size: 16px;
        padding: 15px;
        border-radius: 999px;
        box-shadow: 0 14px 30px -10px rgba(16, 185, 129, .85);
        padding-bottom: calc(15px + env(safe-area-inset-bottom, 0px));
    }
    body { padding-bottom: 82px; }
}

@media(max-width:640px) {
    .wrap { padding: 0 18px; }
    .nav-in { padding: 0 18px; }
}

/* =====================================================================
   Contact / support-ticket page
   ===================================================================== */
.hero {
    background: linear-gradient(180deg, var(--soft), #fff);
    border-bottom: 1px solid var(--line);
    padding: 58px 0 38px;
}

.hero-in { text-align: center; max-width: 680px; margin: 0 auto; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); margin: 16px 0 12px; }
.hero p { font-size: 18px; color: var(--muted); max-width: 52ch; margin: 0 auto; }

/* quick contact cards */
.methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: -28px auto 0;
    position: relative;
    z-index: 2;
}

.mcard {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 24px;
    box-shadow: var(--sh-2);
    text-align: center;
}

.mcard .ic {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    margin: 0 auto 14px;
    color: #fff;
}

.mcard .ic svg { width: 23px; height: 23px; }
.ic.g { background: linear-gradient(135deg, #13C98C, #059669); }
.ic.b { background: linear-gradient(135deg, #3B82F6, #1D4ED8); }
.ic.v { background: linear-gradient(135deg, #8B5CF6, #6D28D9); }
.mcard h3 { font-size: 17px; margin-bottom: 5px; }
.mcard a, .mcard p { font-size: 15px; color: var(--muted); font-weight: 600; }
.mcard a:hover { color: var(--green-d); }
.mcard .sub { font-size: 13px; color: var(--faint); font-weight: 600; margin-top: 4px; }

/* main grid */
.cgrid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    padding: 52px 0 62px;
    align-items: start;
}

.formcard {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-xl);
    padding: 34px;
    box-shadow: var(--sh-1);
}

.formcard h2 { font-size: 26px; margin-bottom: 6px; }
.formcard .lead { color: var(--muted); font-size: 15.5px; margin-bottom: 24px; }

.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field.full { grid-column: 1/-1; }

label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
label .req { color: #DC2626; }

.inp, select.inp, textarea.inp {
    width: 100%;
    font-family: var(--sans);
    font-size: 15px;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line);
    border-radius: 11px;
    padding: 12px 14px;
    outline: none;
    transition: .15s;
}

select.inp {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235B6675' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

textarea.inp { min-height: 140px; resize: vertical; }

.inp:focus, select.inp:focus, textarea.inp:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, .15);
}

.inp.err, select.inp.err, textarea.inp.err {
    border-color: #DC2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .12);
}

.hint { font-size: 12.5px; color: var(--faint); margin-top: 6px; }

.file {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px dashed var(--line);
    border-radius: 11px;
    padding: 12px 14px;
    cursor: pointer;
    transition: .15s;
    font-size: 14px;
    color: var(--muted);
    font-weight: 600;
}

.file:hover { border-color: var(--green-m); color: var(--green-d); }
.file input { display: none; }

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--muted);
    margin: 4px 0 20px;
}

.consent input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--green-d); }

.errbox {
    display: none;
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #B91C1C;
    border-radius: 11px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
}

.errbox.show { display: block; }
.submit { width: 100%; padding: 15px; font-size: 16px; }

/* info sidebar */
.info .box {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 24px;
    box-shadow: var(--sh-1);
    margin-bottom: 20px;
}

.info h4 { font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }
.info h4 .bar { width: 16px; height: 3px; border-radius: 3px; background: var(--green); }

.info .line {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14.5px;
}

.info .line:last-child { border-bottom: none; }
.info .line .k { color: var(--faint); font-weight: 700; min-width: 88px; }
.info .line .v { color: var(--ink-2); font-weight: 600; }
.info .line .v a { color: var(--green-d); }

.faqlink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
}

.faqlink:last-child { border-bottom: none; }
.faqlink:hover { color: var(--green-d); }

.socials { display: flex; gap: 10px; margin-top: 4px; }

.socials a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1.5px solid var(--line);
    display: grid;
    place-items: center;
    color: var(--ink-2);
    transition: .15s;
}

.socials a:hover { border-color: var(--green-m); color: var(--green-d); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }

/* success */
.success { display: none; text-align: center; padding: 20px 10px; }
.success.show { display: block; }

.success .tick {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: var(--green-l);
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
}

.success .tick svg { width: 32px; height: 32px; color: var(--green-d); }
.success h2 { font-size: 26px; margin-bottom: 8px; }
.success p { color: var(--muted); font-size: 15.5px; max-width: 44ch; margin: 0 auto 8px; }

.ticketid {
    display: inline-block;
    font-family: var(--disp);
    font-weight: 700;
    font-size: 18px;
    color: var(--ink);
    background: var(--soft);
    border: 1px dashed var(--line);
    border-radius: 10px;
    padding: 10px 18px;
    margin: 14px 0 6px;
}

/* active nav item (guest pages) */
.nav-links a.active { color: var(--green-d); background: var(--green-l); }

@media(max-width:940px) {
    .cgrid { grid-template-columns: 1fr; }
    .methods { grid-template-columns: 1fr; }
}

@media(max-width:600px) {
    .frow { grid-template-columns: 1fr; }
    .formcard { padding: 24px; }
}
