/* ===========================================
    Marriage Tax Calculator - Tool Specific Styles (Compact)
    =========================================== */

.mtc-box {
    max-width: 750px; 
    margin: 0 auto;
    padding: 0; 
}

/* Form Styling */
.mtc-form {
    padding: 15px; 
    border: 1px solid #e91e63; /* Pink Border */
    border-radius: 6px;
    background-color: #fce4ec; /* Light Pink Background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.mtc-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #c2185b; 
    border-bottom: 2px solid #e91e63;
    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) */
.mtc-compact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px; 
}

.mtc-compact-grid.columns-2 .mtc-input-group {
    width: 48.5%; /* Two per row */
}

.mtc-input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px; 
}

.mtc-input-group label {
    font-weight: 500;
    color: #495057;
    font-size: 0.85rem; 
    margin-bottom: 2px;
}

.mtc-input-group input {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: right;
    font-size: 1rem;
}

/* Button Styles */
.mtc-calculate-btn {
    display: block;
    width: 100%;
    padding: 12px; 
    margin-top: 15px; 
    background-color: #e91e63; /* Primary for action */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
}

.mtc-calculate-btn:hover {
    background-color: #c2185b;
}

/* Results Display */
.mtc-results {
    margin-top: 20px; 
    padding: 20px;
    border: 2px solid #e91e63; 
    border-radius: 6px;
    background-color: #f8bbd0; /* Light Pink Background */
    text-align: center;
}

.mtc-results-title {
    color: #880e4f;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Main Result Grid (Single vs Joint) */
.mtc-data-grid {
    display: flex;
    justify-content: space-between;
    gap: 15px; 
    margin-bottom: 20px; 
}

.mtc-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;
}

.mtc-data-segment .mtc-data-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: #495057;
    margin-top: 5px;
}

.mtc-data-segment .mtc-data-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
}
.mtc-data-segment .mtc-data-subtext {
    font-size: 0.75rem;
    color: #90a4ae;
    margin-top: 5px;
}

/* Final Difference Box (Bonus/Penalty) */
.mtc-final-difference {
    padding: 15px;
    border-radius: 6px;
    border: 3px solid; /* Color set by JS */
    margin-bottom: 20px;
    background-color: #ffebee;
}

.mtc-difference-label {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
}
.mtc-difference-value {
    font-size: 2.2rem;
    font-weight: 900;
}
.mtc-difference-subtext {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 5px;
}


.mtc-recalculate-btn {
    padding: 8px 15px;
    margin-top: 15px;
    background-color: #9c27b0;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .mtc-data-grid,
    .mtc-compact-grid.columns-2 {
        flex-direction: column;
        gap: 10px;
    }
    .mtc-data-segment.total-result,
    .mtc-compact-grid.columns-2 .mtc-input-group {
        flex-basis: 100%;
        width: 100% !important;
    }
}