/* ===========================================
    Day Counter - Tool Specific Styles
    =========================================== */

/* Box Styling */
.dc-box {
    max-width: 650px;
    margin: 0 auto;
    padding: 0; 
}

/* Form Container */
.dc-form {
    padding: 20px; 
    border: 1px solid #FFECB3; /* Light Amber Border */
    border-radius: 8px;
    background-color: #FFFDE7; /* Light Yellow/Cream Background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.dc-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFC107; /* Amber */
    border-bottom: 2px solid #FFECB3;
    padding-bottom: 5px; 
    margin-top: 5px; 
    margin-bottom: 20px; 
}

/* Date Input Grid (Side-by-Side) */
.dc-date-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: space-between;
    gap: 15px 2%; /* Vertical and horizontal gap */
}

.dc-input-group {
    display: flex;
    flex-direction: column;
    flex-basis: 48%; /* Two inputs per row */
    min-width: 140px;
}

.dc-input-group label {
    font-weight: 500;
    color: #495057;
    font-size: 0.95rem; 
    margin-bottom: 6px;
}

.dc-input-group input[type="date"] {
    padding: 10px;
    border: 1px solid #FFD54F;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}

/* Option Checkbox Row (Side-by-Side) */
.dc-options-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 15px 15px;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed #FFD54F;
}

.dc-checkbox-group {
    display: flex;
    align-items: center;
    flex-basis: 48%; /* Two options per row */
}
.dc-checkbox-group input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #FFC107;
    width: 18px;
    height: 18px;
}
.dc-checkbox-group label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #495057;
}

/* Responsive adjustments for date grid */
@media (max-width: 500px) {
    .dc-input-group, .dc-checkbox-group {
        flex-basis: 100%; /* Stack dates and options on small screens */
    }
}

/* Button Styles */
.dc-calculate-btn {
    display: block;
    width: 100%;
    padding: 14px; 
    margin-top: 25px; 
    background-color: #FFC107; /* Primary Amber */
    color: #333;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}
.dc-calculate-btn:hover {
    background-color: #FFB300;
}

/* Results Display */
.dc-results {
    margin-top: 20px; 
    padding: 20px;
    border: 2px solid #FFB300; 
    border-radius: 8px;
    background-color: #FFF8E1; /* Lighter Yellow/Cream */
    text-align: center;
}

.dc-results-title {
    color: #FFC107;
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #FFD54F;
    padding-bottom: 5px;
}

/* Key Result Display */
.dc-key-result {
    margin: 15px 0;
}
.dc-key-result .dc-data-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6C7A89;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.dc-key-result .dc-data-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #009688; /* Teal for high contrast */
}
.dc-key-result .dc-data-subtext {
    font-size: 1rem;
    color: #795548; /* Brown for detail */
    margin-top: 5px;
}

.dc-recalculate-btn {
    padding: 8px 15px;
    margin-top: 20px;
    background-color: #FFD54F;
    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;
}