/* ===========================================
    Circle Calculator - Tool Specific Styles
    =========================================== */

/* Box Styling */
.cc-box {
    max-width: 650px;
    margin: 0 auto;
    padding: 0; 
}

/* Form Container */
.cc-form {
    padding: 20px; 
    border: 1px solid #B2EBF2; /* Light Cyan Border */
    border-radius: 8px;
    background-color: #F8FFFF; /* Very Light Blue/White Background */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.cc-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #00838F; /* Dark Cyan */
    border-bottom: 2px solid #80DEEA;
    padding-bottom: 5px; 
    margin-top: 5px; 
    margin-bottom: 20px; 
}

/* Input Group for Single Input */
.cc-input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.cc-input-group label {
    font-weight: 500;
    color: #495057;
    font-size: 0.95rem; 
    margin-bottom: 6px;
}

.cc-input-row {
    display: flex;
    gap: 10px;
}

.cc-input-row select, .cc-input-row input {
    padding: 10px;
    border: 1px solid #B0BEC5;
    border-radius: 6px;
    font-size: 1rem;
}

.cc-input-row select {
    flex-basis: 40%;
    text-align: left;
    background-color: #ffffff;
    cursor: pointer;
}

.cc-input-row input {
    flex-basis: 60%;
    text-align: right;
}

/* Button Styles */
.cc-calculate-btn {
    display: block;
    width: 100%;
    padding: 14px; 
    margin-top: 10px; 
    background-color: #00838F; /* Primary Dark Cyan */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}
.cc-calculate-btn:hover {
    background-color: #006064;
}

/* Results Display */
.cc-results {
    margin-top: 20px; 
    padding: 20px;
    border: 2px solid #4DB6AC; 
    border-radius: 8px;
    background-color: #E0F7FA; /* Very Light Cyan */
}

.cc-results-title {
    color: #00838F;
    font-size: 1.5rem;
    margin-bottom: 15px;
    border-bottom: 2px solid #4DB6AC;
    padding-bottom: 5px;
    text-align: center;
}

/* Results Grid */
.cc-data-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Two columns */
    gap: 15px; 
    margin-top: 15px; 
}

.cc-data-segment {
    background: #ffffff;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
    border: 1px solid #B2EBF2;
}

.cc-data-segment .cc-data-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6C7A89;
    text-transform: uppercase;
    margin-bottom: 5px;
}
.cc-data-segment .cc-data-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: #00838F; 
}
.cc-data-segment .cc-data-value.large {
    font-size: 1.6rem;
    color: #E53935; /* Highlight key property, e.g., Area */
}


/* Responsive adjustments */
@media (max-width: 500px) {
    .cc-data-grid {
        grid-template-columns: 1fr; /* Stack results on small screens */
    }
}


/* ===========================================
    SEO Content FIXES (Critical Formatting Overrides)
    =========================================== */

/* Target the h4s within the SEO content to ensure they have vertical clearance */
.seo-content h4 {
    margin-top: 25px !important;
    margin-bottom: 10px !important;
}

/* Ensure MathJax Display blocks are treated as full-width elements */
.seo-content .MathJax_Display, .seo-content [role="presentation"] {
    display: block !important;
    margin-top: 15px !important;
    margin-bottom: 15px !important;
    width: 100% !important;
}

/* Ensure paragraphs surrounding the h4 headings have proper spacing */
.seo-content p {
    margin-bottom: 10px;
}