/*
 * Alta Window and Door
 * Homepage Hero Slider
 */

.alta-hero-slider {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: none;
    margin-left: 0;
    min-height: 760px;
    overflow: hidden;
    background: #243c4c;
    color: #ffffff;
}

.alta-hero-backgrounds,
.alta-hero-overlay,
.alta-hero-slide {
    position: absolute;
    inset: 0;
}

.alta-hero-backgrounds {
    z-index: -2;
}

.alta-hero-slide {
    opacity: 0;
    background-size: cover;
    background-position: center;
    transition: opacity 1.2s ease-in-out;
}

.alta-hero-slide.is-active {
    opacity: 1;
}

.alta-hero-windows {
    background-image: url('../images/alta-replacement-windows-hero.webp');
}

.alta-hero-doors {
    background-image: url('../images/alta-exterior-doors-hero.webp');
}

.alta-hero-siding {
    background-image: url('../images/alta-siding-hero.webp');
}

.alta-hero-overlay {
    z-index: -1;
    background: linear-gradient(
        90deg,
        rgba(9, 22, 34, 0.73) 0%,
        rgba(9, 22, 34, 0.39) 52%,
        rgba(9, 22, 34, 0.48) 100%
    );
}

.alta-hero-content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    align-items: end;
    gap: clamp(30px, 5vw, 90px);
    width: min(1320px, 92%);
    margin: 0 auto;
    padding: 90px 0 110px;
}

.alta-hero-promo {
    max-width: 650px;
}

.alta-hero-eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    color: #f1c38b;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}

.alta-hero-promo h1 {
    margin: 0 0 24px;
    color: #ffffff;
    font-size: clamp(38px, 4.5vw, 66px);
    font-weight: 750;
    line-height: 1.12;
    letter-spacing: -1.5px;
}

.alta-hero-promo p {
    max-width: 560px;
    margin-bottom: 28px;
    color: #ffffff;
    font-size: 19px;
    line-height: 1.65;
}

.alta-hero-form {
    color: #17232d;
    background: rgba(255, 255, 255, 0.97);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.18);
}

.alta-hero-form h2 {
    margin: 0 0 10px;
    color: #17232d;
    font-size: 28px;
    line-height: 1.2;
}

.alta-hero-form > p {
    margin: 0 0 20px;
    color: #475569;
    font-size: 15px;
}



/* Homepage estimate form — Forminator 23 */

.alta-hero-form {
    background: #ffffff;
    border: 1px solid #dce5eb;
    border-top: 5px solid #b77b46;
    border-radius: 10px;
    padding: 26px 30px;
    box-shadow: 0 16px 45px rgba(10,25,40,.20);
}

.alta-hero-form h2 {
    color: #173c5b;
    font-size: 30px;
    font-weight: 750;
    line-height: 1.2;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #b77b46;
}

.alta-hero-form #forminator-module-23 {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.alta-hero-form #forminator-module-23 .forminator-row {
    margin-bottom: 8px;
}

.alta-hero-form #forminator-module-23 .forminator-field-name .forminator-row,
.alta-hero-form #forminator-module-23 .forminator-field-name .forminator-col,
.alta-hero-form #forminator-module-23 .forminator-field-name .forminator-field {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.alta-hero-form #forminator-module-23 textarea.forminator-textarea {
    --forminator-textarea-min-height: 55px !important;
    min-height: 55px !important;
    height: 55px !important;
    resize: vertical;
}

.alta-hero-form #forminator-module-23 .forminator-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #173c5b;
}

.alta-hero-form #forminator-module-23 input.forminator-input,
.alta-hero-form #forminator-module-23 select.forminator-select,
.alta-hero-form #forminator-module-23 textarea.forminator-textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 42px;
    padding: 9px 12px;
    border: 1px solid #cbd9e3;
    border-radius: 5px;
    background: #f4f8fb;
    color: #173c5b;
    font-size: 15px;
}

.alta-hero-form #forminator-module-23 input:focus,
.alta-hero-form #forminator-module-23 select:focus,
.alta-hero-form #forminator-module-23 textarea:focus {
    outline: 2px solid #b77b46;
    outline-offset: 1px;
}

.alta-hero-form #forminator-module-23 .forminator-button-submit {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 13px 20px;
    border: 0;
    border-radius: 5px;
    background: #b77b46;
    color: #ffffff;
    font-size: 17px;
    font-weight: 750;
    cursor: pointer;
    transition: background-color .2s ease;
}

.alta-hero-form #forminator-module-23 .forminator-button-submit:hover {
    background: #92592f;
    color: #ffffff;
}

.alta-hero-form #forminator-module-23 .forminator-button-submit:focus-visible {
    outline: 3px solid #173c5b;
    outline-offset: 3px;
}

/* Forminator custom dropdown — scope strictly to homepage form. */
.alta-hero-form #forminator-module-23 .select2-selection,
.alta-hero-form #forminator-module-23 .forminator-select2-selection,
.alta-hero-form #forminator-module-23 .forminator-select2-selection--single {
    background: #f4f8fb !important;
    border: 1px solid #cbd9e3 !important;
    border-radius: 5px !important;
    color: #173c5b !important;
}

.alta-hero-form #forminator-module-23 .select2-selection__rendered,
.alta-hero-form #forminator-module-23 .forminator-select2-selection__rendered {
    color: #173c5b !important;
}

.alta-hero-controls {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.alta-hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
}

.alta-hero-dot[aria-current="true"] {
    background: #ffffff;
}

.alta-hero-pause {
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,.8);
    background: rgba(0,0,0,.3);
    color: #ffffff;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.alta-hero-controls button:focus-visible {
    outline: 3px solid #ffffff;
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .alta-hero-content {
        grid-template-columns: 1fr;
        width: min(680px, 92%);
        padding: 65px 0 95px;
    }

    .alta-hero-promo {
        max-width: none;
    }
}

@media (max-width: 600px) {
    .alta-hero-promo h1 {
        font-size: 38px;
    }

    .alta-hero-promo p {
        font-size: 16px;
    }

    .alta-hero-form {
        padding: 22px 16px;
    }

    .alta-hero-form h2 {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .alta-hero-slide {
        transition: none;
    }
}

/* Homepage hero form dropdown panel */
.alta-hero-form #forminator-module-23 .select2-dropdown,
.alta-hero-form #forminator-module-23 .select2-results,
.alta-hero-form #forminator-module-23 .select2-results__options {
    background: #f4f8fb !important;
    border-color: #cbd9e3 !important;
}

.alta-hero-form #forminator-module-23 .select2-results__option {
    background: #f4f8fb !important;
    color: #173c5b !important;
    padding: 12px 14px !important;
}

.alta-hero-form #forminator-module-23 .select2-results__option--highlighted,
.alta-hero-form #forminator-module-23 .select2-results__option--highlighted[aria-selected] {
    background: #e8f1f8 !important;
    color: #173c5b !important;
}

.alta-hero-form #forminator-module-23 .select2-results__option[aria-selected="true"] {
    background: #dfeef8 !important;
    color: #173c5b !important;
}

/* Homepage hero form dropdown panel */
.alta-hero-form #forminator-module-23 .select2-dropdown,
.alta-hero-form #forminator-module-23 .select2-results,
.alta-hero-form #forminator-module-23 .select2-results__options {
    background: #f4f8fb !important;
    border-color: #cbd9e3 !important;
}

.alta-hero-form #forminator-module-23 .select2-results__option {
    background: #f4f8fb !important;
    color: #173c5b !important;
    padding: 12px 14px !important;
}

.alta-hero-form #forminator-module-23 .select2-results__option--highlighted,
.alta-hero-form #forminator-module-23 .select2-results__option--highlighted[aria-selected] {
    background: #e8f1f8 !important;
    color: #173c5b !important;
}

.alta-hero-form #forminator-module-23 .select2-results__option[aria-selected="true"] {
    background: #dfeef8 !important;
    color: #173c5b !important;
}

/* Alta homepage Form 23 dropdown — rendered outside the form */

.forminator-select-dropdown.forminator-custom-form-23 {
    background-color: #f4f8fb !important;
    border-color: #cbd9e3 !important;
}

.forminator-select-dropdown.forminator-custom-form-23
.select2-results__option {
    background-color: #f4f8fb !important;
    color: #173c5b !important;
}

.forminator-select-dropdown.forminator-custom-form-23
.select2-results__option--highlighted {
    background-color: #e8f1f8 !important;
    color: #173c5b !important;
}

.forminator-select-dropdown.forminator-custom-form-23
.select2-results__option[aria-selected="true"] {
    background-color: #dcebf6 !important;
    color: #173c5b !important;
}


/* BEGIN ALTA REBATE DESIGN */

.alta-rebate-promo {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 560px;
    margin-top: 28px;
    border: 3px solid #bf7b36;
    border-radius: 15px;
    background: linear-gradient(
        145deg,
        #123e62 0%,
        #092943 70%,
        #071f34 100%
    );
    color: #ffffff;
    box-shadow: 0 16px 38px rgba(0,0,0,.32);
    text-align: center;
}

/* Bronze November ribbon */

.alta-rebate-ribbon {
    position: relative;
    width: calc(100% - 55px);
    margin: -18px auto 8px;
    padding: 10px 12px;
    background: linear-gradient(
        120deg,
        #a45c16,
        #dc9646,
        #a45c16
    );
    color: #ffffff;
    border-radius: 5px;
    font-size: clamp(17px, 1.8vw, 23px);
    font-weight: 800;
    font-style: italic;
    line-height: 1.2;
    letter-spacing: .6px;
    text-transform: uppercase;
    box-shadow: 0 5px 12px rgba(0,0,0,.22);
}

.alta-rebate-main {
    padding: 14px 18px 12px;
}

.alta-rebate-offer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.alta-rebate-value {
    color: #ffffff;
    font-size: clamp(54px, 5vw, 86px);
    font-weight: 850;
    line-height: 1;
    letter-spacing: -3px;
    text-shadow: 0 4px 9px rgba(0,0,0,.2);
}

.alta-rebate-description {
    color: #ffffff;
    font-size: clamp(19px, 2vw, 29px);
    font-weight: 850;
    font-style: italic;
    line-height: 1.08;
    text-align: left;
}

.alta-rebate-unit {
    display: inline-block;
    margin: 7px 0 10px;
    padding: 5px 28px;
    border-radius: 5px;
    background: #c17d36;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 1px;
}

.alta-rebate-products {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-style: italic;
    font-weight: 500;
    line-height: 1.4 !important;
}

.alta-rebate-bottom {
    position: relative;
    padding: 15px 18px 27px;
    border-radius: 0 0 11px 11px;
    background: #f3f5f7;
}

.alta-rebate-bottom p {
    margin: 0 0 12px !important;
    color: #173c5b !important;
    font-size: 14px !important;
    font-weight: 800;
    line-height: 1.4 !important;
    letter-spacing: .3px;
}

.alta-rebate-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border: 2px solid #e2a35d;
    border-radius: 7px;
    background: linear-gradient(
        180deg,
        #ce8539,
        #a75d19
    );
    color: #ffffff;
    font-size: 17px;
    font-weight: 750;
    text-decoration: none;
    box-shadow: 0 4px 11px rgba(0,0,0,.2);
    transition: filter .2s ease;
}

.alta-rebate-cta:hover,
.alta-rebate-cta:focus-visible {
    color: #ffffff;
    filter: brightness(1.12);
}

@media (max-width: 900px) {
    .alta-rebate-promo {
        max-width: 540px;
        margin: 32px auto 0;
    }
}

@media (max-width: 600px) {
    .alta-rebate-promo {
        max-width: 100%;
    }

    .alta-rebate-ribbon {
        width: calc(100% - 30px);
        font-size: 17px;
    }

    .alta-rebate-offer {
        gap: 10px;
    }

    .alta-rebate-value {
        font-size: clamp(45px, 12vw, 65px);
    }

    .alta-rebate-description {
        font-size: 18px;
    }

    .alta-rebate-products {
        font-size: 14px !important;
    }
}

/* END ALTA REBATE DESIGN */
