@use "../abstracts/variables"as vars;

/* ===========================
   Enroll Form 1 (CTA Bar)
   =========================== */
.enroll-form1 {
    background-color: vars.$color-white;

    &__wrap {
        background-color: #0073E6;
        border-radius: vars.rem(20);
        padding: vars.rem(60) vars.rem(50);
        position: relative;
        overflow: visible; // To allow the button shadow/effect if needed

        @media (max-width: 991px) {
            padding: vars.rem(45) vars.rem(30);
        }
    }

    &__title {
        color: vars.$color-white;
        font-size: clamp(vars.rem(28), 5vw, vars.rem(44));
        font-weight: 800;
        text-align: center;
        margin-bottom: vars.rem(50);
        line-height: 1.1;

        @media (max-width: 991px) {
            margin-bottom: vars.rem(30);
        }

    }

    &__form {
        position: relative;
    }

    &__form-inner {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: vars.rem(24);
        align-items: flex-end;
    }

    &__field {
        width: 100%;

        @media (min-width: 768px) {
            width: calc(50% - vars.rem(12));
        }

        @media (min-width: 1200px) {
            width: calc(20.2% - vars.rem(19.2));
        }

        margin-bottom: 0; // Removing margin-bottom as gap handles it

        label {
            display: block;
            color: vars.$color-white;
            font-size: vars.rem(18);
            font-weight: 700;
            margin-bottom: vars.rem(18);
            letter-spacing: -0.01em;

            @media (max-width: 1399px) {
                font-size: vars.rem(14);
                margin-bottom: vars.rem(10);
            }
        }

        input,
        select {
            width: 100%;
            background-color: rgba(255, 255, 255, 0.2);
            border: none;
            border-radius: vars.rem(10);
            padding: vars.rem(18) vars.rem(25);
            color: vars.$color-white;
            font-size: vars.rem(14);
            font-weight: 700;
            outline: none;
            transition: all 0.3s ease;

            @media (max-width: 1399px) {
                font-size: vars.rem(12);
                padding: vars.rem(12) vars.rem(15);
            }

            &::placeholder {
                color: rgba(255, 255, 255, 0.7);
                text-transform: uppercase;
                letter-spacing: 0.1em;
            }

            &:focus {
                background-color: rgba(255, 255, 255, 0.3);
            }
        }

        select {
            appearance: none;
            cursor: pointer;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right vars.rem(25) center;

            option {
                background-color: vars.$color-primary;
                color: vars.$color-black;
            }
        }
    }

    &__btn-wrap {
        width: 100%;

        @media (min-width: 768px) {
            width: calc(50% - vars.rem(12));
        }

        @media (min-width: 1200px) {
            width: calc(18.5% - vars.rem(19.2));
        }
    }
}