@import "../_variables.css";

.newsletter-section {
    width: 100%;
    background-color: #f7f7f7;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 4.308rem; /* 56px / 13 */
}

.newsletter-wrapper {
    width: 100%;
    height: 38.923rem; /* 506px / 13 */
    position: relative;
    display: flex;
}

.newsletter-wrapper .left {
    flex: 1 1 auto;
    height: 100%;
    background-size: cover;
    background-position: top center;
    border-top-left-radius: 1.846rem; /* 24px / 13 */
    border-bottom-left-radius: 1.846rem; /* 24px / 13 */
    z-index: 0;
    flex-shrink: 0;
}

.newsletter-wrapper .right {
    flex-shrink: 1;
    width: 100%;
    max-width: 38.846rem; /* 505px / 13 */
    height: 100%;
    padding: 3.077rem; /* 40px / 13 */
    background: linear-gradient(252.65deg, #E5052C 8.18%, #250E45 91.82%);
    border-radius: 1.846rem; /* 24px / 13 */
    margin-left: -1.846rem; /* 24px / 13 */
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2.462rem; /* 32px / 13 */
    color: white;
    box-sizing: border-box;
}

.newsletter-heading {
    display: flex;
    flex-direction: column;
    gap: 0.462rem; /* 6px / 13 */
}

.newsletter-wrapper .title {
    font-size: var(--font-size-28);
    font-weight: 600;
    color: white;
}

.newsletter-wrapper .subtitle {
    font-size: 1.077rem; /* 14px / 13 */
    margin-top: 0.462rem; /* 6px / 13 */
    margin-bottom: 0;
    opacity: 0.8;
}

.newsletter-form {
    .uk-form-label {
        color: white;
        font-size: var(--font-size-16);
        opacity: 0.9;
        margin-bottom: 0.308rem; /* 4px / 13 */
        display: inline-block;
    }

    .form-input-icon {
        position: relative;
    }

    .form-input-icon .uk-input {
        height: 3.385rem;
        border-radius: 0.769rem; /* 10px / 13 */
        padding-left: 3.077rem !important; /* 40px / 13 */
        background-color: rgba(255, 255, 255, 0.1);
        border: 0.077rem solid rgba(255, 255, 255, 0.3); /* 1px / 13 */
        color: rgba(156, 163, 175, 1);
        font-size: 1.077rem; /* 14px / 13 */
    }

    .form-input-icon {
        svg, path {
            fill: rgba(156, 163, 175, 1) !important;
        }
    }
}

.newsletter-button {
    padding: 0.462rem 1.538rem; /* 6px / 13, 20px / 13 */
    font-weight: 600;
    font-size: var(--font-size-16);
    margin-top: 1.231rem; /* 16px / 13 */
}

@media (max-width: 960px) {
    .newsletter-wrapper {
        flex-direction: column;
        height: auto;
    }

    .newsletter-wrapper .left,
    .newsletter-wrapper .right {
        width: 100%;
        max-width: none;
        border-radius: 1.846rem; /* 24px / 13 */
        margin-left: 0;
    }

    .newsletter-wrapper .left {
        min-height: 23.077rem; /* 300px / 13 */
        margin-bottom: 1.538rem; /* 20px / 13 */
    }

    .newsletter-wrapper .right {
        padding: 1.538rem; /* 20px / 13 */
        gap: 1.231rem; /* 16px / 13 */
        min-height: auto;
    }
}

@media (max-width: 600px) {
    .newsletter-wrapper .right {
        padding: 1.231rem; /* 16px / 13 */
    }

    .newsletter-wrapper .title {
        font-size: 1.538rem; /* 20px / 13 */
    }

    .newsletter-wrapper .subtitle {
        font-size: 1rem; /* 13px / 13 */
    }

    .newsletter-button {
        padding: 0.769rem; /* 10px / 13 */
    }
}