﻿/* ==========================================================================
   NEW CONSTRUCTION SPA - MASTER STYLES
   Location: /Content/css/new-construction.css
   ========================================================================== */

.equal-height {
    display: flex;
    flex-wrap: wrap;
}

h4,
h5,
h6 {
    color: #007ac2;
}

#forms-documents-library h4 {
    color: black;
}

/* --- 1. BOOTSTRAP OVERRIDES (Modern Blue Accordion) --- */
/* Remove click-triggered focus ring on accordion toggles */
.modern-blue-accordion-toggle-link:focus:not(:focus-visible) {
    outline: none;
}

/* Strip styles from TOP-LEVEL steps only for both Getting Started and Application */
.modern-blue-accordion-main > .panel {
    border: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
    margin-bottom: 0 !important;
}

    .modern-blue-accordion-main > .panel > .panel-heading {
        padding: 0 !important;
        background: none !important;
        border: none !important;
        margin-bottom: 5px;
        /*margin-top: 0;*/
    }

.modern-blue-accordion-main .modern-blue-accordion-content {
    background-color: transparent !important;
}

#nc-spa-wrapper .panel a {
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    word-wrap: break-word !important;
    white-space: normal !important;
    max-width: 100%;
}

/* Prevent the browser from fighting our JS scroll logic */
#nc-spa-wrapper,
#nc-spa-wrapper *,
.panel-group,
.panel-collapse,
.container {
    overflow-anchor: none !important;
}

.application-details-toggle .panel-title {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* Ensure the text wraps and doesn't push the icon out */
.application-details-toggle .panel-title {
    word-wrap: break-word;
    white-space: normal;
}

/* Add a small right margin to the text so it never touches the icon */
.application-details-toggle .panel-title {
    padding-right: 10px;
}

/* Remove the pull-right float since flex handles it now */
.application-details-toggle .glyphicon {
    float: none !important;
    margin-left: 15px;
    flex-shrink: 0; /* Prevents the icon from being squeezed */
}

/* Custom nested dropdown — intentionally decoupled from modern-blue-accordion
   so it doesn't inherit/conflict with the parent panel's collapse behavior */
.application-details-dropdown .application-details-toggle {
    cursor: pointer;
    user-select: none; /* avoid text-select flicker on repeated clicks */
}

    .application-details-dropdown .application-details-toggle:focus-visible {
        outline: 2px solid #0057b8; /* keep visible focus ring for keyboard users */
        outline-offset: 2px;
    }

.application-details-dropdown .application-details-content[hidden] {
    display: none;
}

/* --- 2. UX ENHANCEMENTS & SMOOTH TRANSITIONS --- */

/* Prevent Flash of Unstyled Content (FOUC) */
.tab-pane {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

    .tab-pane.is-active {
        display: block !important;
        opacity: 1;
    }

/* Make the WHOLE box pop, not just the text */
.building-box {
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    z-index: 1;
}

    .building-box:hover {
        transform: translateY(-5px) scale(1.03); /* Lifts the box up slightly and grows it */
        z-index: 10; /* Ensures the "popping" box sits on top of others */
    }

    /* Remove the old scale from the text container */
    .building-box .box-content {
        /* transform: translateX(-50%) scale(1.05);  <-- Remove or comment this out */
        transition: color 0.3s ease;
    }

/* Back to Selection link */
#reset-link {
    font-weight: bold;
    color: #007ac2;
    text-decoration: underline;
}

/* --- 3. NESTED ACCORDION STYLES (Restore standard look for internals) --- */
.accordion-blue.panel-group .panel {
    border: 1px solid #ddd !important;
    background-color: #fff !important;
    margin-bottom: 5px !important;
    display: block !important;
}

.accordion-blue .panel-heading {
    background-color: #f4f4f4 !important;
    padding: 10px 15px !important;
    border-bottom: 1px solid #ddd !important;
}

.accordion-blue .panel-title {
    color: #0073bc !important;
    font-weight: bold !important;
    font-size: 16px;
}

/* Custom focus styles that match your blue theme */
#new-construction-content-bg a:focus {
    outline: none !important;
    outline-offset: unset !important;
}

/* --- 4. HERO & HEADER --- */
#PCHeader {
    text-align: left;
    padding-left: 20px;
    text-shadow: none;
}

    #PCHeader h2 {
        margin-left: -4px;
    }

    #PCHeader p {
        margin-top: 40px;
        padding-right: 120px;
    }

/* --- 5. SPA LAYOUT & BREAKOUT --- */
#new-construction-content-bg {
    display: none; /* Controlled by JS setActiveBuilding */
    padding-bottom: 40px;
    background: linear-gradient(to bottom, #ffffff 0%, #e1e1e1 100%) !important;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.new-construction-content-bg {
    padding-bottom: 40px;
    background: linear-gradient(to bottom, #ffffff 0%, #e1e1e1 100%) !important;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.building-box {
    min-height: 270px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    margin-bottom: 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

    .building-box .box-content {
        position: absolute;
        bottom: 5px;
        left: 50%;
        transform: translateX(-50%);
        width: 100%;
        color: #007ac2;
        padding-bottom: 15px;
    }

    .building-box .title {
        font-weight: bold;
        font-size: 1.2em;
        margin: 0;
        min-height: 2em;
    }

    .building-box p {
        color: black;
        font-size: 0.9em;
        line-height: 1.3;
        min-height: 5em;
        padding: 0 10px;
        max-width: 230px;
        margin: 0 auto;
    }

/* Building Box Images */
.building-box-residential {
    background-image: url('https://minnesotapower.blob.core.windows.net/content/Content/Images/CustomerService/ProjectCenter/res-button.png');
}

.building-box-development {
    background-image: url('https://minnesotapower.blob.core.windows.net/content/Content/Images/CustomerService/ProjectCenter/dev-button.png');
}

.building-box-commercial {
    background-image: url('https://minnesotapower.blob.core.windows.net/content/Content/Images/CustomerService/ProjectCenter/comm-button.png');
}

.building-box-multi-unit {
    background-image: url('https://minnesotapower.blob.core.windows.net/content/Content/Images/CustomerService/ProjectCenter/multi-button.png');
}

.active-image.building-box-residential {
    background-image: url('https://minnesotapower.blob.core.windows.net/content/Content/Images/CustomerService/ProjectCenter/res-active.png');
}

.active-image.building-box-development {
    background-image: url('https://minnesotapower.blob.core.windows.net/content/Content/Images/CustomerService/ProjectCenter/dev-active.png');
}

.active-image.building-box-commercial {
    background-image: url('https://minnesotapower.blob.core.windows.net/content/Content/Images/CustomerService/ProjectCenter/comm-active.png');
}

.active-image.building-box-multi-unit {
    background-image: url('https://minnesotapower.blob.core.windows.net/content/Content/Images/CustomerService/ProjectCenter/multi-active.png');
}

/* --- 6. NAVIGATION (Pills & Tabs) --- */
.tab-header {
    background-color: #007ac2;
    height: 5px;
    width: 100%;
}

.nav-pills > li > a {
    border-radius: 0 !important;
    color: #007ac2;
    background-color: transparent;
}

.nav-pills > li.active {
    background-color: #007ac2;
}

    .nav-pills > li.active > a,
    .nav-pills > li.active > a:hover {
        color: white !important;
        background-color: transparent !important;
    }

/* --- 7. UI COMPONENTS & BUTTONS --- */
.btn-blue-checklist {
    background-color: #00AEEF;
    color: #ffffff !important;
    font-weight: 900;
    font-size: 16px;
    padding: 12px 30px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: background-color 0.2s ease;
}

    .btn-blue-checklist:hover {
        background-color: #0084C1;
        color: #ffffff !important;
    }

    .btn-blue-checklist .btn-checkmark {
        position: relative;
        display: inline-block;
        width: 26px;
        height: 26px;
        margin-right: 15px;
    }

        .btn-blue-checklist .btn-checkmark::before {
            content: "";
            position: absolute;
            left: 0;
            top: 0;
            width: 26px;
            height: 26px;
            border: 2px solid #ffffff;
            border-radius: 4px;
            box-sizing: border-box;
        }

        .btn-blue-checklist .btn-checkmark::after {
            content: "";
            position: absolute;
            left: 0px;
            top: -10px;
            width: 34px;
            height: 37px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3l7-7'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-size: contain;
            z-index: 2;
        }

.average-cost-button {
    align-items: center;
    background: transparent;
    display: inline-flex;
    gap: 14px;
    min-height: 118px;
    padding: 14px 24px 14px 16px;
    text-decoration: none;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    border: none;
}

.average-cost-button__icon {
    flex: 0 0 auto;
    height: 82px;
    width: 82px;
    display: block;
}

.average-cost-button__label {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 82px;
    color: #0072bc;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 27px;
    font-weight: 700;
    line-height: 1;
    text-align: left;
    white-space: nowrap;
}

.average-cost-button:hover {
    background: #f2f9fc;
    text-decoration: none;
}

.average-cost-button:focus-visible {
    outline: 3px solid #179dd1;
    outline-offset: 3px;
}

/* Keeps the control usable on narrow mobile screens. */
@media (max-width: 400px) {
    .average-cost-button {
        gap: 10px;
        min-height: 100px;
        padding: 12px 16px 12px 12px;
    }

    .average-cost-button__icon {
        height: 68px;
        width: 68px;
    }

    .average-cost-button__label {
        font-size: 21px;
        min-height: 68px;
        white-space: normal;
    }
}

/* --- 8. LISTS & DIVIDERS --- */
.blue-check-mark {
    list-style: none;
    padding-left: 0;
}

    .blue-check-mark li {
        padding-left: 25px !important;
        background-image: url('https://minnesotapower.blob.core.windows.net/content/Content/Images/CustomerService/ProjectCenter/blue_check.png');
        background-repeat: no-repeat;
        background-size: 16px 16px;
        background-position: 0 5px;
        margin-bottom: 10px;
    }

        .blue-check-mark li ul {
            list-style-type: disc !important;
            padding-left: 20px !important;
        }

            .blue-check-mark li ul li {
                background-image: none !important;
                padding-left: 0 !important;
                margin-bottom: 0px !important;
            }

.project-divider-bar {
    background-color: #e0f2f7;
    font-weight: 900;
    font-style: italic;
    text-align: center;
    margin: 20px 0;
    border-radius: 4px;
    font-size: 1.1em;
    min-height: 60px;
    line-height: 60px;
}

.divider-icon {
    margin: 0 5px;
    color: #004d99;
}

/* --- 9. CONTACT BOXES --- */
.contact-info-box {
    margin-top: 20px;
    padding: 20px;
    background-color: #f9f9f9;
    border-left: 5px solid #007ac2;
}

.contact-header {
    color: #07659f;
    font-weight: bold;
    margin-bottom: 15px;
}

.accordion-contact-list dt {
    float: left;
    width: 60px;
    clear: left;
    font-weight: bold;
}

.accordion-contact-list dd {
    margin-left: 70px;
    margin-bottom: 10px;
}

.file-types {
    font-size: 0.9em;
    display: block;
    margin-top: 5px;
    color: #666;
}

/* --- 10. GLOBAL FIXES --- */
body {
    overflow-x: hidden;
}

@media print {
    .panel-collapse {
        display: block !important;
        height: auto !important;
    }

    #new-construction-content-bg {
        display: block !important;
    }

    .nav-pills, .building-options {
        display: none;
    }
    /* Hide the navigation UI */
}

/* Vertical Alignment for Desktop (Table-cell method) */
@media (min-width: 768px) {
    .desktop-br {
        display: inline;
    }

    .v-align-row {
        display: table;
        width: 100%;
    }

        .v-align-row [class*="col-"] {
            display: table-cell;
            float: none;
            vertical-align: middle;
        }
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .desktop-br {
        display: none;
    }

    /* 1. Reset Global #content padding for Navigation List Items */
    #tab-links.nav-pills > li {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 2. Navigation Container Styling */
    #tab-links {
        background-color: #f8f8f8;
        border-bottom: 2px solid #007ac2;
        margin-bottom: 20px;
    }

    /* 3. Tab Link Styling */
    .nav-pills > li > a {
        border-bottom: 1px solid #ddd;
        font-weight: bold;
        padding: 15px !important;
        text-align: center;
        margin: 0 !important;
        border-radius: 0 !important;
        display: block;
    }

    .nav-pills > li:last-child > a {
        border-bottom: none;
    }

    /* 4. Active Tab State - Seamless Transition */
    .nav-pills > li.active {
        background-color: #007ac2 !important;
        margin-bottom: -1px !important; /* Overlaps container border to fix image_b958ff.png */
    }

        .nav-pills > li.active > a {
            color: white !important;
            border-bottom: none !important;
        }

    /* 5. Button & Content Adjustments */
    .tab-content {
        padding: 10px 5px !important;
    }

    .btn-blue-checklist {
        white-space: nowrap;
        padding: 15px 25px;
        width: 100%;
        display: block;
        margin: 20px auto;
        text-align: center;
    }

    .v-align-row .col-sm-3 .small-text {
        display: block;
        margin-top: 10px;
        text-align: center;
    }
}

/* Outdoor Lighting tables */
.ol-table {
    border-collapse: collapse;
    width: 100%;
}

    /* Header row */
    .ol-table thead th {
        background-color: #0070C0;
        color: white;
        font-weight: bold;
        border-bottom: 1pt solid #7F7F7F;
        border-left: none;
        border-right: none;
        padding: 8px 10px;
    }
    /* Body cells */
    .ol-table tbody td {
        padding: 4px 7px;
        border-top: 1px solid #7F7F7F;
        border-bottom: none;
        border-left: none;
        border-right: none;
        color: #333333;
    }
/* --- Resource shortcut buttons (Project Center Resources) --- */
.resource-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.resource-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 360px;
    min-height: 120px;
    padding: 18px 20px;
    text-decoration: none !important;
    background: #fff;
    border: 1px solid #e6e6e6;
    transition: box-shadow .25s ease;
}

.resource-icon {
    width: 64px;
    min-width: 64px;
    height: 64px;
    object-fit: contain;
    flex-shrink: 0;
}

.resource-content {
    display: flex;
    flex-direction: column;
}

.resource-title {
    color: #007ac2;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 6px;
}

.resource-desc {
    color: #000;
    font-size: 16px;
    line-height: 1.3;
}

.resource-button::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 12px;
    background: linear-gradient( 75deg, #05a9ec 0%, #05a9ec 78%, #007ac2 78%, #007ac2 100% );
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}

.resource-button:hover::after,
.resource-button:focus::after,
.resource-button:focus-visible::after {
    transform: scaleX(1);
}

.resource-button:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.resource-button:focus,
.resource-button:focus-visible {
    outline: 2px solid #0057b8;
    outline-offset: 2px;
}

/* Desktop spacing/alignment */
@media (min-width: 992px) {
    .pcr-icon-buttons .resource-buttons {
        justify-content: space-between;
    }

    .resource-button {
        flex: 1 1 calc(33.333% - 16px);
        max-width: none;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .resource-button {
        flex: 1 1 calc(50% - 12px);
        max-width: none;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .resource-buttons {
        gap: 14px;
    }

    .resource-button {
        max-width: none;
        min-height: 104px;
        padding: 14px 14px;
        gap: 12px;
    }

    .resource-icon {
        width: 50px;
        min-width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .resource-title {
        font-size: 20px;
    }

    .resource-desc {
        font-size: 14px;
    }
}

/* Project Center maintenance section */
.maintenance-container {
    background: #e7e7e7;
    padding: 24px 28px;
}

.maintenance-row {
    display: flex;
    align-items: center;
    margin-left: 0;
    margin-right: 0;
}

    .maintenance-row > [class*="col-"] {
        float: none;
        padding-left: 0;
        padding-right: 0;
    }

.maintenance-button a {
    display: block;
}

.maintenance-button img {
    display: block;
    width: 100%;
    height: auto;
}

.maintenance-text {
    color: #377cc1;
    font-weight: 700;
    line-height: 1.2;
}

@media (max-width: 767px) {
    .maintenance-container {
        padding: 18px;
    }

    .maintenance-row {
        display: block;
    }

        .maintenance-row > [class*="col-"] {
            width: 100%;
        }

    .maintenance-button {
        margin-bottom: 12px;
    }

    .maintenance-text {
        text-align: center;
    }
}

/* Project Center link headers */
.box-wrapper .full-link-box h3 {
    color: #000 !important;
}

/* Project Center Resources - Fix-It requirements table */
.pcr-requirements-table {
    margin-bottom: 10px;
    border-collapse: collapse;
    width: 100%;
    min-width: 700px;
    font-size: inherit; /* keep page font sizing */
}

    .pcr-requirements-table thead th {
        color: #fff;
        font-weight: 700;
        font-size: inherit; /* no zoomed header text */
        line-height: 1.25;
        border: 0 !important;
        padding: 10px 10px !important;
        vertical-align: middle;
    }

        .pcr-requirements-table thead th:first-child {
            background-color: #0070c0;
            text-align: left;
            width: 56%;
        }

        .pcr-requirements-table thead th:nth-child(2) {
            background-color: #005a9e;
            text-align: center;
            width: 22%;
        }

        .pcr-requirements-table thead th:nth-child(3) {
            background-color: #004680;
            text-align: center;
            width: 22%;
        }

    .pcr-requirements-table tbody td {
        border-left: 0 !important;
        border-right: 0 !important;
        border-top: 1px solid #9e9e9e !important;
        border-bottom: 0 !important;
        padding: 10px 10px !important;
        font-size: inherit; /* no zoomed body text */
        line-height: 1.35;
        vertical-align: middle;
    }

        .pcr-requirements-table tbody td:first-child {
            background-color: #ffffff;
        }

        .pcr-requirements-table tbody td:nth-child(2) {
            background-color: #f2f2f2;
            text-align: center;
            font-weight: 700;
        }

        .pcr-requirements-table tbody td:nth-child(3) {
            background-color: #e8e8e8;
            text-align: center;
            font-weight: 700;
        }

    .pcr-requirements-table td.yes {
        color: #00a651;
    }

    .pcr-requirements-table td.no {
        color: #cc0000;
    }

/* Keep mobile readable without changing global scale */
@media (max-width: 767px) {
    .pcr-requirements-table thead th,
    .pcr-requirements-table tbody td {
        font-size: inherit;
    }
}
