/*
* Surya Shakti Enterprises Static Website Stylesheet
* Includes full mobile responsiveness and brand colors (Orange/Green)
*/

/* --- Global Setup --- */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    
    /* GLOBAL BACKGROUND SETUP - Ensure website_background.jpg is in the same folder */
    background-color: #f8f9fa;
    background-image: url('website_background.jpg'); 
    background-repeat: repeat; 
    background-attachment: fixed;
    background-size: 1000px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

h1, h2, h3, h4 {
    font-weight: 700;
    margin-top: 0;
}

h2 { font-size: 2.5em; color: #1a4f32; }
h3 { font-size: 1.8em; color: #e44d26; }
h4 { font-size: 1.3em; color: #28a745; }

p { margin-bottom: 1em; }

a {
    color: #28a745;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #1e7e34;
}

.text-left { text-align: left; }
.text-center { text-align: center; }

/* --- Header/Navigation --- */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    margin-right: 10px;
}

header h1 {
    font-size: 28px;
    margin: 0;
    color: #e44d26;
}

header nav a {
    color: #555;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 500;
    font-size: 1.1em;
}

header nav a:hover {
    color: #e44d26;
}

/* --- CTA Buttons --- */
.cta-button {
    display: inline-block;
    background-color: #e44d26;
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.3em;
    font-weight: 700;
    margin-top: 20px;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(228, 77, 38, 0.3);
}

.cta-button:hover {
    background-color: #cf3a17;
    transform: translateY(-2px);
}

.cta-button.secondary {
    background-color: #28a745;
    box-shadow: 0 4px 10px rgba(40, 167, 69, 0.3);
}

.cta-button.secondary:hover {
    background-color: #1e7e34;
}

/* --- Sections --- */
section {
    padding: 60px 0;
    text-align: center;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

/* --- Hero Section - Home Page --- */
.hero {
    background: linear-gradient(to bottom, #fff, #ebedee);
    padding: 80px 0;
    border-bottom: 5px solid #28a745;
}

.hero .tagline {
    font-size: 1.2em;
    color: #e44d26;
    margin-bottom: 10px;
}

.hero h2 { font-size: 3.5em; }
.hero h3 { font-size: 1.8em; }

.hero-main-image {
    max-width: 80%;
    height: auto;
    margin: 20px auto 30px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.hero-callout {
    background-color: #fff;
    border: 2px solid #28a745;
    padding: 25px 30px;
    border-radius: 10px;
    max-width: 500px;
    margin: 30px auto 40px auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.hero-callout ul {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 300px;
    margin: 0 auto;
}

.hero-callout ul li {
    font-size: 1.2em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.hero-callout ul li::before {
    content: '\2713';
    color: #28a745;
    font-weight: bold;
    margin-right: 10px;
}

.hero-callout .highlight {
    font-weight: 700;
    color: #1a4f32;
}

/* --- Info Strip --- */
.info-strip {
    background-color: #28a745;
    color: white;
    padding: 15px 0;
    display: flex;
    justify-content: center;
}

.info-strip p { margin: 0 20px; font-weight: 500; }
.info-strip .learn-more { color: white; text-decoration: underline; font-weight: bold; margin-left: 15px; }

/* --- Benefits Grid --- */
.benefits-grid {
    background-color: #f8f9fa;
}

.grid-items {
    display: flex;
    justify-content: space-around;
    gap: 25px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.benefit-card {
    flex-basis: calc(25% - 25px);
    padding: 30px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.benefit-card img {
    height: 70px;
    margin-bottom: 15px;
}

/* --- Impact Section --- */
.impact-section {
    padding: 80px 0;
}

.impact-image {
    max-width: 70%;
    height: auto;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- Scheme Page/About Page Hero --- */
.page-hero {
    background-color: #ebedee;
    padding: 40px 0 20px;
}

.scheme-banner-image, .about-hero-image, .contact-hero-image {
    max-width: 100%;
    height: auto;
    margin-top: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- Scheme Details --- */
.scheme-overview p, .our-story p, .mission-vision p {
    max-width: 900px;
    margin: 0 auto 1em auto;
    text-align: center;
}
.scheme-overview .text-left, .our-story .text-left, .mission-vision .text-left {
    text-align: left;
}


.benefits-columns {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.benefit-item {
    flex-basis: calc(25% - 30px);
    text-align: center;
}

.subsidy-details ul, .eligibility ul {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 20px auto;
    text-align: left;
}

.subsidy-details li, .eligibility li, .our-values ul li {
    background: #f0faff;
    border-left: 5px solid #e44d26;
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 1.1em;
}

.process-image {
    max-width: 90%;
    margin: 30px auto;
}

.qr-code-image {
    max-width: 180px;
    margin-top: 20px;
}

/* --- Contact Page Styles --- */
.contact-details {
    background-color: #f8f9fa;
}

.contact-info-grid {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.info-card {
    flex-basis: calc(33.33% - 30px);
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 30px auto 0;
    text-align: left;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.form-group { margin-bottom: 15px; }

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 1em;
}

.contact-form textarea { resize: vertical; }

.whatsapp-cta { background-color: #e6f7e6; }

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    background-color: #25D366;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: 700;
    margin-top: 20px;
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.4);
    transition: background-color 0.3s;
}

.whatsapp-button:hover { background-color: #128C7E; }

/* --- Footer --- */
footer {
    background-color: #333;
    color: white;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

footer a { color: #e4d7d0; }
footer a:hover { color: #e44d26; }
footer p { margin: 5px 0; }

.social-links { margin-top: 15px; }
.social-links a { margin: 0 10px; font-size: 1.1em; }


/* --- Responsive Design --- */
@media (max-width: 992px) {
    .hero h2 { font-size: 3em; }
    .hero-main-image, .impact-image { max-width: 100%; }

    .grid-items { gap: 20px; }
    .benefit-card { flex-basis: calc(50% - 20px); }
    
    .benefits-columns { gap: 20px; }
    .benefit-item { flex-basis: calc(50% - 20px); }

    .contact-info-grid { gap: 20px; }
    .info-card { flex-basis: 45%; }
}

@media (max-width: 768px) {
    header .container { flex-direction: column; align-items: center; }
    header nav { margin-top: 10px; }
    header nav a { margin: 0 10px; font-size: 1em; }

    .hero { padding: 40px 0; }
    .hero h2 { font-size: 2.2em; }
    .hero h3 { font-size: 1.3em; }
    
    /* FIX: Force grids to stack vertically on mobile */
    .grid-items, .benefits-columns, .contact-info-grid {
        flex-direction: column;
        gap: 20px;
    }
    .benefit-card, .benefit-item, .info-card { flex-basis: 100%; }
    
    .info-strip .container { flex-direction: column; }
    .info-strip p { margin-bottom: 10px; }

    /* FIX: Constrain all benefit card images to a small, readable size */
    .benefit-card img {
        width: 80px;
        height: auto;
        max-width: 80px;
        display: block;
        margin: 0 auto 15px auto;
    }
}

/* Additional scaling for ultra-small screens */
@media (max-width: 480px) {
    .benefit-card img {
        width: 60px !important;
        max-width: 60px !important;
    }
}
/* --- FIX for Oversized Icons on Scheme Page Mobile View --- */

@media (max-width: 768px) {

    /* This rule specifically targets the benefit items on the scheme page
       and ensures their images do not stretch past a certain size, 
       even if the parent container allows it. */
    .key-benefits .benefit-item img {
        width: 80px;
        height: auto;
        max-width: 80px;
        margin: 10px auto; /* Re-center icons */
        display: block;
    }
}

@media (max-width: 480px) {
    .key-benefits .benefit-item img {
        width: 60px;
        max-width: 60px;
    }
}
/* Popup Styling */
.popup-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    width: 90%;
    max-width: 450px;
    position: relative;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3);
    animation: popupFade 0.4s ease-out;
}

@keyframes popupFade {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
    color: #333;
}

.popup-content h3 { color: #e44d26; margin-bottom: 10px; }
.popup-content .form-group { margin-bottom: 15px; }
.popup-content input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}
/* --- Real-time validation feedback --- */

/* When the phone number is wrong (less than 10 digits or contains letters) */
.popup-content input:invalid:not(:placeholder-shown) {
    border: 2px solid #ff4d4d; /* Red border */
    background-color: #fffafa; /* Light red tint */
}

/* When the phone number is exactly 10 digits */
.popup-content input:valid {
    border: 2px solid #28a745; /* Green border */
    background-color: #f7fff7; /* Light green tint */
}
/* FORCE POPUP TO THE FRONT */
#popupOverlay {
    display: none; /* JavaScript will change this to 'flex' */
    z-index: 100000 !important; /* Higher than your header (1000) */
    background-color: rgba(0, 0, 0, 0.85) !important;
}

.popup-content {
    z-index: 100001 !important;
}