/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6; /* Light background */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Brand Colors */
:root {
    --primary-color: #2556A3; /* Credit Samadhaan Blue */
    --secondary-color: #81BE59; /* Credit Samadhaan Green */
    --accent-color: #FFA500; /* Orange for CTAs or highlights */
    --text-color: #333;
    --light-text-color: #fff;
    --border-color: #ddd;
    --input-bg: #fff;
    --card-bg: #fff;
}

/* Header */
header {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 10px 0;
    border-bottom: 5px solid var(--secondary-color);
}

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

#logo {
    height: 50px; /* Adjust as needed */
}

.promo-offers {
    display: none; /* Hidden on small screens, shown on larger */
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.promo-offers a {
    color: var(--light-text-color);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 5px 8px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
.promo-offers a:hover {
    background-color: rgba(255,255,255,0.2);
}


#lang-select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--input-bg);
    color: var(--primary-color);
    font-weight: bold;
}

/* Main Content Sections */
main section {
    padding: 40px 0;
}

.calculator-intro {
    background-color: var(--card-bg);
    text-align: center;
    padding-bottom: 30px;
}

.calculator-intro h1 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.short-description {
    font-size: 1.1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
}

.calculator-section {
    background-color: #eef3f7; /* Slightly different bg for calculator area */
}

.calculator-form-container, .results-container, .what-next-container {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.calculator-form-container h2, .results-container h3, .what-next-container h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #444;
    font-size: 0.95rem;
}

.form-group input[type="number"], .form-group input[type="email"] {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    background-color: var(--input-bg);
}
.form-group input[type="number"]:focus, .form-group input[type="email"]:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 2px rgba(129, 190, 89, 0.3);
}


/* Buttons */
.cta-button, .cta-button-secondary, .cta-button-small, .report-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--light-text-color) !important;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
}
.cta-button:hover, .cta-button-secondary:hover, .cta-button-small:hover, .report-btn:hover {
    background-color: #6aa347; /* Darker green */
    transform: translateY(-2px);
}
.cta-button {
    width: 100%;
    margin-top: 25px;
    max-width: 300px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.cta-button-secondary {
    background-color: var(--primary-color);
}
.cta-button-secondary:hover {
    background-color: #1e4583; /* Darker blue */
}
.cta-button-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}


/* Results */
.result-item {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 1.05rem;
}
.result-item:last-of-type {
    border-bottom: none;
}
.result-item strong {
    color: var(--primary-color);
}
.result-item.highlight strong {
    color: var(--secondary-color);
    font-size: 1.3rem;
}
.result-note {
    font-size: 0.9rem;
    color: #777;
    margin-top: 10px;
    text-align: center;
}
.result-cta {
    text-align: center;
    margin-top: 25px;
    padding: 15px;
    background-color: #f0f8ff; /* Light blue background */
    border-radius: 5px;
    border: 1px solid var(--primary-color);
}
.result-cta p {
    margin-bottom: 10px;
    font-size: 1.05rem;
}

/* Report Buttons & Email Form */
.report-buttons {
    margin-top: 25px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 15px;
}
.report-btn {
    background-color: var(--accent-color); /* Orange */
}
.report-btn:hover {
    background-color: #e69500; /* Darker orange */
}

#emailForm {
    margin-top: 20px;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}
#emailForm input[type="email"] {
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    flex-grow: 1;
    max-width: 300px;
}
#emailForm button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
#emailForm button:hover {
    background-color: #1e4583;
}

/* Personalized Tips */
.personalized-tips {
    margin-top: 20px;
    padding: 15px;
    background-color: #e6f7ff; /* Light cyan background */
    border-left: 5px solid var(--primary-color);
    border-radius: 0 5px 5px 0;
}
.personalized-tips h4 {
    color: var(--primary-color);
    margin-bottom: 8px;
}
.personalized-tips p {
    margin-bottom: 5px;
    font-size: 0.95rem;
}

/* What's Next Section */
.what-next-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.what-next-options .option {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    text-align: center;
}
.what-next-options .option h4 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}
.what-next-options .option p {
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* Share Section */
.share-section {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    text-align: center;
}
.share-section h3 {
    margin-bottom: 15px;
    font-size: 1.6rem;
}
#shareBtn {
    background-color: var(--secondary-color);
}
#shareBtn:hover {
    background-color: #6aa347;
}


/* SEO Content Section */
.seo-content {
    padding: 40px 0;
    background-color: #fff;
}
.seo-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}
#long-description-content p, #long-description-content ul, #long-description-content h3 {
    margin-bottom: 15px;
    text-align: justify;
}
#long-description-content h3 {
    color: var(--secondary-color);
    margin-top: 20px;
}
#long-description-content ul {
    list-style-position: inside;
    padding-left: 20px;
}

/* Ad Banner Section */
.ad-banner-section {
    padding: 0; /* No extra padding */
    background-color: #f0f0f0; /* Fallback background */
}
.full-width-banner {
    width: 100%;
    display: block;
    height: auto; /* Maintain aspect ratio */
    max-height: 500px; /* Control max height */
    object-fit: cover; /* Cover the area */
}

/* Footer */
footer {
    background-color: #2c3e50; /* Dark blue-grey */
    color: #ecf0f1; /* Light grey text */
    padding: 40px 0 20px;
}
.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}
.footer-column h4 {
    color: var(--secondary-color);
    margin-bottom: 15px;
}
.footer-column p, .footer-column a {
    color: #bdc3c7; /* Lighter grey for text */
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 8px;
}
.footer-column a:hover {
    color: var(--light-text-color);
    text-decoration: underline;
}
#newsletterForm {
    display: flex;
    margin-bottom: 10px;
}
#newsletterForm input[type="email"] {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #34495e; /* Darker border */
    border-radius: 4px 0 0 4px;
    background-color: #34495e; /* Dark input bg */
    color: var(--light-text-color);
}
#newsletterForm button, .whatsapp-btn {
    padding: 10px 15px;
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}
#newsletterForm button {
    border-radius: 0 4px 4px 0;
}
.whatsapp-btn {
    background-color: #25D366; /* WhatsApp Green */
    color: white;
    border-radius: 4px;
    width: 100%;
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
}
.whatsapp-btn:hover {
    background-color: #1DAE52;
}
#newsletterForm button:hover {
    background-color: #6aa347;
}
.community-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text-color) !important;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
}
.community-link:hover {
    background-color: #1e4583;
    text-decoration: none;
}
.footer-ad {
    font-size: 0.85rem;
    margin-top: 15px;
    font-style: italic;
    color: #95a5a6; /* Even lighter grey */
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e; /* Darker separator */
    font-size: 0.9rem;
}

/* Sr-only for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .promo-offers {
        display: none; /* Hide on medium screens if too cluttered */
    }
     header .container {
        flex-direction: column;
        gap: 15px;
    }
}

@media (min-width: 769px) { /* Show promo offers on larger screens */
    .promo-offers {
        display: flex; 
    }
}


@media (max-width: 768px) {
    .calculator-intro h1 {
        font-size: 1.8rem;
    }
    .short-description {
        font-size: 1rem;
    }
    .form-grid {
        grid-template-columns: 1fr; /* Stack form elements */
    }
    .calculator-form-container h2, .results-container h3, .what-next-container h3 {
        font-size: 1.5rem;
    }
    .result-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .result-item strong {
        margin-top: 5px;
    }
    #emailForm {
        flex-direction: column;
    }
    #emailForm input[type="email"] {
        width: 100%;
        max-width: none;
        margin-bottom: 10px;
    }
    #emailForm button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }
    header .container {
        flex-direction: column;
        gap: 10px;
    }
    #logo {
        height: 40px;
    }
    .report-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .report-btn {
        width: 100%;
    }
}