/* Base Styles - Reused classes for consistency */
.calculator-wrapper-modern {
    font-family: 'Roboto', sans-serif;
    color: var(--ukpc-text, #333);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    width: 100%;
}

/* Main Container */
.calculator-container-modern {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 100%;
    width: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
}

/* Inputs Section - Grid */
.input-section-modern {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group-modern {
    display: flex;
    flex-direction: column;
}

.input-group-modern label {
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 13px;
    color: #555; /* Slightly lighter text for labels, could use var(--ukpc-text) with opacity */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Roboto', sans-serif;
}

/* Wrapper for Input with Icon */
.input-wrapper-icon {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

/* The Currency Symbol inside the field */
.input-icon {
    position: absolute;
    left: 1px;
    top: 1px;
    bottom: 1px;
    width: 45px;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px 0 0 6px;
    border-right: 1px solid #ddd;
    color: #555;
    font-weight: 500;
    font-size: 16px;
    pointer-events: none;
    z-index: 2;
}

/* General Input Styles */
.input-group-modern input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    background-color: #fcfcfc;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
}

/* Padding for inputs with icon */
.input-with-icon {
    padding-left: 60px !important;
}

.input-group-modern input:focus {
    outline: none;
    border-color: #555;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(85, 85, 85, 0.1);
}

/* Button Styling */
button.calc-btn-modern {
    grid-column: span 2;
    width: 100%;
    padding: 16px;
    margin-top: 10px;
    border-radius: 50px;
    background-color: var(--ukpc-primary, #23395E);
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background-color 0.2s ease, transform 0.1s;
    font-family: 'Roboto', sans-serif;
}

button.calc-btn-modern:hover {
    background-color: var(--ukpc-secondary, #1a2b47);
}

button.calc-btn-modern:active {
    transform: scale(0.98);
}

/* Results Section */
.result-section-modern {
    margin-top: 20px;
    padding-top: 0;
    border-top: none;
    width: 100%;
    max-width: 100%;
    /* display: none; Toggled via JS */ 
}

/* Result Box Styling */
.result-box-modern {
    background-color: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

/* Savings/Main Result Row */
.savings-row-modern {
    background-color: transparent;
    padding: 20px 0;
    text-align: center;
    color: var(--ukpc-text, #333);
    display: flex;
    flex-direction: column;
    gap: 5px;
    border-bottom: none;
}

.savings-row-modern .result-label {
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.savings-row-modern .result-value {
    color: var(--ukpc-primary, #23395E);
    font-size: 36px;
    font-weight: 700;
    margin: 5px 0 0 0;
    line-height: 1.2;
}

/* Other Results List (Blue Box) */
.other-results-modern {
    padding: 25px;
    background-color: var(--ukpc-primary, #23395E);
    border-radius: 10px;
    margin-top: 10px;
    box-shadow: 0 4px 15px rgba(35, 57, 94, 0.2);
}

.result-row-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
}

.result-row-modern:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.result-row-modern .result-label {
    color: #dbeafe; /* Light Blue/Grey text - keeping hardcoded as it needs to contrast with primary bg */
    font-weight: 500;
}

.result-row-modern .result-value {
    font-weight: 700;
    color: #ffffff;
}

/* Error Message */
.ukpc-error {
    background-color: #ffebee;
    color: #c62828;
    padding: 15px;
    border-radius: 6px;
    text-align: center;
    border: 1px solid #ef9a9a;
    font-family: Roboto, sans-serif;
}

/* Mobile Responsive */
@media (max-width: 550px) {
    .input-section-modern {
        grid-template-columns: 1fr;
    }
    button.calc-btn-modern {
        grid-column: span 1;
    }
    /* Helper for full width inputs */
    .input-group-full {
        grid-column: span 1 !important;
    }
    .input-group-modern[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
    }
}
