/* ==============================
   LP BANNER SECTION
=================================*/
.lp-header .header-wrap {
    padding: 12px 0;
}

.lp-banner-section {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 10px 80px;
    min-height: clamp(850px, 100vw, 960px);
    display: flex;
    align-items: end;
    justify-content: center;
}

.lp-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0.00) 63.78%);
    z-index: 1;
}

.lp-container {
    position: relative;
    z-index: 2;
    max-width: 1440px;
    width: 100%;
    text-align: center;
}

.lp-heading {
    font-size: clamp(32px, 3vw, 48px);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: clamp(8px, 1.5vw, 12px);
}

.lp-subheading {
    font-size: clamp(16px, 1.5vw, 18px);
    color: #dcdcdc;
    margin-bottom: clamp(32px, 3.25vw, 56px);
}

#main-header.lp-header.is-scrolled.is-collapsed .mg-container .header-wrap {
    padding: 0;
}

/* ==============================
   CONTACT FORM
=================================*/
.lp-form-wrapper {
    display: inline-flex;
    justify-content: center;
}

.lp-form-wrapper form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 90%;
    margin: 0 auto;
}

.lp-form-wrapper input[type="text"],
.lp-form-wrapper input[type="email"],
.lp-form-wrapper input[type="tel"],
.lp-form-wrapper select {
    background-color: #343434 !important;
    border: 1px solid #6C6C6C;
    padding: 12px 16px;
    color: #ffffff;
    border-radius: 4px;

}

.lp-form-wrapper input[type="tel"] {
    background-image: url("https://electres.com/wp-content/uploads/2026/02/flagsvg.svg");
    background-repeat: no-repeat;
    background-position: 14px center;
    background-size: 22px;
    padding-left: 48px;
}

.lp-form-wrapper input[type="text"]::placeholder,
.lp-form-wrapper input[type="email"]::placeholder,
.lp-form-wrapper input[type="tel"]::placeholder,
.lp-form-wrapper select::placeholder {
    color: #828282;
}

.lp-form-wrapper input[type="text"]:focus,
.lp-form-wrapper input[type="email"]:focus,
.lp-form-wrapper input[type="tel"]:focus,
.lp-form-wrapper select:focus {
    outline: none;
    border-color: #dddddd;
    color: #ffffff;
}


/* ==============================
   FEATURES
=================================*/
.lp-features {
    display: flex;
    justify-content: center;
    gap: clamp(12px, 1.25vw, 40px);
    flex-wrap: wrap;
    max-width: 90%;
    margin: 0 auto;
    margin-top: 20px;
}

.lp-feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 14px;
}

.lp-feature-item img {
    width: 20px;
    height: 20px;
    aspect-ratio: 1 / 1;
}

.lp-feature-item span {
    color: var(--White, #FFF);
    font-size: clamp(12px, 1.5vw, 16px);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.feature-divider {
    background: #3B3B3B;
    width: 1px;
}

/* ==============================
   RESPONSIVE
=================================*/
@media (max-width: 768px) {

    .lp-form-wrapper form {
        flex-direction: column;
        width: 100%;
    }

    .lp-form-wrapper input,
    .lp-form-wrapper select {
        width: 100%;
    }

    .lp-features {
        gap: 8px;
    }

    .lp-form-wrapper form {
        max-width: 100%;
    }

    .lp-banner-section {
        padding: 80px 10px 80px;
        min-height: clamp(550px, 100vw, 650px);

    }

    .lp-container {
        text-align: left;
        border-radius: 4px;
        border: 1px solid #000;
        background: rgb(0, 0, 0);
        padding: 10px;
        display: flex;
        padding-top: 24px;
        padding-bottom: 24px;
        flex-direction: column;
        justify-content: flex-end;
        align-items: center;
        position: absolute;
        bottom: -350px;
        width: 98%;
        row-gap: 32px;

    }

    .landing-pages .energy-storage-wrapper {
        padding-top: 350px;
    }

    .lp-form-wrapper .wpcf7 {
        width: 100%;
    }

    .lp-form-wrapper {
        display: inline-flex;
        justify-content: center;
        width: 100%;
    }

    .lp-subheading {
        margin-bottom: 0;
    }

    .lp-overlay {
        background: linear-gradient(0deg, #ffffff 0%, #ffffff1a 37%, rgba(0, 0, 0, 0.00) 80.78%);
    }
}


/* FORM ROW */
.lp-form-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 15px;
    align-items: center;
}

/* FORM GROUP */
.lp-form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 14px 16px;
    border-radius: 8px;
    color: #ffffff;
    font-size: 14px;
}

.lp-form-group input::placeholder {
    color: #cccccc;
}

.lp-form-group input:focus {
    outline: none;
    border-color: #ff2c2c;
}

/* SUBMIT BUTTON */
.lp-submit-group input[type="submit"] {
    background: transparent !important;
    border: none;
    padding: 12px 28px 12px 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s ease;
    white-space: nowrap;
    display: flex;
    min-width: 160px;
    justify-content: center;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 500;
}

.lp-submit-group input[type="submit"]:hover {
    background: #e60000;
}

.lp-submit-group {
    position: relative;
    display: inline-block;
}

.lp-submit-group {
    position: relative;

}

.lp-submit-group::after {
    content: "";
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M18 8L22 12L18 16' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M2 12H22' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    transition: transform 0.3s ease;
    z-index: 99;
}



.lp-submit-group:hover::after {
    transform: translateY(-50%) translateX(2px);
}

.landing-pages .energy-storage-wrapper .energy_section {
    padding-top: 60px;
}

/* ==============================
   LP FORM RESPONSE OVERLAY
=================================*/

.lp-form-wrapper .wpcf7 form .wpcf7-response-output {
    position: absolute;
    inset: 0;
    margin: 0 !important;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 20px;
    border-radius: 16px;

    font-size: clamp(16px, 1.1vw, 18px);
    font-weight: 500;
    text-align: center;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    z-index: 20;
    top: 50%;
    left: 50%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s ease;
    width: 100%;
    max-width: 100%;
    min-height: 200px;
}

/* When form has response */
.lp-form-wrapper .wpcf7 form.sent .wpcf7-response-output,
.lp-form-wrapper .wpcf7 form.failed .wpcf7-response-output,
.lp-form-wrapper .wpcf7 form.invalid .wpcf7-response-output {
    opacity: 1;
    visibility: visible;

}

/* ==============================
   ICON
=================================*/

.lp-form-wrapper .wpcf7 form .wpcf7-response-output::before {
    content: '';
    width: 50px;
    height: 50px;
    margin-bottom: 18px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* ==============================
   SUCCESS STATE
=================================*/

.lp-form-wrapper .wpcf7 form.sent .wpcf7-response-output {
    background: linear-gradient(135deg,
            rgba(52, 211, 153, 0.15),
            rgba(0, 0, 0, 0.95));
    color: #ffffff;
    border: 1px solid rgba(52, 211, 153, 0.35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.lp-form-wrapper .wpcf7 form.sent .wpcf7-response-output::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2334d399' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E");
}

/* ==============================
   ERROR STATE
=================================*/

.lp-form-wrapper .wpcf7 form.failed .wpcf7-response-output,
.lp-form-wrapper .wpcf7 form.invalid .wpcf7-response-output {
    background: linear-gradient(135deg,
            rgba(239, 68, 68, 0.15),
            rgba(0, 0, 0, 0.95));
    color: #ffd1d1;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.lp-form-wrapper .wpcf7 form.failed .wpcf7-response-output::before,
.lp-form-wrapper .wpcf7 form.invalid .wpcf7-response-output::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ef4444' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E");
}


/* =========================================
   LP SUBMIT BUTTON - NO ARROW VERSION
========================================= */

.lp-form-wrapper .lp-submit-group {
    position: relative;
    display: inline-block;

    background-color: #E21E31;
    border: none;

    border-radius: 40px;

    color: #ffffff;
    font-size: 15px;
    font-weight: 500;

    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    max-width: 160px;
}

/* Hover Effect */
.lp-form-wrapper .lp-submit-group:hover {
    background-color: #E21E31;
    transform: translateY(-1px);
}

/* =========================================
   PREMIUM LOADER
========================================= */

.lp-form-wrapper .wpcf7-spinner {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    margin: 0;
    opacity: 0;
}

/* Custom circular spinner */
.lp-form-wrapper .wpcf7-spinner::before {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    display: block;
    animation: lpSpin 0.7s linear infinite;
}

/* Spinner Animation */
@keyframes lpSpin {
    100% {
        transform: rotate(360deg);
    }
}

/* =========================================
   SUBMITTING STATE
========================================= */

.lp-form-wrapper form.submitting .wpcf7-submit {
    pointer-events: none;
}

.lp-form-wrapper form.submitting .wpcf7-spinner {
    opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .lp-form-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .lp-form-group.lp-submit-group {
        grid-column: 1 / -1;
        position: relative;
        margin-top: 16px;
    }
}

@media (max-width: 768px) {

    .landing-pages .energy-storage-wrapper .energy_section {
        padding-top: 40px;
    }

    .lp-submit-group input[type="submit"] {
        width: 100%;
    }
}

@media (max-width: 480px) {

    .lp-form-row {
        grid-template-columns: 1fr;
    }

    .lp-feature-item img {
        width: 16px;
        height: 16px;
    }

    .lp-container {
        bottom: -550px;
    }

    .landing-pages .energy-storage-wrapper {
        padding-top: 550px;
    }

    .lp-form-wrapper .lp-submit-group {
        max-width: 100%;
    }

    .lp-submit-group::after {
        right: 35%;
    }

}