/* =========================================================
   Cooling & Air Quality Assistance Application Form
   This is scoped to .cooling-application-form-wrap.
   The plugin JS auto-adds this class to the matching Elementor Form widget.
   You can also add it manually to the section/container/widget.
   ========================================================= */

.cooling-application-form-wrap {
    --memphis-navy: #070b33;
    --memphis-blue: #1f718c;
    --memphis-light-blue: #eef8fc;
    --memphis-border: #b7d7e5;
    --memphis-gold: #d7a832;
    --memphis-text: #111827;
    --memphis-muted: #5f6b7a;
    --memphis-white: #ffffff;
}

/* If class is added to Elementor widget itself */
.cooling-application-form-wrap.elementor-widget-form,
/* If class is added to a parent container/section */
.cooling-application-form-wrap .elementor-widget-form {
    max-width: 1160px;
    margin: 0 auto 70px;
    background: #ffffff;
    border: 1px solid var(--memphis-border);
    border-top: 6px solid var(--memphis-blue);
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(7, 11, 51, 0.10);
    padding: 30px;
}

.cooling-application-form-wrap .elementor-widget-container {
    margin: 0;
}

.cooling-application-form-wrap .elementor-form-fields-wrapper {
    row-gap: 16px;
}

.cooling-application-form-wrap .elementor-field-type-html h3 {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 8px;
    padding: 0 0 12px;
    color: var(--memphis-navy);
    font-size: 24px;
    line-height: 1.2;
    font-weight: 800;
    border-bottom: 1px solid #d7e8ef;
}

.cooling-application-form-wrap .elementor-field-group-applicant_section h3 {
    margin-top: 0;
}

.cooling-application-form-wrap .elementor-field-type-html h3::before {
    content: "";
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--memphis-blue);
    color: #ffffff;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 800;
}

.cooling-application-form-wrap .elementor-field-group-applicant_section h3::before { content: "1"; }
.cooling-application-form-wrap .elementor-field-group-address_section h3::before { content: "2"; }
.cooling-application-form-wrap .elementor-field-group-household_section h3::before { content: "3"; }
.cooling-application-form-wrap .elementor-field-group-need_section h3::before { content: "4"; }
.cooling-application-form-wrap .elementor-field-group-property_section h3::before { content: "5"; }
.cooling-application-form-wrap .elementor-field-group-proof_section h3::before { content: "6"; }
.cooling-application-form-wrap .elementor-field-group-confirmation_section h3::before { content: "7"; }

.cooling-application-form-wrap .elementor-field-type-html p {
    margin: 8px 0 4px;
    color: var(--memphis-text);
    font-size: 15px;
    line-height: 1.55;
}

.cooling-application-form-wrap .elementor-field-label {
    margin-bottom: 7px;
    color: var(--memphis-navy) !important;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 800 !important;
}

.cooling-application-form-wrap input[type="text"],
.cooling-application-form-wrap input[type="email"],
.cooling-application-form-wrap input[type="tel"],
.cooling-application-form-wrap input[type="number"],
.cooling-application-form-wrap select,
.cooling-application-form-wrap textarea,
.cooling-application-form-wrap .elementor-field-textual {
    min-height: 46px;
    padding: 11px 14px !important;
    background: #ffffff;
    border: 1px solid #c7d6df !important;
    border-radius: 5px !important;
    color: var(--memphis-text);
    font-size: 15px;
    box-shadow: none !important;
}

.cooling-application-form-wrap input:focus,
.cooling-application-form-wrap select:focus,
.cooling-application-form-wrap textarea:focus,
.cooling-application-form-wrap .elementor-field-textual:focus {
    border-color: var(--memphis-blue) !important;
    outline: 3px solid rgba(215, 168, 50, 0.35) !important;
    outline-offset: 1px;
}

.cooling-application-form-wrap #form-field-city,
.cooling-application-form-wrap #form-field-state {
    background: #f4f7f9 !important;
    color: #4b5563;
}

.cooling-application-form-wrap .elementor-field-subgroup {
    display: grid;
    gap: 8px;
    margin-top: 4px;
}

.cooling-application-form-wrap .elementor-field-option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--memphis-text);
    font-size: 15px;
    line-height: 1.4;
}

.cooling-application-form-wrap .elementor-field-option input[type="checkbox"],
.cooling-application-form-wrap .elementor-field-option input[type="radio"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: var(--memphis-blue);
}

.cooling-application-form-wrap .elementor-field-group-need_section p {
    max-width: 100%;
    padding: 15px 18px 15px 56px;
    background: var(--memphis-light-blue);
    border: 1px solid var(--memphis-border);
    border-radius: 6px;
    position: relative;
}

.cooling-application-form-wrap .elementor-field-group-need_section p::before {
    content: "i";
    position: absolute;
    top: 16px;
    left: 18px;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--memphis-blue);
    color: #ffffff;
    border-radius: 50%;
    font-weight: 800;
    font-family: Georgia, serif;
}

.cooling-application-form-wrap .elementor-field-group-proof_section p {
    padding: 15px 18px;
    background: #fff8e8;
    border: 1px solid #efcf82;
    border-radius: 6px;
}

.cooling-application-form-wrap input[type="file"] {
    width: 100%;
    padding: 28px 18px !important;
    background: #f8fcfe;
    border: 1px dashed var(--memphis-border) !important;
    border-radius: 6px !important;
    cursor: pointer;
}

.cooling-application-form-wrap .elementor-field-type-acceptance {
    padding: 10px 0;
}

.cooling-application-form-wrap .elementor-field-type-acceptance .elementor-field-label {
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700 !important;
}

.cooling-application-form-wrap .e-form__buttons {
    margin-top: 16px;
}

.cooling-application-form-wrap .elementor-button[type="submit"] {
    min-width: 260px;
    min-height: 56px;
    padding: 15px 26px !important;
    background: linear-gradient(135deg, #003d78, #07145c) !important;
    border: 0 !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    font-size: 17px;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(7, 11, 51, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cooling-application-form-wrap .elementor-button[type="submit"]:hover,
.cooling-application-form-wrap .elementor-button[type="submit"]:focus {
    background: linear-gradient(135deg, #00578f, #07145c) !important;
    transform: translateY(-1px);
    box-shadow: 0 15px 30px rgba(7, 11, 51, 0.26);
    outline: 3px solid rgba(215, 168, 50, 0.45);
    outline-offset: 2px;
}

.cooling-application-form-wrap .elementor-button-text::before {
    content: "\f1d8";
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 10px;
}

/* Required field marker */
.cooling-application-form-wrap .elementor-field-required > .elementor-field-label::after,
.cooling-application-form-wrap .elementor-mark-required .elementor-field-required > .elementor-field-label::after {
    content: " *" !important;
    color: #b42318 !important;
    font-weight: 900 !important;
    font-size: 16px !important;
    line-height: 1 !important;
}

.cooling-application-form-wrap .elementor-field-required > .elementor-field-label {
    display: inline-block;
}


.cooling-application-form-wrap .elementor-field-group-address_section,
.cooling-application-form-wrap .elementor-field-group-household_section,
.cooling-application-form-wrap .elementor-field-group-need_section,
.cooling-application-form-wrap .elementor-field-group-property_section,
.cooling-application-form-wrap .elementor-field-group-proof_section,
.cooling-application-form-wrap .elementor-field-group-confirmation_section {
    margin-top: 14px;
}

@media (max-width: 767px) {
    .cooling-application-form-wrap.elementor-widget-form,
    .cooling-application-form-wrap .elementor-widget-form {
        width: calc(100% - 24px);
        margin-bottom: 50px;
        padding: 20px;
        border-radius: 7px;
    }

    .cooling-application-form-wrap .elementor-field-type-html h3 {
        font-size: 21px;
    }

    .cooling-application-form-wrap .elementor-field-type-html h3::before {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
        font-size: 14px;
    }

    .cooling-application-form-wrap .elementor-column,
    .cooling-application-form-wrap .elementor-field-group {
        width: 100% !important;
        flex-basis: 100% !important;
    }

    .cooling-application-form-wrap .elementor-button[type="submit"] {
        width: 100%;
        min-width: 0;
    }

}

/* Acceptance confirmation checkboxes: Elementor places label before checkbox.
   Force checkbox to the left and text to the right. */
.cooling-application-form-wrap .elementor-field-type-acceptance {
    display: grid !important;
    grid-template-columns: 22px minmax(0, 1fr) !important;
    column-gap: 12px !important;
    row-gap: 0 !important;
    align-items: start !important;
    padding: 12px 0 !important;
}

.cooling-application-form-wrap .elementor-field-type-acceptance > .elementor-field-label {
    order: 2 !important;
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--memphis-navy) !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    font-weight: 700 !important;
}

.cooling-application-form-wrap .elementor-field-type-acceptance > .elementor-field-subgroup {
    order: 1 !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: block !important;
    margin: 2px 0 0 !important;
    padding: 0 !important;
    width: 22px !important;
    flex: 0 0 22px !important;
}

.cooling-application-form-wrap .elementor-field-type-acceptance .elementor-field-option {
    display: block !important;
    width: 22px !important;
    flex: 0 0 22px !important;
    flex-basis: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.cooling-application-form-wrap .elementor-field-type-acceptance input[type="checkbox"],
.cooling-application-form-wrap .elementor-field-type-acceptance .elementor-acceptance-field {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    accent-color: var(--memphis-blue);
}

.cooling-application-form-wrap .elementor-field-type-acceptance input[type="checkbox"]:focus-visible,
.cooling-application-form-wrap .elementor-field-type-acceptance .elementor-acceptance-field:focus-visible {
    outline: 3px solid rgba(215, 168, 50, 0.45) !important;
    outline-offset: 2px !important;
}

/* Zone 1 GIS validation message for selected application form page */
.cooling-application-form-wrap .ccb-form-zone1-validation-message {
    width: 100%;
    margin: 18px 0 8px;
    padding: 14px 16px 14px 52px;
    border-radius: 6px;
    border: 1px solid #b7d7e5;
    background: #eef8fc;
    color: #111827;
    font-size: 15px;
    line-height: 1.5;
    position: relative;
}

.cooling-application-form-wrap .ccb-form-zone1-validation-message::before {
    content: "i";
    position: absolute;
    left: 17px;
    top: 15px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--memphis-blue);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-family: Georgia, serif;
}

.cooling-application-form-wrap .ccb-form-zone1-validation-message.is-checking {
    border-color: #b7d7e5;
    background: #eef8fc;
}

.cooling-application-form-wrap .ccb-form-zone1-validation-message.is-success {
    border-color: #b8e0c2;
    background: #ecfdf3;
    color: #095c2a;
}

.cooling-application-form-wrap .ccb-form-zone1-validation-message.is-success::before {
    content: "✓";
    background: #0b7a35;
    font-family: inherit;
}

.cooling-application-form-wrap .ccb-form-zone1-validation-message.is-error {
    border-color: #f0b8b8;
    background: #fff1f1;
    color: #7a1212;
}

.cooling-application-form-wrap .ccb-form-zone1-validation-message.is-error::before {
    content: "!";
    background: #b42318;
    font-family: inherit;
}

.cooling-application-form-wrap .elementor-button[type="submit"].ccb-form-submit-loading {
    opacity: 0.82;
    cursor: wait;
}

/* Live Zone 1 validation submit lock */
.cooling-application-form-wrap .elementor-button[type="submit"].ccb-form-submit-disabled,
.cooling-application-form-wrap .elementor-button[type="submit"]:disabled {
    opacity: 0.58 !important;
    cursor: not-allowed !important;
    filter: grayscale(0.15);
    transform: none !important;
    box-shadow: none !important;
}

.cooling-application-form-wrap .elementor-button[type="submit"].ccb-form-submit-disabled:hover,
.cooling-application-form-wrap .elementor-button[type="submit"]:disabled:hover {
    transform: none !important;
    box-shadow: none !important;
}

.cooling-application-form-wrap .ccb-form-zone1-validation-message.is-info {
    border-color: #b7d7e5;
    background: #eef8fc;
    color: #111827;
}
