@use "../abstracts" as vars;

.cta1 {
    display: block;
    position: relative;
    z-index: 10;
    background: vars.$color-white;

    &__card {
        position: relative;
        border-radius: vars.rem(30);
        overflow: visible;
        margin-bottom: vars.rem(30);
        height: 100%;
        min-height: vars.rem(350);

        @media (min-width: 992px) {
            margin-bottom: 0;
        }

        &-thumb {
            width: 100%;
            height: 100%;
            border-radius: vars.rem(30);
            overflow: hidden;

            img {
                height: 100%;
                object-fit: cover;
                display: block;
            }
        }

        &-overlay {
            position: absolute;
            top: 50%;
            right: vars.rem(0);
            transform: translateY(-50%);
            background: vars.$color-white;
            border: 1px solid #0073E6;
            border-radius: vars.rem(20);
            padding: vars.rem(30) vars.rem(25);
            width: 80%;
            max-width: vars.rem(380);
            z-index: 5;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);

            @media (max-width: 767px) {
                position: absolute;
                top: 50%;
                left: 2.5%;
                right: auto;
                transform: translateY(-50%);
                width: 100%;
                margin-top: vars.rem(-80);
                margin-left: auto;
                margin-right: auto;
                max-width: 95%;
                padding: vars.rem(20) vars.rem(15);
            }

            .card-icon {
                position: absolute;
                top: vars.rem(30);
                right: vars.rem(25);
                width: vars.rem(70);
                height: vars.rem(70);
                background: #2b2a36;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;

                @media (max-width: 767px) {
                    width: vars.rem(50);
                    height: vars.rem(50);
                    top: vars.rem(5);
                    right: vars.rem(5);
                }

                img {
                    width: vars.rem(35);
                    height: vars.rem(35);
                    object-fit: contain;
                }
            }

            .card-title {
                font-size: vars.rem(24);
                font-weight: 700;
                color: vars.$color-heading;
                margin-bottom: vars.rem(10);
                max-width: 60%;
                line-height: 1.2;

                @media (max-width: 767px) {
                    max-width: 100%;
                    font-size: vars.rem(20);
                }
            }

            .card-subtitle {
                font-size: vars.rem(15);
                color: vars.$color-text2;
                margin-bottom: vars.rem(30);
                display: block;
            }

            .card-form,
            .card-download {
                position: relative;
                background: #f1f6ff;
                border-radius: vars.rem(40);
                display: flex;
                align-items: center;
                padding: vars.rem(5);

                input {
                    background: transparent;
                    border: none;
                    padding: vars.rem(15) vars.rem(25);
                    width: 100%;
                    font-size: vars.rem(14);
                    font-weight: 600;
                    color: vars.$color-heading;
                    outline: none;

                    &::placeholder {
                        color: vars.$color-text2;
                        text-transform: uppercase;
                        letter-spacing: 1px;
                    }
                }

                .download-label {
                    padding: vars.rem(15) vars.rem(25);
                    font-size: vars.rem(14);
                    font-weight: 600;
                    color: vars.$color-heading;
                    text-transform: uppercase;
                    letter-spacing: 1px;
                    flex-grow: 1;

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

                .submit-btn,
                .download-btn {
                    width: vars.rem(50);
                    height: vars.rem(50);
                    background: #0073E6;
                    color: vars.$color-white;
                    border-radius: 50%;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    border: none;
                    transition: all 0.3s;
                    flex-shrink: 0;

                    &:hover {
                        background: vars.$color-heading;
                        transform: scale(1.05);
                    }
                }
            }
        }
    }
}