/* ── Service Lead Form – Banner Layout ───────── */

.slf-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    border-radius: 16px;
    overflow: hidden;
    min-height: 340px;
    background-image:
        linear-gradient(110deg, rgba(98,58,183,0.82) 10%, rgba(37,99,235,0.75) 100%),
        url('https://wiperindia.com/wp-content/uploads/2023/04/pexels-philippe-donn-1169754.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 0 0 4px rgba(120,100,255,0.18), 0 8px 40px rgba(30,50,150,0.18);
}

/* ── Left text panel ── */
.slf-left {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 36px 40px 44px;
}

.slf-tagline {
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    line-height: 1.5;
    margin: 0 0 20px;
    max-width: 400px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.5), 0 2px 12px rgba(0,0,0,0.3);
}

.slf-sub {
    font-size: 16px;
    color: rgba(255,255,255,0.88);
    margin: 0;
    line-height: 1.5;
    text-shadow: 0 1px 5px rgba(0,0,0,0.45);
}

/* ── Right form card ── */
.slf-card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 16px;
    padding: 28px 28px 24px;
    margin: 24px 24px 24px 0;
    width: 380px;
    flex-shrink: 0;
    box-shadow: 0 4px 32px rgba(0,0,0,0.22);
    align-self: center;
    box-sizing: border-box;
}

/* ── Fields ── */
.slf-field {
    position: relative;
    margin-bottom: 12px;
}

.slf-field:last-child {
    margin-bottom: 0;
}

.slf-form input[type="text"],
.slf-form input[type="tel"],
.slf-form select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1.5px solid #d0d5dd;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    box-sizing: border-box;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.18s;
    font-family: inherit;
}

.slf-form input[type="text"]::placeholder,
.slf-form input[type="tel"]::placeholder {
    color: #9ca3af;
}

.slf-form select {
    color: #9ca3af;
    cursor: pointer;
    padding-right: 36px;
}

.slf-form select.slf-has-value {
    color: #333;
}

.slf-form input:focus,
.slf-form select:focus {
    border-color: #3b5bdb;
    box-shadow: 0 0 0 3px rgba(59,91,219,0.12);
}

/* ── Dropdown arrow ── */
.slf-select-arrow {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #555;
    font-size: 10px;
    pointer-events: none;
}

/* ── Submit button ── */
.slf-btn {
    display: block;
    width: 100%;
    height: 52px;
    background: #2d4abf;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.4px;
    cursor: pointer;
    transition: background 0.18s, transform 0.1s;
    font-family: inherit;
}

.slf-btn:hover  { background: #1e3aa8; }
.slf-btn:active { transform: scale(0.98); }
.slf-btn:disabled { opacity: 0.65; cursor: not-allowed; }

/* ── Response messages ── */
.slf-response {
    margin-top: 10px;
    font-size: 13px;
    text-align: center;
    min-height: 16px;
}
.slf-response--success { color: #15803d; }
.slf-response--error   { color: #b91c1c; }

/* ── Non-AJAX notice ── */
.slf-notice {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
}
.slf-notice--success { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.slf-notice--error   { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }

/* ── Responsive ── */
@media (max-width: 720px) {
    .slf-wrap {
        flex-direction: column;
        align-items: stretch;
    }
    .slf-left {
        padding: 32px 24px 20px;
    }
    .slf-card {
        margin: 0 16px 24px;
        width: auto;
    }
}

/* ── Mobile fixes: text visibility + layout ── */
@media (max-width: 720px) {
    .slf-wrap {
        flex-direction: column !important;
        align-items: stretch !important;
        border-radius: 12px;
    }

    .slf-left {
        padding: 28px 22px 16px !important;
        background: rgba(0, 0, 0, 0.12);
    }

    .slf-tagline {
        font-size: 17px !important;
        color: #ffffff !important;
        text-shadow: 0 2px 8px rgba(0,0,0,0.7), 0 0 24px rgba(0,0,0,0.5) !important;
        font-weight: 700 !important;
        max-width: 100% !important;
        margin-bottom: 10px !important;
        -webkit-text-stroke: 0.2px rgba(255,255,255,0.5);
    }

    .slf-sub {
        font-size: 14px !important;
        color: #ffffff !important;
        text-shadow: 0 2px 6px rgba(0,0,0,0.65) !important;
        font-weight: 600 !important;
    }

    .slf-card {
        margin: 0 14px 20px !important;
        width: auto !important;
        border-radius: 12px !important;
        padding: 22px 18px 18px !important;
    }
}

/* ── Form-only shortcode (no banner) ── */
.slf-only-wrap {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

.slf-only-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 28px 24px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.10);
    border: 1.5px solid #e8eaf0;
    box-sizing: border-box;
}

.slf-only-card .slf-form input[type="text"],
.slf-only-card .slf-form input[type="tel"],
.slf-only-card .slf-form select {
    border-color: #d0d5dd;
}

@media (max-width: 520px) {
    .slf-only-card {
        padding: 22px 16px 18px;
    }
}
