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

[hidden] {
    display: none !important;
}

:root {
    --page-bg: #eef3f9;
    --card: #ffffff;
    --text: #172033;
    --muted: #667085;
    --line: #dfe6ef;
    --blue: #167fc1;
    --orange: #ff7410;
    --green: #176b3d;
    --red: #9f241a;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    background: var(--page-bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

.registration-shell {
    width: min(760px, calc(100% - 28px));
    margin: 0 auto;
    padding: 36px 0 calc(54px + env(safe-area-inset-bottom));
}

.registration-card {
    overflow: hidden;
    background: var(--card);
    border-radius: 18px;
    box-shadow: 0 16px 38px rgba(31, 44, 68, 0.12);
}

.registration-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 26px;
    color: white;
    background: linear-gradient(115deg, var(--blue), #0c6b9f 62%, var(--orange));
}

.registration-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 14px;
    padding: 6px;
}

.eyebrow {
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    opacity: 0.88;
}

h1 {
    margin-top: 4px;
    font-size: clamp(1.6rem, 5vw, 2.2rem);
}

.intro {
    margin-top: 7px;
    line-height: 1.5;
    opacity: 0.92;
}

.registration-form {
    display: grid;
    gap: 20px;
    padding: 28px;
}

.registration-form label {
    display: grid;
    gap: 8px;
}

.registration-form label > span {
    font-weight: 700;
}

.registration-form label > span strong {
    color: var(--orange);
}

input,
select {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: white;
    color: var(--text);
    font-family: inherit;
    font-size: 16px;
    padding: 12px 13px;
}

input:focus,
select:focus {
    outline: 2px solid rgba(22, 127, 193, 0.18);
    border-color: var(--blue);
}

.privacy-note {
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.form-message {
    padding: 12px 14px;
    border-radius: 10px;
    line-height: 1.45;
}

.error-message {
    color: var(--red);
    background: #fff0ee;
    border: 1px solid #f5b7af;
}

.success-message {
    color: var(--green);
    background: #eaf7ef;
    border: 1px solid #b9dfc8;
}

.closed-message {
    margin: 28px;
    color: var(--muted);
    background: #f7f9fc;
    border: 1px solid var(--line);
}

button {
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    background: var(--blue);
    color: white;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    touch-action: manipulation;
}

button:hover {
    filter: brightness(0.96);
}

button:disabled {
    cursor: wait;
    opacity: 0.65;
}

@media (max-width: 560px) {
    .registration-shell {
        width: min(100% - 18px, 760px);
        padding-top: 14px;
    }

    .registration-header {
        align-items: flex-start;
        padding: 22px 18px;
    }

    .registration-logo {
        width: 52px;
        height: 52px;
    }

    .registration-form {
        padding: 22px 18px;
    }

    .closed-message {
        margin: 22px 18px;
    }
}
