/* ===========================================
    GDP Calculator - Tool Specific Styles
    =========================================== */

/* Box Styling */
.gdp-box {
    max-width: 750px;
    margin: 0 auto;
    padding: 0; 
}

/* Form Container */
.gdp-form {
    padding: 20px; 
    border: 1px solid #C8E6C9; /* Light Green Border */
    border-radius: 8px;
    background-color: #F9FFF9; /* Very Light Green/White Background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.gdp-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #4CAF50; /* Green */
    border-bottom: 2px solid #C8E6C9;
    padding-bottom: 5px; 
    margin-top: 5px; 
    margin-bottom: 20px; 
}

/* Compact Input Grid (Expenditure Components) */
.gdp-compact-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    gap: 15px 2%; /* Vertical and horizontal gap */
}

.gdp-input-group {
    display: flex;
    flex-direction: column;
    flex-basis: 48%; /* Allows two inputs per row */
    min-width: 150px;
}

/* Responsive adjustment for small screens */
@media (max-width: 550px) {
    .gdp-input-group {
        flex-basis: 100%; /* Stack inputs on small screens */
    }
}

.gdp-input-group label {
    font-weight: 500;
    color: #495057;
    font-size: 0.95rem; 
    margin-bottom: 6px;
}

.gdp-input-group input {
    padding: 10px;
    border: 1px solid #A5D6A7;
    border-radius: 6px;
    font-size: 1rem;
    text-align: right;
}
/* Ensure the input box looks like a currency/value input */
.gdp-input-group input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}


/* Button Styles */
.gdp-calculate-btn {
    display: block;
    width: 100%;
    padding: 14px; 
    margin-top: 25px; 
    background-color: #4CAF50; /* Primary Green */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}
.gdp-calculate-btn:hover {
    background-color: #43A047;
}

/* Results Display */
.gdp-results {
    margin-top: 20px; 
    padding: 20px;
    border: 2px solid #66BB6A; 
    border-radius: 8px;
    background-color: #E8F5E9; /* Lightest Green */
    text-align: center;
}

.gdp-results-title {
    color: #4CAF50;
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #A5D6A7;
    padding-bottom: 5px;
}

/* Key Result Display */
.gdp-key-result {
    margin: 15px 0;
}
.gdp-key-result .gdp-data-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6C7A89;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.gdp-key-result .gdp-data-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #00796B; /* Dark Cyan/Teal for contrast */
}
.gdp-key-result .gdp-data-unit {
    font-size: 1.2rem;
    font-weight: 600;
    color: #6C7A89;
    display: block;
    margin-top: 5px;
}

.gdp-recalculate-btn {
    padding: 8px 15px;
    margin-top: 20px;
    background-color: #A5D6A7;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.95rem;
}


/* ===========================================
    SEO Content FIXES (The Critical Formatting Overrides)
    =========================================== */

.seo-content h4 {
    margin-top: 25px !important;
    margin-bottom: 10px !important;
}

.seo-content .MathJax_Display, .seo-content [role="presentation"] {
    display: block !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
    width: 100% !important;
}

.seo-content p {
    margin-bottom: 10px;
}