/*---- SlateOS Form ----*/

.slateos-form {
    margin-bottom: 100px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.slateos-form .wpcf7 {
    width: 100%;
    max-width: 600px;
}

/* Subscribe Pill Desktop */
.slateos-form .subscribe {
    display: flex;
    position: relative;
    align-items: center;
    width: 100%;
    border-radius: 100px;
    border: 1px solid transparent;
    background: linear-gradient(96deg, rgba(255, 255, 255, 0.08) 2.75%, rgba(255, 255, 255, 0.02) 75.98%);
}

.slateos-form .subscribe::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.10) 45%, rgba(255, 255, 255, 0.10) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.slateos-form .subscribe::after {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    z-index: 2;
    background: linear-gradient(90deg, rgba(217, 189, 143, 0.00) 0%, rgba(217, 189, 143, 0.90) 50%, rgba(217, 189, 143, 0.00) 100%);
    pointer-events: none;
}

.slateos-form .wpcf7-form-control-wrap {
    flex: 1;
    display: block;
}

/* Email Input */
.slateos-form .subscribe .wpcf7-form-control.wpcf7-email {
    background: linear-gradient(96deg, var(--color-white-8, rgba(255, 255, 255, 0.08)) 2.75%, var(--color-white-2, rgba(255, 255, 255, 0.02)) 75.98%);
    height: 52px;
    color: var(--color-text);
    font-size: var(--fs-18);
    font-weight: 400;
    padding: 10px 190px 12px 24px;
}

.slateos-form .subscribe .wpcf7-form-control.wpcf7-email::placeholder {
    color: #8A8A8A;
}

.slateos-form .subscribe .wpcf7-spinner {
    right: 80px;
}

.slateos-form .subscribe input.wpcf7-form-control.url-website {
    background-color: transparent;
    border-radius: 30px;
    padding-right: 180px;
    width: 100%;
    height: 54px;
    color: #fff;
}

/* Yellow Button */
.slateos-form input[type="submit"] {
    top: 6px;
    right: 6px;
    z-index: 0;
}

/* Autofill Styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill {
    -webkit-text-fill-color: #ffffff;
    -webkit-box-shadow: 0 0 0 1000px #161616 inset;
    box-shadow: 0 0 0 1000px #161616 inset;
    transition: background-color 5000s ease-in-out 0s;
    caret-color: #ffffff;
}

/* Error Message Styling (CF7) */
.slateos-form .wpcf7-not-valid-tip {
    color: #ff4d4d;
    font-size: var(--fs-14);
    margin-top: 5px;
    position: absolute;
    bottom: -25px;
    left: 20px;
}

.slateos-form .wpcf7-response-output {
    margin-top: 30px;
    padding: 15px;
    border-radius: 10px;
    font-size: var(--fs-14);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.slateos-form .wpcf7 form.invalid .wpcf7-response-output {
    border-color: #ff4d4d;
    color: #ff4d4d;
}

.slateos-form .wpcf7 form.sent .wpcf7-response-output {
    border-color: #4CAF50;
    color: #4CAF50;
}

/* Free SEO Audit Tool */
section.roaspage-template.free-seo-audit-tool .banner-into {
    max-width: clamp(480px, 60vw, 960px);
}

section.roaspage-template.free-seo-audit-tool .banner-form {
    margin-bottom: 20px;
}

.gap-5 {
    gap: 20px;
}

/* Desktop */
@media (min-width: 992px) {
    .slateos-form .subscribe {
        min-width: 700px;
    }
}

/* Tablet / Small Laptop */
@media (min-width: 900px) {
    .slateos-form {
        margin-bottom: 100px;
    }

    .slateos-form .subscribe input.wpcf7-form-control.url-website {
        padding-right: 180px;
    }
}

@media (max-width: 1024px) {
    .logos-slider-choice {
        overflow: hidden;
    }

    .logos-slider-choice .swiper-wrapper {
        flex-wrap: nowrap;
        justify-content: flex-start;
        transform: none !important;
        transition: none !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
    }

    .logos-slider-choice .swiper-slide {
        flex-shrink: 0;
    }

}

/* Mobile */
@media (max-width: 767px) {
    .slateos-form .subscribe {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 15px;
    }

    .slateos-form .wpcf7-form-control-wrap {
        width: 100%;
    }

    .slateos-form input[type="email"] {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 100px;
        padding: 20px 24px;
    }

    .slateos-form .wpcf7-not-valid-tip {
        bottom: -20px;
        left: 24px;
    }

    .slateos-form {
        margin-bottom: 60px;
    }

    .slateos-form .subscribe .wpcf7-form-control.wpcf7-email {
        padding: 10px 140px 12px 24px;
    }

    .slateos-form input[type="submit"] {
        padding: 6px 16px 8px;
    }

    .slateos-form {
        margin-bottom: 120px;
    }
}