.tg-housing-hero {
    padding: 70px 0 60px;
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.16), transparent 55%),
        radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.18), transparent 60%),
        #f3f4f6;
}

.tg-housing-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.1fr);
    gap: 32px;
    align-items: center;
}

.tg-housing-hero-left h1 {
    font-size: 2.1rem;
    margin: 8px 0 10px;
    color: #0f172a;
}

.tg-housing-hero-left p {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.7;
}

.tg-housing-hero-list {
    margin: 12px 0 18px;
    padding-left: 18px;
    color: #111827;
    font-size: 0.9rem;
}

.tg-housing-hero-list li {
    margin-bottom: 4px;
}

.tg-housing-cta {
    margin-top: 4px;
}

/* Right side card + image */
.tg-housing-hero-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tg-housing-hero-card {
    background: #020617;
    color: #e5e7eb;
    border-radius: 20px;
    padding: 18px 18px 16px;
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.75);
    animation: tg-fade-up 0.6s ease forwards;
    opacity: 0;
    transform: translateY(18px);
}

.tg-housing-hero-card .badge {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #a5b4fc;
    margin-bottom: 12px;
}

.tg-housing-hero-card .stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
}

.tg-housing-hero-card .num {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #f9fafb;
}

.tg-housing-hero-card .label {
    display: block;
    font-size: 0.75rem;
    color: #9ca3af;
}

.tg-housing-hero-card .note {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Hero image */
.tg-housing-hero-image {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.55);
    animation: tg-fade-up 0.7s ease forwards;
    opacity: 0;
    transform: translateY(18px);
}

.tg-housing-hero-image img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    transform: scale(1.03);
    transition: transform 0.5s ease;
}

.tg-housing-hero-image:hover img {
    transform: scale(1.08);
}

/* FORM SECTION */
.tg-housing-form-section {
    padding: 60px 0 70px;
    background: #ffffff;
}

.tg-housing-form-card {
    max-width: 880px;
    margin: 0 auto;
    animation: tg-fade-up 0.6s ease forwards;
    opacity: 0;
    transform: translateY(18px);
}

.tg-housing-form {
    background: #ffffff;
    border-radius: 20px;
    padding: 22px 20px 18px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.55);
}

.tg-housing-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 18px;
    margin-bottom: 12px;
}

.tg-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tg-field label {
    font-size: 0.8rem;
    font-weight: 500;
    color: #374151;
}

.tg-field input,
.tg-field select,
.tg-field textarea {
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.9);
    padding: 8px 10px;
    font-size: 0.9rem;
    outline: none;
    background-color: #f9fafb;
    transition: border-color 0.18s ease, box-shadow 0.18s ease,
        background-color 0.18s ease;
}

.tg-field textarea {
    resize: vertical;
}

.tg-field input:focus,
.tg-field select:focus,
.tg-field textarea:focus {
    border-color: var(--tg-blue);
    background-color: #ffffff;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

.tg-housing-form-footer {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.tg-form-note {
    font-size: 0.75rem;
    color: #6b7280;
}

/* ===== IMPROVED: WHY SOCIETIES GO SOLAR + WHY CHOOSE TECHGREEN ===== */

/* --- Benefits section (Why Societies Go Solar) --- */
.tg-housing-benefits {
    padding: 80px 0 75px;
    background: radial-gradient(circle at top left,
                rgba(34, 197, 94, 0.10),
                transparent 55%),
                #f9fafb;
}

.tg-housing-benefits-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
    column-gap: 40px;
    row-gap: 32px;
    align-items: flex-start;
}

/* Left text block */
.tg-hb-text .tg-section-kicker {
    margin-bottom: 6px;
    opacity: 0;
    transform: translateY(18px);
    animation: tg-fade-up 0.5s ease forwards;
}

.tg-hb-text h2 {
    font-size: 2rem;
    margin: 0 0 14px;
    color: #0f172a;
    opacity: 0;
    transform: translateY(20px);
    animation: tg-fade-up 0.6s ease forwards;
}

.tg-hb-text .tg-section-text {
    font-size: 0.96rem;
    color: #4b5563;
    line-height: 1.7;
    margin: 0 0 14px;
    max-width: 650px;
    opacity: 0;
    transform: translateY(22px);
    animation: tg-fade-up 0.7s ease forwards;
}

.tg-hb-list {
    margin: 10px 0 0;
    padding-left: 20px;
    font-size: 0.94rem;
    color: #111827;
}

.tg-hb-list li {
    margin-bottom: 6px;
    position: relative;
    opacity: 0;
    transform: translateY(18px);
    animation: tg-fade-up 0.45s ease forwards;
}

.tg-hb-list li:nth-child(1) { animation-delay: 0.15s; }
.tg-hb-list li:nth-child(2) { animation-delay: 0.23s; }
.tg-hb-list li:nth-child(3) { animation-delay: 0.31s; }
.tg-hb-list li:nth-child(4) { animation-delay: 0.39s; }

/* Right cards */
.tg-hb-cards {
    display: grid;
    gap: 18px;
}

.tg-hb-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px 18px 16px;
    box-shadow:
        0 22px 55px rgba(15, 23, 42, 0.18),
        0 0 0 1px rgba(148, 163, 184, 0.3);
    font-size: 0.94rem;
    color: #111827;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(22px);
    animation: tg-fade-up 0.6s ease forwards;
}

.tg-hb-card:nth-child(1) { animation-delay: 0.25s; }
.tg-hb-card:nth-child(2) { animation-delay: 0.35s; }

.tg-hb-card h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
    color: #0f172a;
}

/* Hover effect */
.tg-hb-card:hover {
    transform: translateY(8px) scale(1.01);
    box-shadow:
        0 28px 60px rgba(15, 23, 42, 0.28),
        0 0 0 1px rgba(37, 99, 235, 0.35);
    transition: 0.22s ease;
}

/* --- Why Choose TechGreen section --- */
.tg-housing-choose {
    padding: 80px 0 80px;
    background: #020617;
    color: #e5e7eb;
    position: relative;
}

.tg-housing-choose::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top center,
                rgba(34, 197, 94, 0.16),
                transparent 60%);
    opacity: 0.8;
    pointer-events: none;
}

.tg-housing-choose .tg-section-head {
    position: relative;
    text-align: left;
    margin-bottom: 32px;
}

.tg-housing-choose .tg-section-kicker {
    color: #a5b4fc;
    opacity: 0;
    transform: translateY(18px);
    animation: tg-fade-up 0.5s ease forwards;
}

.tg-housing-choose .tg-section-head h2 {
    color: #f9fafb;
    margin-top: 4px;
    opacity: 0;
    transform: translateY(20px);
    animation: tg-fade-up 0.6s ease forwards;
}

/* Cards grid */
.tg-housing-choose-grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    z-index: 1;
}

.tg-hc-card {
    background: radial-gradient(circle at top left,
                rgba(250, 204, 21, 0.22),
                rgba(15, 23, 42, 1));
    border-radius: 22px;
    padding: 18px 16px 20px;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.95);
    font-size: 0.92rem;
    line-height: 1.7;
    color: #e5e7eb;
    transform: translateY(26px);
    opacity: 0;
    animation: tg-fade-up 0.7s ease forwards;
    border: 1px solid rgba(148, 163, 184, 0.5);
}

.tg-hc-card:nth-child(1) { animation-delay: 0.15s; }
.tg-hc-card:nth-child(2) { animation-delay: 0.25s; }
.tg-hc-card:nth-child(3) { animation-delay: 0.35s; }
.tg-hc-card:nth-child(4) { animation-delay: 0.45s; }

.tg-hc-card h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: #facc15;
}

/* Card hover */
.tg-hc-card:hover {
    transform: translateY(14px) scale(1.02);
    box-shadow:
        0 32px 70px rgba(15, 23, 42, 1),
        0 0 0 1px rgba(250, 204, 21, 0.6);
    transition: 0.22s ease;
}

/* Responsive tweaks */
@media (max-width: 1024px) {
    .tg-housing-benefits-layout {
        grid-template-columns: 1fr;
    }

    .tg-housing-choose-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tg-housing-choose-grid {
        grid-template-columns: 1fr;
    }

    .tg-housing-benefits {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    .tg-housing-choose {
        padding-top: 60px;
        padding-bottom: 60px;
    }
}

/* ===== SUBSIDY TABLE SECTION ===== */

.tg-subsidy {
    padding: 70px 0 70px;
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), transparent 55%),
        #f3f4f6;
}

.tg-subsidy-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 28px;
}

.tg-subsidy-card {
    max-width: 980px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 22px;
    padding: 20px 20px 18px;
    box-shadow:
        0 26px 60px rgba(15, 23, 42, 0.25),
        0 0 0 1px rgba(148, 163, 184, 0.35);
    overflow: hidden;
    animation: tg-fade-up 0.6s ease forwards;
    opacity: 0;
    transform: translateY(24px);
}

/* Table */
.tg-subsidy-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    text-align: center;
}

.tg-subsidy-table thead tr {
    background: linear-gradient(90deg, #020617, #111827);
}

.tg-subsidy-table th {
    padding: 14px 10px;
    color: #f9fafb;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(15, 23, 42, 0.8);
}

.tg-subsidy-table tbody tr {
    background: #f9fafb;
    transition: 0.22s ease;
}

.tg-subsidy-table tbody tr:nth-child(2n) {
    background: #eef2ff;
}

.tg-subsidy-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(209, 213, 219, 0.8);
    color: #111827;
}

/* Row hover */
.tg-subsidy-table tbody tr:hover {
    background: #e0f2fe;
    transform: scale(1.01);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}

/* Note text */
.tg-subsidy-note {
    margin-top: 10px;
    font-size: 0.8rem;
    color: #6b7280;
    text-align: right;
}

/* Responsive */
@media (max-width: 640px) {
    .tg-subsidy-card {
        padding: 14px 10px 14px;
    }

    .tg-subsidy-table th,
    .tg-subsidy-table td {
        padding: 10px 6px;
        font-size: 0.85rem;
    }

    .tg-subsidy-note {
        text-align: left;
    }
}


/* ===== IMPROVED: HOUSING SOCIETY FORM SECTION ===== */

/* Section background + spacing */
.tg-housing-form-section {
    padding: 80px 0 85px;
    background:
        radial-gradient(circle at top left, rgba(34, 197, 94, 0.18), transparent 55%),
        radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.18), transparent 60%),
        #f3f4f6;
}

.tg-housing-form-section .tg-section-head {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 28px;
}

/* Glassy card */
.tg-housing-form-card {
    max-width: 980px;
    margin: 0 auto;
    position: relative;
    border-radius: 26px;
    padding: 1px;                    /* for border gradient */
    background: linear-gradient(135deg,
                rgba(148, 163, 184, 0.7),
                rgba(56, 189, 248, 0.7));
    box-shadow: 0 26px 70px rgba(15, 23, 42, 0.5);
    overflow: hidden;
    opacity: 0;
    transform: translateY(26px);
    animation: tg-fade-up 0.7s ease forwards;
}

/* Inner white panel */
.tg-housing-form {
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    padding: 26px 24px 22px;
    backdrop-filter: blur(10px);
}

/* Grid */
.tg-housing-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
    margin-bottom: 16px;
}

/* Fields */
.tg-housing-form .tg-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transform: translateY(18px);
    animation: tg-form-slide-up 0.5s ease forwards;
}

/* Staggered fields animation */
.tg-housing-form .tg-field:nth-child(1)  { animation-delay: 0.10s; }
.tg-housing-form .tg-field:nth-child(2)  { animation-delay: 0.14s; }
.tg-housing-form .tg-field:nth-child(3)  { animation-delay: 0.18s; }
.tg-housing-form .tg-field:nth-child(4)  { animation-delay: 0.22s; }
.tg-housing-form .tg-field:nth-child(5)  { animation-delay: 0.26s; }
.tg-housing-form .tg-field:nth-child(6)  { animation-delay: 0.30s; }
.tg-housing-form .tg-field:nth-child(7)  { animation-delay: 0.34s; }
.tg-housing-form .tg-field:nth-child(8)  { animation-delay: 0.38s; }

/* Labels + inputs */
.tg-housing-form .tg-field label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #111827;
}

.tg-housing-form .tg-field input,
.tg-housing-form .tg-field select,
.tg-housing-form .tg-field textarea {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.9);
    background: #f9fafb;
    padding: 9px 12px;
    font-size: 0.9rem;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease,
        transform 0.12s ease;
}

/* Focus state */
.tg-housing-form .tg-field input:focus,
.tg-housing-form .tg-field select:focus,
.tg-housing-form .tg-field textarea:focus {
    outline: none;
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

/* Footer line (note + button) */
.tg-housing-form-footer {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px dashed rgba(148, 163, 184, 0.7);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.tg-housing-form-footer .tg-form-note {
    font-size: 0.78rem;
    color: #6b7280;
}

/* Make submit button stand out a bit more */
.tg-housing-form-footer .tg-btn-primary {
    padding-inline: 22px;
}

/* Extra animation for fields */
@keyframes tg-form-slide-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive tweaks */
@media (max-width: 900px) {
    .tg-housing-form-grid {
        grid-template-columns: 1fr;
    }

    .tg-housing-form {
        padding: 20px 16px 18px;
    }
}

@media (max-width: 640px) {
    .tg-housing-form-section {
        padding: 60px 0 65px;
    }

    .tg-housing-form-card {
        border-radius: 22px;
    }
}



/* ===== IMPROVED FAQ SECTION ===== */

.tg-housing-faq {
    padding: 80px 0 85px;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.15), transparent 55%),
        #f9fafb;
}

.tg-housing-faq .tg-section-head {
    max-width: 760px;
    margin: 0 auto 30px;
    text-align: center;
}

.tg-housing-faq .tg-section-head h2 {
    margin-top: 6px;
}

/* FAQ grid layout */
.tg-faq-grid {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

/* FAQ cards */
.tg-faq-item {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 16px 16px 18px 18px;
    box-shadow:
        0 24px 55px rgba(15, 23, 42, 0.22),
        0 0 0 1px rgba(148, 163, 184, 0.45);
    font-size: 0.92rem;
    line-height: 1.7;
    color: #111827;
    opacity: 0;
    transform: translateY(24px);
    animation: tg-fade-up 0.6s ease forwards;
}

.tg-faq-item:nth-child(1) { animation-delay: 0.10s; }
.tg-faq-item:nth-child(2) { animation-delay: 0.20s; }
.tg-faq-item:nth-child(3) { animation-delay: 0.30s; }

/* Left coloured bar + icon circle */
.tg-faq-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 16px;
    bottom: 16px;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #22c55e, #2563eb);
}

.tg-faq-item h3 {
    margin: 0 0 8px 6px;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
}

.tg-faq-item p {
    margin: 0 0 2px 6px;
}

/* Hover effect */
.tg-faq-item:hover {
    transform: translateY(10px) scale(1.01);
    box-shadow:
        0 30px 70px rgba(15, 23, 42, 0.32),
        0 0 0 1px rgba(37, 99, 235, 0.55);
    transition: 0.22s ease;
}

/* Responsive */
@media (max-width: 1024px) {
    .tg-faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tg-faq-grid {
        grid-template-columns: 1fr;
    }

    .tg-housing-faq {
        padding: 60px 0 70px;
    }
}
