* {
    box-sizing: border-box;
}

body.qf-apply-body {
    margin: 0;
    background: #f4f7fa;
    color: #17212b;
    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;
}

.qf-apply-header {
    min-height: 76px;
    padding: 14px clamp(20px, 5vw, 70px);
    background: #ffffff;
    border-bottom: 1px solid #e4ebf1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.qf-apply-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.qf-apply-brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.qf-apply-brand div {
    display: grid;
}

.qf-apply-brand strong {
    font-size: 16px;
}

.qf-apply-brand span {
    font-size: 12px;
    color: #718096;
}

.qf-apply-header-links {
    display: flex;
    gap: 18px;
}

.qf-apply-header-links a {
    color: var(--apply-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.qf-apply-main {
    width: min(100%, 1050px);
    margin: 0 auto;
    padding:
        clamp(30px, 5vw, 60px)
        20px
        70px;
}

.qf-apply-intro {
    max-width: 750px;
    margin-bottom: 30px;
}

.qf-apply-eyebrow {
    color: var(--apply-accent);
    font-weight: 800;
    letter-spacing: 0.13em;
    font-size: 11px;
}

.qf-apply-intro h1 {
    font-size: clamp(30px, 5vw, 46px);
    line-height: 1.1;
    margin: 8px 0 12px;
}

.qf-apply-intro p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.7;
}

.qf-apply-alert {
    padding: 15px 18px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: #eaf5ff;
    color: #174d78;
    font-weight: 600;
}

.qf-apply-error {
    background: #fdecef;
    color: #9d3342;
}

.qf-apply-form {
    display: grid;
    gap: 22px;
}

.qf-apply-card {
    background: #ffffff;
    border-radius: 20px;
    padding: clamp(22px, 4vw, 34px);
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 22px;
    box-shadow:
        0 10px 35px
        rgba(20, 49, 76, 0.07);
}

.qf-apply-step {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--apply-primary);
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
}

.qf-apply-card-content h2 {
    margin: 3px 0 20px;
}

.qf-card-subtitle {
    margin: -10px 0 22px;
    color: #64748b;
}

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

.qf-field {
    display: grid;
    gap: 7px;
}

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

.qf-field label {
    font-size: 13px;
    font-weight: 700;
}

.qf-field input,
.qf-field select {
    width: 100%;
    min-height: 48px;
    padding: 0 13px;
    border: 1px solid #d8e2ea;
    border-radius: 10px;
    background: #ffffff;
    font-size: 15px;
}

.qf-field input:focus,
.qf-field select:focus {
    outline: none;
    border-color: var(--apply-accent);
    box-shadow:
        0 0 0 3px
        rgba(21, 156, 152, 0.10);
}

.qf-terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 22px;
    color: #566575;
    line-height: 1.5;
}

.qf-terms input {
    margin-top: 4px;
}

.qf-existing-user {
    padding: 18px;
    border-radius: 12px;
    background: #eef6fb;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.qf-existing-user span {
    color: #64748b;
}

.qf-apply-process {
    background: #eaf2f7;
    padding: 25px;
    border-radius: 18px;
}

.qf-apply-process h3 {
    margin: 0 0 18px;
}

.qf-process-grid {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(0, 1fr));
    gap: 12px;
}

.qf-process-grid div {
    background: #ffffff;
    border-radius: 10px;
    padding: 14px;
    font-size: 12px;
    display: grid;
    gap: 7px;
}

.qf-process-grid strong {
    color: var(--apply-accent);
    font-size: 18px;
}

.qf-apply-submit {
    border: 0;
    border-radius: 12px;
    min-height: 55px;
    padding: 0 28px;
    background: var(--apply-accent);
    color: #ffffff;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    justify-self: end;
}

.qf-apply-submit:hover {
    opacity: 0.92;
}

.qf-access-note {
    max-width: 700px;
    justify-self: end;
    margin: -5px 0 0;
    color: #718096;
    font-size: 12px;
    line-height: 1.6;
    text-align: right;
}

@media (max-width: 760px) {
    .qf-apply-header {
        align-items: flex-start;
    }

    .qf-apply-header-links {
        display: grid;
        gap: 6px;
        text-align: right;
    }

    .qf-apply-card {
        grid-template-columns: 1fr;
    }

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

    .qf-field.qf-full {
        grid-column: auto;
    }

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

    .qf-apply-submit {
        width: 100%;
    }

    .qf-access-note {
        text-align: left;
    }
}


/* ==========================================================
   PEI ADMISSION PREREQUISITES
========================================================== */

.qf-prerequisite-note {
    display: grid;
    gap: 7px;
    padding: 18px;
    margin-bottom: 22px;
    background: #eef6fb;
    border-radius: 12px;
    color: #526575;
    line-height: 1.55;
}

.qf-prerequisite-note strong {
    color: var(--apply-primary);
}

.qf-course-requirements h3 {
    margin: 0 0 16px;
    color: var(--apply-primary);
}

.qf-requirement-list {
    display: grid;
    gap: 14px;
}

.qf-requirement-item {
    padding: 18px;
    border: 1px solid #dfe8ef;
    border-radius: 14px;
    background: #ffffff;
}

.qf-requirement-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.qf-requirement-heading strong {
    font-size: 15px;
    color: #17212b;
}

.qf-requirement-mode {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.qf-mode-mandatory {
    background: #fdecef;
    color: #9d3342;
}

.qf-mode-alternative {
    background: #fff5df;
    color: #8a651c;
}

.qf-mode-optional {
    background: #eaf5ef;
    color: #357052;
}

.qf-requirement-category {
    margin-top: 7px;
    color: var(--apply-accent);
    font-size: 12px;
    font-weight: 800;
}

.qf-requirement-item p {
    margin: 10px 0 0;
    color: #64748b;
    line-height: 1.6;
}

.qf-alternative-note {
    font-size: 12px;
    font-weight: 700;
}

.qf-no-requirements {
    padding: 18px;
    border-radius: 12px;
    background: #f4f7fa;
    color: #64748b;
}

.qf-prerequisite-disclosure {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e3eaf0;
}

.qf-category-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.qf-category-grid div {
    display: grid;
    gap: 6px;
    padding: 15px;
    border-radius: 12px;
    background: #f5f8fa;
}

.qf-category-grid b {
    color: var(--apply-primary);
    font-size: 13px;
}

.qf-category-grid span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .qf-requirement-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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