/* ===========================================
    Affordable Rent Calculator - Tool Specific Styles (Compact)
    =========================================== */

.rc-box {
    max-width: 650px; /* Optimal width for compact 2-column layout */
    margin: 0 auto;
    padding: 0; 
}

/* Form Styling */
.rc-form {
    padding: 15px; 
    border: 1px solid #ff9800; /* Orange Border */
    border-radius: 6px;
    background-color: #fffaf0; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.rc-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #ff9800; 
    border-bottom: 2px solid #ff9800;
    padding-bottom: 3px; 
    margin-top: 15px; 
    margin-bottom: 10px; 
}

/* Compact Grid Setup */
.rc-compact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px; 
}

.rc-compact-grid.columns-2 .rc-input-group {
    width: 48.5%; /* Two per row */
}

.rc-input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px; 
}

.rc-input-group label {
    font-weight: 500;
    color: #495057;
    font-size: 0.85rem; 
    margin-bottom: 2px;
}

.rc-input-group input, .rc-input-group select {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: right;
    font-size: 1rem;
}

/* Button Styles */
.rc-calculate-btn {
    display: block;
    width: 100%;
    padding: 10px; 
    margin-top: 15px; 
    background-color: #03a9f4; /* Light Blue Primary for action */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.rc-calculate-btn:hover {
    background-color: #039be5;
}

/* Results Display */
.rc-results {
    margin-top: 20px; 
    padding: 20px;
    border: 2px solid #03a9f4; 
    border-radius: 6px;
    background-color: #e1f5fe; /* Light Blue Background */
    text-align: center;
}

.rc-results-title {
    color: #03a9f4;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.rc-data-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; 
    justify-content: center;
    margin-bottom: 10px; 
}

.rc-data-segment {
    background: #ffffff;
    border-radius: 4px;
    padding: 15px 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.rc-data-segment.rent-result {
    width: 100%;
    background-color: #ffecb3; /* Light Yellow/Amber Background */
    border: 3px solid #ff9800; /* Orange Primary for Rent */
    margin-bottom: 10px;
}

.rc-data-segment.rent-result .rc-data-value {
    font-size: 2.5rem;
    color: #ff9800; 
}

.rc-data-segment.smaller-result {
    width: 48.5%; /* Two per row for breakdowns */
}

.rc-data-segment:not(.rent-result) {
    width: 48.5%;
}

.rc-data-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #03a9f4; 
    line-height: 1.1;
}

.rc-data-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Responsive adjustments */
@media (max-width: 550px) {
    .rc-compact-grid.columns-2 .rc-input-group,
    .rc-data-segment {
        width: 100% !important; /* Stack everything on small screens */
    }
}