﻿.select-readonly {
    pointer-events: none;
    background: white;
    color: inherit;
    -webkit-appearance: menulist;
    appearance: menulist;
}

.botTempo {
    color: white !important;
    background-color: #a57225 !important;
}

.location-popup {
    display: none;
    position: absolute;
    top: -90px;
    /*bottom: 30px;*/
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    background: white;
    border: 2px solid #198754;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 250px;
}

.location-popup h6 {
    margin: 0 0 12px 0;
    color: #198754;
    font-weight: bold;
    text-align: center;
}

.location-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.location-row {
    display: flex;
    gap: 8px;
}

.location-option {
    padding: 8px 20px;
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    font-weight: 500;
    min-width: 80px;
}

.location-option:hover {
    background-color: #198754;
    color: white;
    border-color: #198754;
    transform: translateY(-2px);
}

.location-option:active {
    transform: translateY(0);
}

/* Overlay to close popup when clicking outside */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.5);
}



.btn{
    border-radius: 0 !important;
}

.color {
    float: none;
    text-align: center;
    display: inline-block;
    width: 45px;
    height: 45px;
    margin: 5px 0px 0px 5px;
    vertical-align: top;
}

.color-title {
    margin-bottom: 5px;
    font-size: 18px;
}

.color-selected {
    margin-bottom: 5px;
    font-size: 1.2em;
}

.color-colors {
    font-size: 0;
}

.color-colors > div {
    display: inline-block !important;
    width: 35px !important;
    height: 35px !important;
    margin: 3px !important;
    border: 1px solid #ddd !important;
    cursor: pointer !important;
    position: relative !important;
    vertical-align: top !important;
    border-radius: 3px;
    padding: 3px;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.color-colors > div:hover {
    border-color: #666 !important;
}

.color-colors > div.active {
    box-shadow: rgb(0, 106, 255) 0px 0px 1px 1px;
    transform: scale(1.1);
}

.color-colors > div:hover::before {
    content: attr(data-color);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border: 1px solid #ccc;
    padding: 1px 5px;
    white-space: nowrap;
    font-size: 12px;
    margin-bottom: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    border-radius: 3px;
}

.color-none {
    text-align: center;
    line-height: 20px;
    font-size: 28px;
    color: #999;
}

input[type="checkbox"] {
    cursor: pointer !important;
}

.form-control:hover {
    cursor: pointer !important;
}

.toggle-btn:hover {
    background-color: #0056b3;
}

.toggle-btn:active {
    transform: scale(0.98);
}

.modal-body {
    font-size: 1.3em !important;
}

.colorRow {
   margin-bottom: 20px;
}

.left-column {
    width: 90px;
    flex-shrink: 0; /* Prevents left column from shrinking */
    font-size: 1.5em;
    display: flex;
    align-items: center; /* Vertically centers content */
}

.right-column {
    flex-grow: 1; /* Expands to fill remaining space */
}

@media (max-width: 768px) { /* Adjust breakpoint as needed */
    .colorRow {
        flex-direction: column;
    }

    .left-column, .right-column {
        width: 100%;
    }
}

.hideMe {
    display: none;
}

.iconbox {
    font-size: 1.3em;
}

.card {
    border: 0 !important;
}

.color-section {
    margin-bottom: 10px;
}

.section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.selected-color {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

/* Dropdown Styles */
.color-dropdown {
    position: relative;
    width: 100%;
}

.dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    background: white;
    transition: border-color 0.2s ease;
}

.dropdown-trigger:hover {
    border-color: #4CAF50;
}

.dropdown-trigger.active {
    border-color: #4CAF50;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.trigger-content {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-preview {
    width: 40px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.dropdown-arrow {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
    transition: transform 0.2s ease;
}

.dropdown-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #4CAF50;
    border-top: none;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    display: none;
    max-height: 400px;
    overflow-y: auto;
}

    .dropdown-content.active {
        display: block;
    }

/* Section Headers */
.color-section-header {
    padding: 12px 15px;
    font-weight: bold;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    margin: 0;
}

.color-section-header:not(:first-child) {
    border-top: 1px solid #eee;
}

/* Color Items - Single Column */
.color-item {
    align-items: center;
    gap: 12px;
    padding: 5px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border: none;
    background: none;
    width: 49%;
    text-align: left;
}

.color-item:hover {
    background-color: #f5f5f5;
}

.color-item.selected {
    background-color: #e8f5e8;
    border-left: 3px solid #4CAF50;
}

.color-swatch {
    width: 100%;
    height: 30px;
    border-radius: 3px;
    border: 1px solid #ccc;
    flex-shrink: 0;
}

.color-name {
    font-size: 14px;
    color: #333;
}


label {
    font-size: 12px !important;
}

.colorOption {
    width: 50px;
    margin: 5px;
}

#mobileHeader {
    display:none;
}


fixed-header #header {
    position: relative !important;
}

.modal.fade.show {
    opacity: 1 !important;
}

body {
    height: 100vh;
    overflow: hidden; /* Prevent body scroll */
}

/* Custom container for full height layout */
.full-height-container {
    height: 100vh;
}

/* Left column - scrollable */
.scrollable-column {
    overflow-x: hidden;
    height: 100vh;
    overflow-y: auto;
    /*background-color: #f8f9fa;*/
    border-right: 1px solid #dee2e6;
}

/* Right column - fixed, no scroll */
.fixed-column {
    height: calc(100vh - 55px) !important;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 55px) !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Price header section */
.price-header {
    background: #f2f2f2;
    border-bottom: 1px solid #dee2e6;
    border-top: 1px solid #dee2e6;
    border-right: 1px solid #dee2e6;
    flex-shrink: 0; /* Don't shrink this section */
}

.price-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-header .left-section {
    display: flex;
    flex-direction: column;
}

.price-header .button-group {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    margin-bottom: -40px;
    z-index: 100;
}

/* Visualization area fills remaining space */
.visualization-area {
    flex: 1; /* Take up all remaining space */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Custom scrollbar styling */
.scrollable-column::-webkit-scrollbar {
    width: 8px;
}

.scrollable-column::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.scrollable-column::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.scrollable-column::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Custom building type selector styles */
.building-type-selector {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.building-card {
    flex: 1;
    text-align: center;
    padding: 15px;
    border: 2px solid #dee2e6 !important;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: white;
    color: #212529 !important; /* Ensure text stays dark */
}

.building-card:hover {
    border-color: #0d6efd !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    color: #212529 !important; /* Keep text dark on hover */
}

.btn-check:checked + .building-card {
    border-color: #0d6efd !important;
    background-color: #f8f9ff;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    color: #212529 !important; /* Keep text dark when selected */
}

.hidden {
    display: none;
}

.leanToOnly {
    display: none;
}

/* Mobile: stack vertically */
@@media (max-width: 767.98px) {
    .building-type-selector {
        flex-direction: column;
        gap: 10px;
    }
}

.building-image-container {
    display: flex;
    justify-content: center;
}

.building-image {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
}

/* Placeholder building images using CSS gradients */
.open-building {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    position: relative;
    overflow: hidden;
}

.open-building::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: #1976d2;
    box-shadow: 0 8px 0 #1976d2, 0 16px 0 #1976d2, 0 24px 0 #1976d2;
}

.open-building::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    bottom: 10px;
    width: 2px;
    background: #1976d2;
    box-shadow: 8px 0 0 #1976d2, 16px 0 0 #1976d2, 52px 0 0 #1976d2, 60px 0 0 #1976d2;
}

.closed-building {
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 50%, #ce93d8 100%);
    position: relative;
    overflow: hidden;
}

.closed-building::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 15px;
    background: #8e24aa;
    border-radius: 3px;
}

.closed-building::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 20px;
    right: 20px;
    height: 8px;
    background: #4a148c;
    border-radius: 0 0 2px 2px;
}

.dealerLogo {
    max-height: 45px;
}

.info {
    color: #224e69;
    display: inline-block;
    font-size: 1.2em;
    font-weight: bold;
}

.info:hover {
    cursor: pointer;
}

#spinner {
    text-align: center;
    display: none;
}

.leanToImg {
    display: inline-block;
    float: left;
    border: 1px solid #dfdfdf;
    padding: 5px;
    border-radius: 5px;
    width: 161px;
    text-align: center;
    margin-top: 20px;
    margin-left: 6px;
}

.leanToImg h2 {
    background: #96704a;
    margin: 0px;
    padding: 3px 0px;
    color: white;
    font-size: 1.2em;
    font-weight: normal;
    border-bottom: solid 1px white;
}

.rollUpDoor {
    margin-top: 0px;
    margin-bottom: 20px;
    background: #fbfbfb;
    padding: 4px;
    border: solid 1px #efefef;
}

.buttonRemove {
    vertical-align: middle;
    float: right;
}

.buttonRemove:hover {
    cursor: pointer;
}

.color-options {
    margin-bottom: 20px;
}

hr {
    margin-top: 2px !important;
}

.costEstimate {
    font-size: 2.4em;
    font-weight: bold;
    width: 100%;
    margin-bottom: 8px;
    display: inline-block;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
    background-color: white;
    border-radius: 20px;
    padding: 2px 5px;
}

.fade-text {
    animation: fadeInOut 4s ease-in-out infinite;
}

@keyframes fadeInOut {
    0% {
        opacity: .1;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: .1;
    }
}

#concreteOptions, #installOptions {
    display: none;
}

.estimateExtras {
    background: #dbe7ee;
    border-radius: 5px;
    padding: 3px;
    margin: 5px 0;
    border: 1px solid #bfc2c6;
    font-size: 1.2em;
    font-weight: bold;
}

#shippingSpinner {
    display: none;
}

.infoBox {
    margin-bottom: 30px;
    margin-top: 5px;
    padding: 5px;
}

.infoIcon {
    width: 55px;
    display: table-cell;
    padding-top: 8px;
}

.infoText {
    display: table-cell;
    vertical-align: top;
}

.shippingAddress {
    display: none;
}

.disclaimer {
    border: 1px solid #C9C9C9;
    padding: 4px;
    margin-top: 15px;
    background: #EBEBEB;
}

@media (max-width: 767.98px) {

    /* Keep horizontal layout but reorganize */
    .price-header .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Price stays on the left */
    .price-header .left-section {
        flex-direction: row;
        align-items: center;
        flex: 1;
    }

    .price-header #costEstimate {
        margin-bottom: 0;
        margin-right: 15px;
        font-size: 1.8em; /* Slightly smaller on mobile */
    }

    /* Buttons move to the right side, keep horizontal */
    .price-header .button-group {
        margin-top: -35px;
        gap: 8px;
        flex-shrink: 0;
    }

    .price-header .button-group .btn {
        font-size: 12px;
        padding: 6px 10px;
        white-space: nowrap;
    }

    /* Hide the building details section completely on mobile */
    .price-header .building-details {
        display: none !important;
    }

    .visualization-area {
        align-items: normal !important;
    }

    #mobileHeader {
        display: block !important;
    }

    #desktopHeader {
        display: none !important;
    }

    /* Allow body to fill viewport */
    body {
        overflow: hidden;
        position: fixed;
        width: 100%;
        height: 100vh;
    }

    /* Main container uses column flexbox */
    .full-height-container {
        display: flex;
        flex-direction: column;
        height: 100vh;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
    }

    /* Left column (form) flexes to content and scrolls if too tall */
    .scrollable-column {
        flex: 0 1 auto; /* grow with content but shrink if needed */
        max-height: 50vh; /* don’t let it consume full screen */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        z-index: 10;
    }

    /* Right column (canvas) takes remaining space */
    .fixed-column {
        flex: 1 1 auto; /* fill leftover space */
        overflow: hidden;
        z-index: 1;
        display: block !important; /* disable flex override from desktop */
    }

    /* Canvas stays contained */
    .visualization-area {
        position: relative;
        width: 100%;
        height: 100%;
    }

    #renderCanvas {
        width: 100% !important;
        height: 100% !important;
        display: block;
        /*position: relative;*/
        position: absolute;
        top: 0;
        left: 0;
    }

    /* Keep header visible */
    .price-header {
        position: relative;
        z-index: 15;
        background: #e5e5e5;
        border-bottom: 1px solid #dee2e6;
    }
}


label.error {
    width: 240px;
    color: red;
}

input.error {
    border: 2px dotted red;
}





