:root {
    --bg: #120f18;
    --card: rgba(255, 255, 255, 0.06);
    --card-2: rgba(255, 255, 255, 0.1);
    --border: rgba(255, 255, 255, 0.14);
    --text: #f6f0ff;
    --muted: rgba(246, 240, 255, 0.68);
    --accent: #d9b6ff;
    --accent-2: #8e6ab7;
    --danger: #ff7d9d;
    --success: #8ff0b5;
}

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

body {
    min-height: 100vh;
    font-family: Inter, Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(142, 106, 183, 0.22), transparent 35%),
        radial-gradient(circle at bottom right, rgba(217, 182, 255, 0.12), transparent 30%),
        linear-gradient(135deg, #110e17, #1b1422 45%, #0e0b13);
    color: var(--text);
    padding: 40px 18px;
}

.page {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s ease;
}

.back-link:hover {
    color: var(--text);
}

.registration-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 34px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)),
        var(--card);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px);
}

.registration-card::before {
    content: "FSMUN";
    position: absolute;
    top: -18px;
    right: 20px;
    font-size: 92px;
    font-weight: 900;
    letter-spacing: -5px;
    color: rgba(255, 255, 255, 0.045);
    pointer-events: none;
}

.header {
    position: relative;
    margin-bottom: 30px;
    z-index: 1;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 16px rgba(217, 182, 255, 0.7);
}

h1 {
    max-width: 620px;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 0.95;
    letter-spacing: -0.05em;
    margin-bottom: 14px;
}

.subtitle {
    max-width: 600px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
}

form {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 18px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

label {
    color: rgba(246, 240, 255, 0.82);
    font-size: 13px;
    font-weight: 700;
}

input,
select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 15px 16px;
    background: rgba(255, 255, 255, 0.075);
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: 0.2s ease;
}

input::placeholder {
    color: rgba(246, 240, 255, 0.38);
}

input:focus,
select:focus {
    border-color: rgba(217, 182, 255, 0.7);
    background: rgba(255, 255, 255, 0.11);
    box-shadow: 0 0 0 4px rgba(217, 182, 255, 0.1);
}

select {
    cursor: pointer;
}

select option {
    background: #1b1422;
    color: #fff;
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.055);
}

.checkbox-field input {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-2);
    cursor: pointer;
}

.checkbox-field label {
    cursor: pointer;
    font-size: 15px;
}

.submit-btn {
    border: none;
    border-radius: 20px;
    padding: 17px 24px;
    margin-top: 4px;
    background: linear-gradient(135deg, #ead9ff, #9d76c9);
    color: #17101f;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: 0.2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(157, 118, 201, 0.28);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.message {
    display: none;
    margin-top: 18px;
    padding: 15px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.message.success {
    display: block;
    border: 1px solid rgba(143, 240, 181, 0.3);
    background: rgba(143, 240, 181, 0.1);
    color: var(--success);
}

.message.error {
    display: block;
    border: 1px solid rgba(255, 125, 157, 0.3);
    background: rgba(255, 125, 157, 0.1);
    color: var(--danger);
}

@media (max-width: 720px) {
    body {
        padding: 24px 14px;
    }

    .registration-card {
        padding: 24px;
        border-radius: 24px;
    }

    .registration-card::before {
        font-size: 62px;
        top: -8px;
        right: 10px;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 38px;
    }
}

.success-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    max-width: 360px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(143, 240, 181, 0.35);
    background: rgba(25, 38, 31, 0.92);
    color: #8ff0b5;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    opacity: 0;
    transform: translateY(-12px);
    transition: 0.3s ease;
}

.success-toast.show {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 600px) {
    .success-toast {
        top: 16px;
        right: 16px;
        left: 16px;
        max-width: none;
    }
}

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

.committee-choice {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.committee-option {
    position: relative;
    width: 100%;
    min-height: 92px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    background:
        radial-gradient(circle at top left, rgba(217, 182, 255, 0.16), transparent 38%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045));
    color: var(--text);
    cursor: pointer;
    text-align: left;
    overflow: hidden;
    transition: 0.22s ease;
}

.committee-option::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(234, 217, 255, 0.22), rgba(157, 118, 201, 0.08));
    opacity: 0;
    transition: 0.22s ease;
    pointer-events: none;
}

.committee-option::after {
    content: "";
    position: absolute;
    top: 16px;
    right: 16px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(246, 240, 255, 0.35);
    background: rgba(255, 255, 255, 0.04);
    transition: 0.22s ease;
}

.committee-option:hover {
    transform: translateY(-2px);
    border-color: rgba(217, 182, 255, 0.45);
    background:
        radial-gradient(circle at top left, rgba(217, 182, 255, 0.23), transparent 42%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.committee-option.active {
    border-color: rgba(217, 182, 255, 0.85);
    background:
        radial-gradient(circle at top left, rgba(217, 182, 255, 0.34), transparent 42%),
        linear-gradient(145deg, rgba(234, 217, 255, 0.19), rgba(157, 118, 201, 0.11));
    box-shadow:
        0 18px 42px rgba(0, 0, 0, 0.28),
        0 0 0 4px rgba(217, 182, 255, 0.1);
}

.committee-option.active::before {
    opacity: 1;
}

.committee-option.active::after {
    border-color: #ead9ff;
    background:
        radial-gradient(circle, #ead9ff 0 38%, transparent 42%),
        rgba(157, 118, 201, 0.45);
    box-shadow: 0 0 18px rgba(217, 182, 255, 0.75);
}

.committee-title {
    position: relative;
    z-index: 1;
    display: block;
    max-width: calc(100% - 36px);
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.committee-level {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: fit-content;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    color: rgba(246, 240, 255, 0.72);
    font-size: 12px;
    font-weight: 800;
}

.committee-option.active .committee-level {
    background: rgba(234, 217, 255, 0.18);
    color: #f4e9ff;
}

@media (max-width: 720px) {
    .committee-choice {
        grid-template-columns: 1fr;
    }

    .committee-option {
        min-height: 84px;
    }
}