:root {
    --blue-900: #123a6d;
    --blue-700: #175ea8;
    --blue-100: #eaf3fc;
    --border: #d6e0eb;
    --text: #1e293b;
    --muted: #5f6f82;
    --required: #bd2525;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: #f4f8fc;
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
}

.page-shell {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0 56px;
}

.page-header {
    margin-bottom: 22px;
    text-align: center;
}

.college-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--blue-700);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
}

.page-header h1 {
    margin: 0 0 10px;
    color: var(--blue-900);
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    line-height: 1.2;
}

.page-header p,
.section-heading p {
    margin: 0;
    color: var(--muted);
}

.note-box {
    margin-bottom: 20px;
    padding: 14px 18px;
    border: 1px solid #9fc2e5;
    border-left: 4px solid var(--blue-700);
    border-radius: 8px;
    color: #244d76;
    background: var(--blue-100);
}

.form-card {
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(18, 58, 109, 0.08);
}

.form-section {
    margin: 0;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 0 0 4px;
    color: var(--blue-900);
    font-size: 1.25rem;
}

.section-heading p {
    font-size: 0.92rem;
}

.section-divider {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

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

.form-field {
    min-width: 0;
}

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

.form-field label {
    display: block;
    margin-bottom: 7px;
    color: #27364a;
    font-size: 0.92rem;
    font-weight: 600;
}

.required {
    color: var(--required);
}

.form-field input,
.form-field select,
.form-field textarea {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #b9c8d8;
    border-radius: 7px;
    color: var(--text);
    background: #ffffff;
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field textarea {
    min-height: 104px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--blue-700);
    box-shadow: 0 0 0 3px rgba(23, 94, 168, 0.14);
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.primary-button {
    min-height: 46px;
    padding: 11px 24px;
    border: 0;
    border-radius: 7px;
    color: #ffffff;
    background: var(--blue-700);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
}

.primary-button:hover {
    background: var(--blue-900);
}

.primary-button:focus-visible,
.alternate-link:focus-visible {
    outline: 3px solid rgba(23, 94, 168, 0.3);
    outline-offset: 3px;
}

.primary-button:active {
    transform: translateY(1px);
}

.alternate-link {
    color: var(--blue-700);
    font-weight: 600;
    text-align: right;
}

.alternate-link:hover {
    color: var(--blue-900);
}

@media (max-width: 700px) {
    .page-shell {
        width: min(100% - 20px, 1080px);
        padding: 24px 0 36px;
    }

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

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

    .form-field-wide {
        grid-column: auto;
    }

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

    .primary-button {
        width: 100%;
    }

    .alternate-link {
        text-align: center;
    }
}
