/* Existing contact validation and control styles, retained from the page. */
.contact-layout {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 992px) {
    .contact-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
        grid-template-rows: auto 1fr;
        grid-template-areas: "intro form" "details form";
        align-items: start;
    }

    .contact-intro { grid-area: intro; }
    .contact-form-area { grid-area: form; }
    .contact-numbers { grid-area: details; }
}

.contact-details {
    padding: 1.5rem;
    background: #eef3f8;
    color: #212529;
}

.contact-details p {
    max-width: 38ch;
}

.contact-intro {
    border-top: 4px solid #bf0a30;
    background: #e6eef6;
}

.contact-numbers {
    background: #0d3b66;
    color: #fff;
}

.contact-numbers .navy,
.contact-numbers a {
    color: #fff;
}

.contact-numbers a:hover {
    text-decoration-thickness: 2px;
}

.contact-form-panel {
    padding: 1.5rem;
    border: 1px solid #d9e3f0;
    border-top: 4px solid #0d3b66;
    background: #eef3f8;
}

@media (max-width: 575.98px) {
    .contact-details,
    .contact-form-panel {
        padding: 1rem;
    }
}

.form-control {
    border-width: 2px;
    border-color: #adb5bd;
}

.form-control:focus {
    border-color: #0d3b66; /* navy */
    box-shadow: 0 0 0 1px rgba(13, 59, 102, 0.25);
}

#product_type option,
#product_selection option {
    background-color: #fff;
    color: #212529;
}

#product_type option:nth-child(even),
#product_selection > option:nth-child(even),
#product_selection optgroup option:nth-child(odd) {
    background-color: #eef3f8;
}

.validation-error {
    padding: 0.65rem;
    border: 1px solid rgba(220, 53, 69, 0.35);
    border-radius: 0.5rem;
    background-color: rgba(220, 53, 69, 0.04);
}

.validation-error .form-label,
.validation-error .form-check-label {
    color: #b42318;
}

.validation-error .form-control,
.validation-error .form-select,
.validation-error .form-check-input {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 1px rgba(220, 53, 69, 0.15);
}

.phone-call-preference {
    background: #f8fbff;
    border: 1px solid #d9e3f0;
    border-radius: 0.5rem;
    padding: 0.85rem 1rem;
}

.phone-call-preference legend {
    float: none;
    width: auto;
    margin: 0 0 0.35rem;
    padding: 0;
    font-size: 1rem;
    line-height: 1.3;
}

.phone-call-preference .form-text {
    color: #52657a;
    line-height: 1.4;
    margin-bottom: 0.65rem;
}

.phone-call-options {
    gap: 1.25rem;
}

.phone-call-submit {
    min-height: 100%;
}

.copy-cover-choice-group,
.copy-cover-pool-size {
    min-width: 0;
}

.copy-cover-section-label {
    margin-bottom: 0.4rem;
}

.copy-cover-process-link {
    display: inline-block;
    margin-bottom: 0.6rem;
    font-size: 0.875rem;
}

.copy-cover-pool-size .form-text {
    margin-bottom: 0.6rem;
    color: #52657a;
    line-height: 1.4;
}

.installer-interest-group {
    min-width: 0;
    margin: 0;
    padding: 0 calc(var(--bs-gutter-x) * 0.5);
    border: 0;
}

.installer-interest-group.validation-error {
    padding: 0.65rem calc(var(--bs-gutter-x) * 0.5);
}

.installer-interest-title {
    float: none;
    width: auto;
    margin: 0 0 0.5rem;
    padding: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.installer-product-options {
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1.5rem;
    width: 100%;
    min-height: calc(1.5em + 0.75rem + 4px);
    margin: 0;
    padding: 0.375rem 0.75rem;
    border: 2px solid #adb5bd;
    border-radius: 0.375rem;
    background: #fff;
}

.installer-product-option {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: inherit;
    cursor: pointer;
}

.installer-product-option .form-check-input {
    margin-top: 0;
}

.installer-product-option span {
    font-weight: 400;
}

/* Contact keeps its existing fields, validation and upload flow. */
.company-contact-page { background: #f5fafb; }
.company-contact .contact-layout { display: grid; grid-template-columns: minmax(0,1fr); gap: 1.5rem; }
.company-contact .contact-details { text-align: center; }
.company-contact .contact-details p { max-width: none; }
.company-contact .contact-form-panel > h2 { text-align: center; }
.company-contact .contact-intro { border: 1px solid #c8d6df; border-top: 4px solid #bf0a30; border-radius: 8px; background: #eaf6f8; }
.company-contact .contact-numbers { border-radius: 8px; background: #173653; }
.company-contact .contact-form-panel { border: 1px solid #c8d6df; border-top: 4px solid #bf0a30; border-radius: 8px; background: white; }
.company-contact .phone-call-preference { border-color: #c8d6df; background: #eaf6f8; }
.company-contact :is(.form-control,.form-select) { min-height: 48px; background: white; color: #173653; }
.company-contact :is(.form-control,.form-select,.form-check-input):focus-visible { outline: 3px solid #0e7d7c; outline-offset: 2px; box-shadow: none; }
.company-contact :is(.form-text,.copy-cover-process-link) { font-size: 1rem; line-height: 1.5; }
.company-contact :is(#product_type,#product_selection) option { background: white; color: #173653; }
.company-contact :is(#product_type,#product_selection) option:checked { background: #173653; color: white; }
.company-contact .phone-call-submit { min-height: 48px; }
.company-contact button[type="submit"] { min-width: 170px; min-height: 48px; }
@media (min-width: 992px) {
 .company-contact .contact-layout { grid-template-columns: var(--company-help-sidebar-width) minmax(0,1fr); grid-template-rows: auto 1fr; grid-template-areas: "intro form" "details form"; }
}
@media (max-width: 991.98px) {
 .company-contact .contact-layout { grid-template-areas: "intro" "form" "details"; }
}
.company-confirmation-page { background: #f5fafb; color: #173653; font-family: "Open Sans", Arial, sans-serif; }
.company-confirmation-page main { max-width: 1320px; }
.company-confirmation-page main > .row > div { flex: 0 0 100%; max-width: 100%; }
.company-confirmation-page :is(p,li) { font-size: 1.125rem; line-height: 1.65; }
.company-confirmation-page .thank-you-card { border: 1px solid #c8d6df !important; border-radius: 8px; box-shadow: none !important; }
.company-confirmation-page .thank-you-card > .card-header { border-top: 4px solid #bf0a30; border-radius: 8px 8px 0 0; background: #173653; color: white; }
.company-confirmation-page .thank-you-card > .card-header h1 { font-size: clamp(1.75rem,3vw,2.5rem); text-wrap: balance; }
.company-confirmation-page .text-primary { color: #173653 !important; }
.company-confirmation-page .rounded-4 { border-radius: 6px !important; }
.company-confirmation-page .btn-primary { border-color: #173653; background: #173653; }
.company-confirmation-page .btn-primary:hover { border-color: #970825; background: #970825; }
