.header-bg {
    background: url('../images/banner/solar-calsi-bg.jpg') no-repeat center/cover;
    width: 100%;
    height: 250px;
    position: relative;
}

/* Dark overlay for better text visibility */
.header-bg .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

/* Centered text */
.header-bg .header-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -20%);
    color: #fff;
    font-size: 3rem;
    font-weight: 600;
    z-index: 1;
    margin: 0;
}

.inner-solar-calsi {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* solar calsi aside */
.solar-calsi-aside-card {
    background-color: rgba(147, 146, 191, 0.144);
    height: fit-content;
    border: 1px solid rgba(163, 163, 218, 0.185);
}

.calculator-card {
    border: 1px solid rgba(163, 163, 218, 0.49);
}

#billRange::-webkit-slider-runnable-track {
    background: #959393;
}

/* Input Styling */
.form-control-custom {
    border: 1px solid #dee2e6;
    padding: 10px 12px;
    color: #333;
    font-weight: 500;
}

/* Loading Spinner State */
.form-control-custom.loading {
    background-image: url('https://i.gifer.com/ZZ5H.gif');
    background-size: 20px;
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.form-control-custom:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: 0;
}

/* Location Not Reached Banner */
.location-alert {
    display: none;
    /* Hidden by default */
    background-color: #eef4ff;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
    position: relative;
    align-items: center;
    gap: 15px;
}

/* Helper to show banner via JS */
.location-alert.show {
    display: flex;
}

.map-icon-bg {
    background: #dceaff;
    padding: 8px;
    border-radius: 6px;
    color: #2563eb;
}

.location-alert h6 {
    font-size: 14px;
    margin: 0;
    color: #333;
}

.location-alert p {
    font-size: 12px;
    margin: 2px 0 0 0;
    color: #666;
}

/* Tooltip Styling */
.custom-tooltip-container {
    position: relative;
    display: inline-block;
}

.custom-tooltip-box {
    visibility: hidden;
    /* Hidden by default */
    opacity: 0;
    transition: opacity 0.2s;
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 12px;
    position: absolute;
    z-index: 100;
    bottom: 140%;
    /* Moved up slightly to clear the cursor */
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    font-size: 13px;
    line-height: 1.4;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Show Tooltip on Hover */
.custom-tooltip-container:hover .custom-tooltip-box {
    visibility: visible;
    opacity: 1;
}

/* Tooltip Arrow */
.custom-tooltip-box::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #1a1a1a transparent transparent transparent;
}

/* Range Slider Styling */
.range-container {
    position: relative;
    margin-top: 25px;
}

/* Disabled State for Slider Section */
.slider-section {
    transition: opacity 0.3s;
}

.slider-section.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.min-max-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    margin-top: -8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'%3E%3Cpath d='M8 6h2v12H8zm6 0h2v12h-2z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: #e9ecef;
    border-radius: 4px;
}

/* The Price Box */
.price-badge {
    background-color: #121b4f;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    display: inline-block;
    font-weight: bold;
    font-size: 18px;
    margin-top: 10px;
}

.price-badge.disabled {
    background-color: #9ca3af;
}


/* bside */
/* Card container styling */
.result-card {
    background: #fff;
    border: 1px solid rgba(163, 163, 218, 0.49);
    /* Light grey border */
    border-radius: 12px;
    /* Rounded corners */
    overflow: hidden;
    /* Keeps child elements inside rounded corners */
    margin-bottom: 24px;
}

/* Padding for the main content area of the card */
.result-card-body {
    padding: 20px;
}

/* The footer area with the gray background */
.result-card-footer {
    background-color: #f8f9fa;
    /* Light gray background */
    border-top: 1px solid #dee2e6;
    padding: 15px;
    text-align: center;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Typography for Values (e.g., 2.16 kW) */
.result-value {
    font-size: 1.2rem;
    /* Large text */
    font-weight: 700;
    /* Bold */
    color: #212529;
    /* Dark black/gray */
    margin-top: 5px;
}

/* Typography for Labels (e.g., System Size) */
.result-label {
    font-size: 0.8rem;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* Space between icon and text */
}

/* Custom icons to match the design style */
.result-label i {
    font-size: 1.1rem;
    color: #6c757d;
}

/* The vertical line between columns */
.vertical-divider {
    border-right: 1px solid #dee2e6;
}

/* Link styling */
.get-touch-link {
    color: #0d6efd;
    /* Bootstrap Blue */
    text-decoration: underline;
    cursor: pointer;
}

/* Section Headings */
.section-heading {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 15px;
}

#solarCalculator {
    display: none;
}


@media(max-width:768px) {
    .header-bg .header-title {
        font-size: 2rem;
    }
}

@media(max-width:1064px) {
    .inner-solar-calsi {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}