* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #f6f7fb;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: Inter, "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
    color: #182033;
    background:
        radial-gradient(circle at top left, rgba(47, 87, 239, 0.14), transparent 34rem),
        linear-gradient(180deg, #fbfcff 0%, #f3f5fb 100%);
}

.page-shell {
    width: 100%;
    min-height: 100vh;
    padding: 42px 18px;
}

.form-card {
    width: min(940px, 100%);
    margin: 0 auto;
    padding: 34px;
    border: 1px solid #e6e9f2;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 22px 70px rgba(24, 32, 51, 0.10);
}

.form-header {
    text-align: center;
    padding: 6px 0 28px;
}

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

.brand img {
    width: 230px;
    max-width: 82vw;
    height: auto;
}

.eyebrow {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2f57ef;
}

h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 52px);
    line-height: 1.05;
    letter-spacing: 0;
}

.lead {
    max-width: 650px;
    margin: 16px auto 0;
    font-size: 17px;
    line-height: 1.65;
    color: #5e6678;
}

.program-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 24px;
}

.program-switch button,
.submit-btn {
    min-height: 52px;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.program-switch button {
    border: 1px solid #dfe4f2;
    color: #20283a;
    background: #ffffff;
}

.program-switch button.active {
    border-color: #2f57ef;
    color: #ffffff;
    background: linear-gradient(90deg, #2f57ef, #b966e7);
    box-shadow: 0 12px 28px rgba(47, 87, 239, 0.22);
}

.status {
    display: none;
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
}

.status.success,
.status.error {
    display: block;
}

.status.success {
    color: #106b37;
    background: #ecfff4;
    border: 1px solid #bceacb;
}

.status.error {
    color: #9f2323;
    background: #fff0f0;
    border: 1px solid #f1c0c0;
}

.hidden-field {
    display: none;
}

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

.field {
    display: grid;
    gap: 8px;
}

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

.field span,
.consent span {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
}

.field b {
    color: #d43d3d;
}

input,
select,
textarea {
    width: 100%;
    min-height: 52px;
    border: 1px solid #dde3ef;
    border-radius: 10px;
    padding: 12px 14px;
    color: #182033;
    background: #ffffff;
    font: inherit;
    outline: none;
}

textarea {
    min-height: 118px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #2f57ef;
    box-shadow: 0 0 0 4px rgba(47, 87, 239, 0.10);
}

.consent {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 12px;
    align-items: start;
    margin-top: 22px;
    color: #454e62;
}

.consent input {
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #edf0f6;
}

.submit-btn {
    min-width: 220px;
    padding: 0 24px;
    color: #ffffff;
    background: linear-gradient(90deg, #2f57ef, #b966e7);
    box-shadow: 0 15px 34px rgba(47, 87, 239, 0.24);
}

.submit-btn:disabled {
    cursor: wait;
    opacity: 0.7;
}

.form-actions a {
    color: #2f57ef;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 720px) {
    .page-shell {
        padding: 18px 12px;
    }

    .form-card {
        padding: 22px;
        border-radius: 14px;
    }

    .program-switch,
    .field-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .submit-btn {
        width: 100%;
        min-width: 0;
    }
}
