@font-face {
    font-family: 'Degular';
    src: url('../fonts/Degular-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Degular';
    src: url('../fonts/Degular-Semibold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #262626;
    --surface: #2e2e2e;
    --surface-2: #333333;
    --border: #454545;
    --text: #ffffff;
    --muted: #b7b7b7;
    --accent: #95fe01;
    --danger: #ff7c7c;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at 10% 8%, rgba(149, 254, 1, 0.07), transparent 24rem),
        var(--bg);
    color: var(--text);
    font-family: 'Degular', 'Arial Narrow', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.page-shell {
    width: min(100%, 860px);
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.brand {
    display: flex;
    justify-content: center;
    margin-bottom: 34px;
}

.brand img {
    display: block;
    width: min(310px, 70vw);
    height: auto;
}

.form-card {
    background: rgba(46, 46, 46, 0.95);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 38px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.2);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--accent);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 54px);
    line-height: 0.98;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.intro {
    max-width: 590px;
    margin: 14px 0 32px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.35;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.field-full {
    grid-column: 1 / -1;
}

.field label {
    display: block;
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 500;
}

.input-wrap {
    position: relative;
}

input,
select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-2);
    color: var(--text);
    padding: 15px 16px;
    font: inherit;
    font-size: 18px;
    outline: none;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input::placeholder {
    color: #8e8e8e;
}

input:focus,
select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(149, 254, 1, 0.12);
    background: #363636;
}

select {
    appearance: none;
    cursor: pointer;
    padding-right: 48px;
}

.select-wrap::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.field-error {
    min-height: 18px;
    margin: 6px 2px 0;
    color: var(--danger);
    font-size: 15px;
}

.actions {
    margin-top: 28px;
}

button {
    width: 100%;
    border: 0;
    border-radius: 14px;
    background: var(--accent);
    color: #171717;
    padding: 16px 22px;
    font: inherit;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 150ms ease, filter 150ms ease, opacity 150ms ease;
}

button:hover {
    transform: translateY(-1px);
    filter: brightness(0.96);
}

button:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.form-note {
    margin: 13px 0 0;
    color: #929292;
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
}

.status-message {
    display: none;
    margin-top: 18px;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 17px;
}

.status-message.error {
    display: block;
    background: rgba(255, 124, 124, 0.08);
    border: 1px solid rgba(255, 124, 124, 0.35);
    color: #ffd0d0;
}

.success-state {
    display: none;
    min-height: 280px;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
}

.success-state.visible {
    display: flex;
}

.success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: #171717;
    font-size: 34px;
    font-weight: 600;
    margin-bottom: 18px;
}

.success-state h2 {
    margin: 0 0 8px;
    font-size: 36px;
    line-height: 1;
}

.success-state p {
    margin: 0;
    color: var(--muted);
    font-size: 20px;
}

@media (max-width: 700px) {
    .page-shell {
        padding: 28px 16px 40px;
    }

    .brand {
        margin-bottom: 24px;
    }

    .form-card {
        padding: 26px 18px;
        border-radius: 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .field-full {
        grid-column: auto;
    }

    .intro {
        font-size: 18px;
        margin-bottom: 26px;
    }
}
