/* ===========================================
    College Cost Calculator - Tool Specific Styles (Compact)
    =========================================== */

.ccc-box {
    max-width: 750px; 
    margin: 0 auto;
    padding: 0; 
}

/* Form Styling */
.ccc-form {
    padding: 15px; 
    border: 1px solid #ffb300; /* Amber/Gold Border */
    border-radius: 6px;
    background-color: #fff8e1; /* Light Amber Background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.ccc-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ff8f00; 
    border-bottom: 2px solid #ffb300;
    padding-bottom: 3px; 
    margin-top: 15px; 
    margin-bottom: 10px; 
}
.input-instruction, .text-hint {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: -5px;
    margin-bottom: 10px;
    display: block;
}

/* Compact Grid Setup (2 Columns) */
.ccc-compact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px; 
}

.ccc-compact-grid.columns-2 .ccc-input-group {
    width: 48.5%; /* Two per row */
}

.ccc-input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px; 
}

.ccc-input-group label {
    font-weight: 500;
    color: #495057;
    font-size: 0.85rem; 
    margin-bottom: 2px;
}

.ccc-input-group input {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: right;
    font-size: 1rem;
}

/* Button Styles */
.ccc-calculate-btn {
    display: block;
    width: 100%;
    padding: 12px; 
    margin-top: 15px; 
    background-color: #ffb300; /* Primary for action */
    color: #333; /* Dark text for contrast */
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.ccc-calculate-btn:hover {
    background-color: #ff8f00;
}

/* Results Display */
.ccc-results {
    margin-top: 20px; 
    padding: 20px;
    border: 2px solid #ffb300; 
    border-radius: 6px;
    background-color: #ffecb3; /* Lighter Amber Background */
    text-align: center;
}

.ccc-results-title {
    color: #ff6f00;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Main Result Grid (Year 1 Cost, Total Cost) */
.ccc-data-grid {
    display: flex;
    justify-content: space-between;
    gap: 15px; 
    margin-bottom: 20px; 
}

.ccc-data-segment.total-result {
    flex-basis: 48%;
    background: #ffffff;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #ced4da;
    transition: border 0.3s;
}

/* Highlight both main results */
.ccc-data-segment.result-total-cost, .ccc-data-segment.result-future-annual {
    border: 3px solid #ffb300;
}

.ccc-data-segment .ccc-data-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ff8f00; 
    margin-top: 5px;
}

.ccc-data-segment .ccc-data-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
}
.ccc-data-segment .ccc-data-subtext {
    font-size: 0.75rem;
    color: #90a4ae;
    margin-top: 5px;
}


.ccc-recalculate-btn {
    padding: 8px 15px;
    margin-top: 15px;
    background-color: #5d4037; /* Brown secondary button */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .ccc-data-grid,
    .ccc-compact-grid.columns-2 {
        flex-direction: column;
        gap: 10px;
    }
    .ccc-data-segment.total-result,
    .ccc-compact-grid.columns-2 .ccc-input-group {
        flex-basis: 100%;
        width: 100% !important;
    }
}