/* =========================================================
   PROFENAA TECHNOLOGIES
   ENROLL PAGE
   Clean • Modern • Responsive • Optimized
   ========================================================= */


/* =========================================================
   ENROLL SECTION
   ========================================================= */

.enroll-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    min-height: 100vh;

    display: flex;
    align-items: center;

    padding-top: calc(var(--nav-h, 80px) + 70px);
    padding-bottom: 90px;

    background:
        radial-gradient(
            circle at 10% 15%,
            rgba(31, 145, 226, 0.12),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 85%,
            rgba(245, 158, 11, 0.08),
            transparent 28%
        ),
        #f7faff;
}


/* =========================================================
   BACKGROUND DECORATION
   ========================================================= */

.enroll-section::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: -220px;
    left: -180px;

    border: 1px solid rgba(31, 145, 226, 0.10);
    border-radius: 50%;

    pointer-events: none;
}


.enroll-section::after {
    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -280px;
    bottom: -300px;

    border: 1px solid rgba(245, 158, 11, 0.10);
    border-radius: 50%;

    pointer-events: none;
}


/* =========================================================
   CONTAINER
   ========================================================= */

.enroll-section .container {
    position: relative;
    z-index: 2;
}


/* =========================================================
   MAIN GRID
   ========================================================= */

.enroll-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(420px, 0.85fr);

    gap: clamp(45px, 6vw, 90px);

    align-items: center;
}


/* =========================================================
   LEFT CONTENT
   ========================================================= */

.enroll-copy {
    max-width: 650px;
}


.enroll-copy .eyebrow {
    display: inline-flex;

    align-items: center;
    gap: 9px;

    margin-bottom: 16px;

    color: #1687d9;

    font-size: 0.78rem;
    font-weight: 800;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}


.enroll-copy .eyebrow::before {
    content: "";

    width: 28px;
    height: 2px;

    border-radius: 10px;

    background: #1687d9;
}


/* =========================================================
   MAIN HEADING
   ========================================================= */

.enroll-copy h1 {
    max-width: 650px;

    margin: 0 0 22px;

    color: #07152f;

    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5vw, 4rem);

    font-weight: 800;

    letter-spacing: -0.035em;
    line-height: 1.08;
}


.text-grad-amber {
    background:
        linear-gradient(
            90deg,
            #1687d9,
            #55c7ff 50%,
            #f5a623
        );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
    color: transparent;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.enroll-copy > p:not(.eyebrow) {
    max-width: 590px;

    margin: 0 0 32px;

    color: #5d6b82;

    font-size: 1rem;
    line-height: 1.85;
}


/* =========================================================
   ENROLL STEPS
   ========================================================= */

.enroll-steps {
    display: flex;
    flex-direction: column;

    gap: 14px;

    margin: 0 0 36px;
    padding: 0;

    list-style: none;
}


.enroll-steps li {
    display: flex;

    align-items: center;
    gap: 14px;

    color: #26364d;

    font-size: 0.95rem;
    font-weight: 600;

    line-height: 1.5;
}


.enroll-steps span {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    flex: 0 0 38px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #1687d9,
            #55c7ff
        );

    color: #ffffff;

    font-size: 0.9rem;
    font-weight: 800;

    box-shadow:
        0 8px 20px rgba(22, 135, 217, 0.20);
}


/* =========================================================
   SUPPORT AREA
   ========================================================= */

.enroll-support {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 12px;
}


.enroll-support p {
    width: 100%;

    margin: 0 0 2px;

    color: #718096;

    font-size: 0.88rem;
    font-weight: 600;
}


/* =========================================================
   FORM WRAPPER
   ========================================================= */

.enroll-form-wrap {
    position: relative;

    width: 100%;

    padding: clamp(26px, 4vw, 38px);

    background:
        rgba(255, 255, 255, 0.96);

    border: 1px solid rgba(7, 21, 47, 0.08);

    border-radius: 24px;

    box-shadow:
        0 25px 70px rgba(7, 21, 47, 0.10),
        0 4px 18px rgba(7, 21, 47, 0.04);
}


.enroll-form-wrap::before {
    content: "";

    position: absolute;

    top: 0;
    left: 32px;
    right: 32px;

    height: 3px;

    border-radius: 0 0 10px 10px;

    background:
        linear-gradient(
            90deg,
            #1687d9,
            #55c7ff,
            #f5a623
        );
}


/* =========================================================
   FORM
   ========================================================= */

.enroll-form {
    display: flex;
    flex-direction: column;

    gap: 19px;
}


/* =========================================================
   FIELD ROW
   ========================================================= */

.field-row {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 16px;
}


/* =========================================================
   LABEL
   ========================================================= */

.enroll-form label {
    display: flex;
    flex-direction: column;

    gap: 7px;

    color: #344054;

    font-size: 0.84rem;
    font-weight: 700;
}


/* =========================================================
   INPUT / SELECT / TEXTAREA
   ========================================================= */

.enroll-form input,
.enroll-form select,
.enroll-form textarea {
    width: 100%;

    padding: 13px 15px;

    border: 1px solid #dce3ec;
    border-radius: 11px;

    background: #ffffff;

    color: #172033;

    font-family: inherit;
    font-size: 0.92rem;

    line-height: 1.5;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}


.enroll-form input::placeholder,
.enroll-form textarea::placeholder {
    color: #9aa5b5;
}


/* =========================================================
   SELECT
   ========================================================= */

.enroll-form select {
    cursor: pointer;

    appearance: auto;
}


/* =========================================================
   TEXTAREA
   ========================================================= */

.enroll-form textarea {
    min-height: 120px;

    resize: vertical;
}


/* =========================================================
   FOCUS
   ========================================================= */

.enroll-form input:focus,
.enroll-form select:focus,
.enroll-form textarea:focus {
    outline: none;

    border-color: #55c7ff;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(85, 199, 255, 0.12);
}


/* =========================================================
   INVALID FIELD
   ========================================================= */

.enroll-form input:invalid:not(:placeholder-shown),
.enroll-form select:invalid:not(:focus) {
    border-color: #dce3ec;
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.enroll-form .btn-block {
    width: 100%;

    min-height: 52px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-top: 3px;
}


.enroll-form .btn-block svg {
    width: 19px;
    height: 19px;

    flex-shrink: 0;

    transition:
        transform 0.25s ease;
}


.enroll-form .btn-block:hover svg {
    transform: translateX(4px);
}


/* =========================================================
   SUCCESS MESSAGE
   ========================================================= */

.form-success {
    display: none;

    margin: 0;

    padding: 12px 14px;

    border: 1px solid rgba(22, 135, 217, 0.16);
    border-radius: 10px;

    background: rgba(22, 135, 217, 0.06);

    color: #1687d9;

    text-align: center;

    font-size: 0.86rem;
    font-weight: 600;

    line-height: 1.6;
}


.form-success.is-visible {
    display: block;

    animation:
        enrollSuccess 0.35s ease;
}


@keyframes enrollSuccess {

    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =========================================================
   TERMS
   ========================================================= */

.form-terms {
    margin: 0;

    color: #8a95a5;

    text-align: center;

    font-size: 0.76rem;

    line-height: 1.6;
}


/* =========================================================
   TABLET / SMALL LAPTOP
   ========================================================= */

@media (max-width: 1100px) {

    .enroll-grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(380px, 0.9fr);

        gap: 45px;
    }

    .enroll-copy h1 {
        font-size: clamp(2.3rem, 5vw, 3.4rem);
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .enroll-section {
        padding-top: calc(var(--nav-h, 80px) + 55px);
        padding-bottom: 70px;
    }

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

        max-width: 760px;

        margin-inline: auto;

        gap: 55px;
    }

    .enroll-copy {
        max-width: 700px;

        margin-inline: auto;

        text-align: center;
    }

    .enroll-copy .eyebrow {
        justify-content: center;
    }

    .enroll-copy .eyebrow::before {
        display: none;
    }

    .enroll-copy h1 {
        max-width: 700px;

        margin-inline: auto;
    }

    .enroll-copy > p:not(.eyebrow) {
        margin-inline: auto;
    }

    .enroll-steps {
        max-width: 500px;

        margin-left: auto;
        margin-right: auto;

        text-align: left;
    }

    .enroll-support {
        justify-content: center;
    }

    .enroll-support p {
        text-align: center;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .enroll-section {
        min-height: auto;

        padding-top: calc(var(--nav-h, 80px) + 40px);
        padding-bottom: 60px;
    }

    .enroll-grid {
        gap: 42px;
    }

    .enroll-copy h1 {
        font-size: clamp(2rem, 8vw, 2.7rem);

        letter-spacing: -0.025em;
    }

    .enroll-copy > p:not(.eyebrow) {
        font-size: 0.94rem;

        line-height: 1.75;
    }

    .enroll-form-wrap {
        padding: 28px 24px;

        border-radius: 20px;
    }

    .enroll-form-wrap::before {
        left: 24px;
        right: 24px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .enroll-section {
        padding-top: calc(var(--nav-h, 80px) + 30px);
        padding-bottom: 50px;
    }

    .enroll-grid {
        gap: 35px;
    }

    .enroll-copy h1 {
        font-size: 2rem;
    }

    .enroll-steps {
        gap: 12px;
    }

    .enroll-steps li {
        align-items: flex-start;

        font-size: 0.9rem;
    }

    .enroll-steps span {
        width: 35px;
        height: 35px;

        flex-basis: 35px;

        border-radius: 10px;
    }

    .enroll-support {
        flex-direction: column;

        align-items: stretch;
    }

    .enroll-support .btn {
        width: 100%;
    }

    .enroll-form-wrap {
        padding: 25px 19px;

        border-radius: 18px;
    }

    .enroll-form-wrap::before {
        left: 19px;
        right: 19px;
    }

    .enroll-form {
        gap: 17px;
    }

    .field-row {
        grid-template-columns: 1fr;

        gap: 17px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 390px) {

    .enroll-section {
        padding-top: calc(var(--nav-h, 80px) + 24px);
        padding-bottom: 40px;
    }

    .enroll-copy h1 {
        font-size: 1.75rem;
    }

    .enroll-copy > p:not(.eyebrow) {
        font-size: 0.9rem;
    }

    .enroll-form-wrap {
        padding: 22px 15px;
    }

    .enroll-form-wrap::before {
        left: 15px;
        right: 15px;
    }

    .enroll-form input,
    .enroll-form select,
    .enroll-form textarea {
        padding: 12px 13px;

        font-size: 0.88rem;
    }

    .enroll-form label {
        font-size: 0.8rem;
    }

    .enroll-form .btn-block {
        min-height: 49px;
    }

}


/* =========================================================
   360px
   ========================================================= */

@media (max-width: 360px) {

    .enroll-copy h1 {
        font-size: 1.6rem;
    }

    .enroll-copy > p:not(.eyebrow) {
        font-size: 0.86rem;
    }

    .enroll-steps li {
        font-size: 0.84rem;
    }

    .enroll-form-wrap {
        padding: 19px 13px;
    }

}


/* =========================================================
   320px
   ========================================================= */

@media (max-width: 320px) {

    .enroll-copy h1 {
        font-size: 1.45rem;
    }

    .enroll-copy .eyebrow {
        font-size: 0.7rem;
    }

    .enroll-copy > p:not(.eyebrow) {
        font-size: 0.82rem;
    }

    .enroll-form-wrap {
        padding: 17px 11px;
    }

    .enroll-form input,
    .enroll-form select,
    .enroll-form textarea {
        padding: 10px 11px;

        font-size: 0.82rem;
    }

    .enroll-form label {
        font-size: 0.76rem;
    }

    .enroll-form .btn-block {
        min-height: 46px;

        font-size: 0.86rem;
    }

    .form-terms {
        font-size: 0.7rem;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .enroll-form input,
    .enroll-form select,
    .enroll-form textarea,
    .enroll-form .btn-block svg,
    .form-success {
        transition: none;
        animation: none;
    }

}