* { box-sizing: border-box; margin: 0; padding: 0; }

@font-face {
    font-family: "Franklin Gothic";
    src: url("fonts/franklin gothic/ITCFranklinGothicStd-Book.eot");
    src: url("fonts/franklin gothic/ITCFranklinGothicStd-Book.woff2") format("woff2"),
        url("fonts/franklin gothic/ITCFranklinGothicStd-Book.woff") format("woff"),
        url("fonts/franklin gothic/ITCFranklinGothicStd-Book.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Franklin Gothic";
    src: url("fonts/franklin gothic/FranklinGothicStd-Condensed.eot");
    src: url("fonts/franklin gothic/FranklinGothicStd-Condensed.woff2") format("woff2"),
        url("fonts/franklin gothic/FranklinGothicStd-Condensed.woff") format("woff"),
        url("fonts/franklin gothic/FranklinGothicStd-Condensed.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

:root {
    --bg: #f4ede7;
    --text: #2b2b2b;
    --muted: #7a7a7a;
    --card: transparent;
    --field: #f6f1ed;
    --stroke: rgba(0,0,0,0.12);
    --primary: #f0d1a6;
    --primary-hover: #e6c491;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
}

body {
    font-family: "Franklin Gothic", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
}

button,
input,
select,
textarea {
    font-family: inherit;
}

input::placeholder,
textarea::placeholder {
    font-family: inherit;
}

.page {
    width: 100%;
    max-width: 420px;
    padding: 56px 24px;
    text-align: center;
}

.brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.brand img {
    width: 140px;
    height: auto;
}

h1 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 30px;
}

.panel {
    text-align: left;
}

.btn {
    width: 100%;
    border: none;
    border-radius: 10px;
    padding: 16px 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--primary);
    color: var(--text);
    box-shadow: var(--shadow);
    transition: transform 0.04s ease, background 0.15s ease;
}

.btn:hover { background: var(--primary-hover); }
.btn:active { transform: translateY(1px); }

.divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    color: var(--muted);
    font-weight: 700;
    margin: 22px 0 18px;
    text-align: center;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    background: rgba(0,0,0,0.12);
}

.label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
}

.input {
    width: 100%;
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 10px;
    padding: 14px 14px;
    font-size: 18px;
    outline: none;
    background: rgba(255,255,255,0.55);
    box-shadow: 0 2px 0 rgba(0,0,0,0.03);
}

.input:focus {
    border-color: rgba(0,0,0,0.26);
    background: rgba(255,255,255,0.7);
}

.select {
    width: 100%;
    border: 1px solid rgba(0,0,0,0.14);
    border-radius: 10px;
    padding: 14px 44px 14px 14px;
    font-size: 18px;
    outline: none;
    background: rgba(255,255,255,0.55);
    box-shadow: 0 2px 0 rgba(0,0,0,0.03);
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

.select:focus {
    border-color: rgba(0,0,0,0.26);
    background: rgba(255,255,255,0.7);
}

.select-wrap {
    position: relative;
}

.select-wrap::after {
    content: "";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 10px;
    height: 10px;
    border-right: 2px solid rgba(0,0,0,0.45);
    border-bottom: 2px solid rgba(0,0,0,0.45);
    transform: translateY(-60%) rotate(45deg);
    pointer-events: none;
}

.form-group { margin-bottom: 18px; }
.honeypot { display: none; }

.support {
    margin-top: 28px;
    text-align: center;
    color: var(--muted);
    font-size: 16px;
    font-weight: 600;
}

.support a {
    color: #b07b3c;
    text-decoration: none;
    font-weight: 800;
}

.support a:hover { text-decoration: underline; }

.icon {
    width: 34px;
    height: 34px;
    display: inline-block;
}

.error-banner {
    background: #f8d7da;
    color: #842029;
    border: 1px solid #f5c2c7;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
}

.is-hidden { display: none !important; }

.loader-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 0 12px;
}

.loader-overlay {
    position: fixed;
    inset: 0;
    padding: 0;
    background: var(--bg);
    z-index: 9999;
}

.qn-loader {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qn-loader-ring {
    position: absolute;
    inset: 0;
    animation: qnister-rotate 2.8s linear infinite;
}

.qn-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    margin: -5px;
    border-radius: 9999px;
    background: #d9d3cd;

    transform:
        rotate(calc(var(--i) * 30deg))
        translateY(-50px);

    animation: qnister-pulse 1.4s ease-in-out infinite;
    animation-delay: calc(var(--i) * -0.12s);
}

.qn-dot:nth-child(-n+4) {
    background: #d8bf9b;
}

.qn-loader-center {
    position: absolute;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qn-loader-center img {
    width: 72px;
    height: auto;
}

@keyframes qnister-rotate {
    to { transform: rotate(360deg); }
}

@keyframes qnister-pulse {
    0%, 100% {
        opacity: 0.35;
        transform:
            rotate(calc(var(--i) * 30deg))
            translateY(-50px)
            scale(0.82);
    }
    50% {
        opacity: 1;
        transform:
            rotate(calc(var(--i) * 30deg))
            translateY(-50px)
            scale(1);
    }
}
