/* ===========================================
    Discount Calculator - Tool Specific Styles (Compact)
    =========================================== */

.dc-box {
    max-width: 750px; 
    margin: 0 auto;
    padding: 0; 
}

/* Form Styling */
.dc-form {
    padding: 15px; 
    border: 1px solid #ff5722; /* Deep Orange Border */
    border-radius: 6px;
    background-color: #fbe9e7; /* Light Orange Background */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.dc-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e64a19; 
    border-bottom: 2px solid #ff5722;
    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) */
.dc-compact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px; 
}

.dc-compact-grid .dc-input-group.full-width {
    width: 100%; /* For the main price input */
}
.dc-compact-grid .dc-input-group {
    width: 48.5%; /* Two per row for percentages */
}


.dc-input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 5px; 
}

.dc-input-group label {
    font-weight: 500;
    color: #495057;
    font-size: 0.85rem; 
    margin-bottom: 2px;
}

.dc-input-group input {
    padding: 8px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    text-align: right;
    font-size: 1rem;
}

/* Button Styles */
.dc-calculate-btn {
    display: block;
    width: 100%;
    padding: 12px; 
    margin-top: 15px; 
    background-color: #ff5722; /* Primary Deep Orange for action */
    color: white;
    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: #e64a19;
}

/* Results Display */
.dc-results {
    margin-top: 20px; 
    padding: 20px;
    border: 2px solid #ff5722; 
    border-radius: 6px;
    background-color: #ffccbc; /* Lighter Orange Background */
    text-align: center;
}

.dc-results-title {
    color: #d84315;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Main Result Grid (Final Price, Savings Amount, Effective Rate) */
.dc-data-grid {
    display: flex;
    justify-content: space-between;
    gap: 10px; 
    margin-bottom: 20px; 
}

.dc-data-segment.total-result {
    flex-basis: 32%;
    background: #ffffff;
    border-radius: 6px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #ced4da;
    transition: border 0.3s;
}

/* Highlight Final Price and Savings */
.dc-data-segment.result-final-price {
    border: 3px solid #ff5722;
}
.dc-data-segment.result-savings {
    border: 3px solid #4caf50; /* Green for savings */
}


.dc-data-segment .dc-data-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #e64a19; /* Default color, adjusted by specific result */
    margin-top: 5px;
}

.dc-data-segment.result-savings .dc-data-value {
    color: #388e3c; /* Green for savings value */
}


.dc-data-segment .dc-data-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
}
.dc-data-segment .dc-data-subtext {
    font-size: 0.75rem;
    color: #90a4ae;
    margin-top: 5px;
}


.dc-recalculate-btn {
    padding: 8px 15px;
    margin-top: 15px;
    background-color: #9c27b0; /* Purple secondary button */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .dc-data-grid {
        flex-wrap: wrap;
        gap: 15px;
    }
    .dc-data-segment.total-result {
        flex-basis: 100%; /* Stack results on smaller screens */
    }
}
@media (max-width: 600px) {
    .dc-compact-grid .dc-input-group {
        flex-basis: 100%;
        width: 100% !important;
    }
}