﻿:root {
    color-scheme: dark;
    --gold: #d6af3a;
    --gold-light: #f5dd87;
    --background: #060605;
    --card: rgba(18, 17, 14, 0.94);
    --border: rgba(214, 175, 58, 0.2);
    --text: #f7f4eb;
    --muted: #aaa69b;
    --error: #ff8080;
    --success: #88d8a0;
}

* {
    box-sizing: border-box;
}

html,
body,
form {
    min-height: 100%;
    margin: 0;
}

body,
input,
select,
button {
    font-family: "Segoe UI", Arial, sans-serif;
}

body {
    color: var(--text);
    background: radial-gradient(circle at 10% 10%, rgba(214,175,58,.1), transparent 28rem), var(--background);
}

.page-header {
    display: flex;
    min-height: 82px;
    padding: 1rem clamp(1rem, 5vw, 4rem);
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    background: rgba(5,5,4,.88);
}

    .page-header img {
        display: block;
        width: 76px;
    }

    .page-header div {
        display: flex;
        flex-direction: column;
    }

    .page-header span {
        color: var(--gold);
        font-size: .72rem;
        letter-spacing: .12em;
        text-transform: uppercase;
    }

.registration {
    width: min(calc(100% - 2rem), 1050px);
    margin: 0 auto;
    padding: 4rem 0;
}

.intro {
    margin-bottom: 2.5rem;
}

.eyebrow {
    color: var(--gold);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

h1 {
    margin: .6rem 0;
    font-size: clamp(2rem, 5vw, 3.2rem);
}

h2,
p {
    margin-top: 0;
}

p,
small {
    color: var(--muted);
}

.form-card {
    margin-bottom: 1.25rem;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 20px 50px rgba(0,0,0,.22);
}

.section-heading {
    display: flex;
    margin-bottom: 2rem;
    align-items: flex-start;
    gap: 1rem;
}

    .section-heading > span {
        display: grid;
        min-width: 42px;
        height: 42px;
        place-items: center;
        border: 1px solid var(--gold);
        border-radius: 50%;
        color: var(--gold-light);
    }

    .section-heading h2 {
        margin-bottom: .35rem;
    }

    .section-heading p {
        margin-bottom: 0;
    }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.field-wide {
    grid-column: 1 / -1;
}

.field label {
    display: block;
    margin-bottom: .5rem;
    font-size: .88rem;
    font-weight: 600;
}

.field input,
.field select {
    width: 100%;
    padding: .9rem 1rem;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 9px;
    outline: none;
    color: var(--text);
    background: rgba(255,255,255,.04);
}

    .field input:focus,
    .field select:focus {
        border-color: var(--gold);
        box-shadow: 0 0 0 3px rgba(214,175,58,.12);
    }

.field small {
    display: block;
    margin-top: .45rem;
}

.photo-field {
    padding: 1.25rem;
    border: 1px dashed rgba(214,175,58,.4);
    border-radius: 12px;
    background: rgba(214,175,58,.04);
}

.privacy-check {
    display: flex;
    margin-top: 2rem;
    gap: .75rem;
    color: var(--muted);
    line-height: 1.55;
}

    .privacy-check input {
        width: 18px;
        height: 18px;
        accent-color: var(--gold);
    }

.form-actions {
    display: flex;
    margin-top: 2rem;
    align-items: center;
    justify-content: flex-end;
    gap: 1.5rem;
}

    .form-actions a {
        color: var(--muted);
        text-decoration: none;
    }

.submit-button {
    padding: 1rem 2rem;
    border: 1px solid var(--gold);
    border-radius: 10px;
    cursor: pointer;
    color: #171308;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    font-weight: 700;
}

.message {
    display: block;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
}

.message-error {
    border: 1px solid rgba(255,128,128,.35);
    color: var(--error);
    background: rgba(255,128,128,.08);
}

.message-success {
    border: 1px solid rgba(136,216,160,.35);
    color: var(--success);
    background: rgba(136,216,160,.08);
}

@media (max-width: 700px) {
    .registration {
        padding: 2rem 0;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field-wide {
        grid-column: auto;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
        text-align: center;
    }
}
