/* --- HOUSING SOCIETIES HERO SECTION --- */

.hs-hero-section {
    min-height: calc(100vh - 85px); /* Fullscreen effect minus header */
    overflow: hidden;
    background-color: #0c0e1b;
}

/* Background Video Styling */
.hs-hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Dark Gradient Overlay */
.hs-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark Vanguard Navy on the left, fading out on the right */
    background: linear-gradient(90deg, rgba(12,14,27,0.5) 0%, rgba(12,14,27,0.3) 50%, rgba(12,14,27,0) 100%);
    z-index: 1;
}

/* Typography */
.hs-hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: 60px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1px;
}


.hs-hero-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    max-width: 90%;
}

/* Secondary Button Hover */
.hs-btn-secondary {
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
}
.hs-btn-secondary:hover {
    background-color: #ffffff;
    color: #0c0e1b !important;
    transform: translateY(-2px);
}

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 991.98px) {
    .hs-hero-overlay {
        /* On mobile, stack the gradient so text remains readable over the top half */
        background: linear-gradient(180deg, rgba(12,14,27,0.5) 0%, rgba(12,14,27,0.4) 60%, rgba(12,14,27,0.2) 100%);
    }
    .hs-hero-title {
        font-size: 46px;
    }
    .hs-hero-subtitle {
        font-size: 18px;
        max-width: 100%;
    }
}

@media (max-width: 767.98px) {
    .hs-hero-title {
        font-size: 38px;
    }
    .hs-hero-subtitle {
        font-size: 16px;
    }
}






.trust-group-housing{
    gap: 45px;
}






/* --- THE REAL COST OF WAITING SECTION --- */
.cost-waiting-section {
    background-color: #ffffff;
}

/* Callout Card Styling */
.cost-waiting-card {
    background-color: #f8fafc; /* Very soft slate */
    border: 1px solid #e2e8f0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cost-waiting-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05) !important;
}

/* Thick Green Accent Line on the Left Edge */
.cost-waiting-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background-color: #20b038; /* Vanguard Green */
    z-index: 1;
}

/* Divider line between Heading and Paragraph */
.border-md-end {
    border-right: 1px solid #cbd5e1;
}

/* Paragraph Typography */
.cost-waiting-text {
    font-family: 'Poppins', sans-serif;
    font-size: 17px;
    line-height: 1.6;
}

.cost-waiting-text strong {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
}

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 767.98px) {
    /* Change the vertical divider to a horizontal divider on mobile */
    .border-md-end {
        border-right: none;
        border-bottom: 1px solid #cbd5e1;
        padding-bottom: 1.5rem;
    }
    .cost-waiting-text {
        font-size: 15px;
    }
}







/* --- WHY SOLAR MAKES SENSE SECTION --- */
.hs-why-sense-section {
    background-color: #f8fafc; /* Soft slate to contrast the white section above */
}

/* 6-Box Grid Cards */
.hs-sense-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hs-sense-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.06);
    border-color: #20b038; /* Highlights the border Vanguard Green on hover */
}

/* Icon Box Styling */
.hs-sense-icon-box {
    width: 50px;
    height: 50px;
    background-color: #dcfce7; /* Soft Vanguard Green */
    color: #15803d; /* Dark Vanguard Green */
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: transform 0.3s ease;
}

/* Slight icon pop when the card is hovered */
.hs-sense-card:hover .hs-sense-icon-box {
    transform: scale(1.1);
}

/* Text Styling */
.hs-sense-text {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: #0c0e1b;
    line-height: 1.5;
    margin-bottom: 0;
}

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 767.98px) {
    .hs-sense-card {
        padding: 24px 20px;
    }
    .hs-sense-text {
        font-size: 15px;
    }
}








/* --- SUBMIT ENQUIRY SECTION --- */
.hs-enquiry-section {
    /* Rich, deep navy gradient matching the C&I page */
    background: linear-gradient(135deg, #0a1435 0%, #0c0e1b 100%); 
}

.hs-enquiry-headline {
    font-family: 'DM Sans', sans-serif;
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}

.hs-enquiry-subline {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    line-height: 1.6;
    max-width: 400px;
}

.hs-form-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Make dropdown arrows look clean */
select.res-input {
    cursor: pointer;
    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='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 12px 12px;
}

/* --- DESIGNATION RADIO PILLS --- */
.designation-pill {
    border: 1px solid #e2e8f0;
    background-color: #ffffff;
    padding: 8px 12px;
    border-radius: 50px; /* Pill shape */
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #0c0e1b;
    cursor: pointer;
    transition: all 0.2s ease;
}

.designation-pill:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}

/* When the hidden radio input is checked, style the label! */
input[type="radio"]:checked + .designation-pill {
    border-color: #20b038; /* Vanguard Green */
    background-color: rgba(32, 176, 56, 0.05); /* Very soft green tint */
    color: #15803d; /* Dark Vanguard Green text */
}

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 991.98px) {
    .hs-enquiry-headline {
        font-size: 38px;
    }
    .hs-enquiry-subline {
        font-size: 16px;
    }
}

@media (max-width: 767.98px) {
    .hs-enquiry-headline {
        font-size: 34px;
    }
    .designation-pill {
        font-size: 13px;
        padding: 8px 16px;
        flex-grow: 1; /* Makes pills stretch to fill horizontal space nicely on mobile */
        text-align: center;
    }
}






/* --- HOW IT ACTUALLY WORKS SECTION --- */
/* Overrides the homepage image with the Housing Society specific image */
.hs-handle-bg {
    background-image: url('../images/housing/process.png') !important;
}
.hs-handle-image-bg {
    width: 45%;
}

/* .pb-60{
    padding-bottom: 60px;
} */

@media (min-width: 992px) {
    .lg-text-nowrap {
        white-space: nowrap;
    }
}




/* --- SUBSIDY AMOUNT SECTION (Data Dashboard Design) --- */
.hs-subsidy-section {
    background-color: #f8fafc;
}

.hs-subsidy-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    line-height: 1.6;
    max-width: 950px;
}
.hs-subsidy-desc strong {
    color: #0c0e1b;
}

/* Dashboard Container */
.subsidy-dashboard-card {
    border-color: #e2e8f0 !important;
}

/* Background Icon Watermark */
.dashboard-watermark {
    position: absolute;
    bottom: -30px;
    left: -30px;
    font-size: 250px;
    color: rgba(32, 176, 56, 0.03); /* Super faint Vanguard Green */
    z-index: 1;
    pointer-events: none;
    transform: rotate(-15deg);
}

/* Chart Rows & Hover Effect */
.chart-row {
    transition: transform 0.2s ease;
}
.chart-row:not(.max-row):hover {
    transform: translateX(5px); /* Gentle nudge on hover */
}

/* Chart Label (Left Side) */
.chart-label {
    width: 140px;
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #0c0e1b;
}

/* The Progress Bar Track */
.chart-bar-track {
    height: 12px;
    background-color: #f1f5f9;
    border-radius: 50px;
    overflow: hidden;
}

/* The Filled Progress Bar */
.chart-bar {
    height: 100%;
    /* New Gradient: Very Dark Forest Green fading into Vanguard Green (No Blue!) */
    background: linear-gradient(90deg, #064e3b 0%, #20b038 100%);
    border-radius: 50px;
    transform-origin: left;
    transform: scaleX(0); /* Starts hidden (0 width) until triggered */
}

/* This class is injected by JS exactly when the user scrolls to it */
.animate-bars .chart-bar {
    animation: fillBar 1.5s ease-out forwards;
}

@keyframes fillBar {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

/* Chart Value (Right Side) */
.chart-value {
    width: 150px;
    text-align: right;
    font-family: 'DM Sans', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: #20b038;
}

/* Max Cap Highlight Row */
.max-row {
    background: linear-gradient(135deg, #0c0e1b 0%, #1e293b 100%);
    border: 1px solid #334155;
}

@keyframes fillBar {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

/* --- MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 991.98px) {
    .hs-subsidy-desc {
        font-size: 16px;
    }
}

@media (max-width: 767.98px) {
    .subsidy-dashboard-card {
        padding: 30px 20px !important;
    }
    
    /* Ensure rows push text to absolute left and right edges */
    .chart-row {
        justify-content: space-between;
    }
    
    .chart-label {
        width: auto; /* Removed 50% restriction */
        font-size: 16px;
    }
    
    .chart-value {
        width: auto; /* Removed 50% restriction */
        font-size: 20px;
        text-align: right;
    }
    
    /* Force the track to drop below the text and take full width */
    .chart-bar-track {
        width: 100%; 
        order: 3; 
        height: 8px;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .max-row {
        padding: 24px 20px !important;
    }
}