/* Enhanced Styles for Gross to Net Salary Calculator (Spain) - Two Column Layout */
.calcufacil-gross_to_net_salary_calculator.calcufacil-container.enhanced-gtn-salary {
    max-width: 1050px; /* Max width of the entire calculator component */
    margin: 25px auto;
    background: #f9f9f9;
    padding: 15px; /* Reduced container padding slightly */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: row; /* Explicitly set row for larger screens */
    flex-wrap: nowrap;  /* Change to nowrap for desktop, will handle wrap with media query */
    gap: 20px;          /* Gap between left and right columns */
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Left Column: Form */
.calcufacil-gross_to_net_salary_calculator .calcufacil-left.calculator-form {
    flex: 1 1 45%; /* Allow to take roughly 45% of space, can grow/shrink */
    min-width: 300px; /* Minimum width before it would ideally wrap (if nowrap wasn't set) */
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/* Right Column: Results */
.calcufacil-gross_to_net_salary_calculator .calcufacil-right.results.enhanced-gtn-results {
    flex: 1 1 55%; /* Allow to take roughly 55% of space, can grow/shrink */
    min-width: 320px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    box-sizing: border-box;
}

/* --- Rest of your existing detailed CSS for h2, h3, input-group, buttons, results content, chart, disclaimer etc. --- */
/* Make sure to paste ALL the other styles from the previous CSS here, I'm only showing the container and column changes */

.calcufacil-gross_to_net_salary_calculator .calculator-form h2 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 600;
    text-align: left; /* Keep form titles left aligned if preferred */
}
.calcufacil-gross_to_net_salary_calculator .calculator-form .description {
    font-size: 14px;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.5;
}
.calcufacil-gross_to_net_salary_calculator .calculator-form h3 {
    font-size: 17px;
    color: #34495e;
    margin-top: 20px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.calcufacil-gross_to_net_salary_calculator .calculator-form h3 i {
    color: #546e7a;
    font-size: 1.1em;
}

.calcufacil-gross_to_net_salary_calculator .input-group {
    margin-bottom: 18px;
}
.calcufacil-gross_to_net_salary_calculator .input-group label {
    display: block;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    font-size: 13px;
}
.calcufacil-gross_to_net_salary_calculator .input-group input[type="text"],
.calcufacil-gross_to_net_salary_calculator .input-group input[type="number"],
.calcufacil-gross_to_net_salary_calculator .input-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    background: #fdfdfd;
    box-sizing: border-box;
}
.calcufacil-gross_to_net_salary_calculator .input-group-slider input[type="range"] {
    width: 100%;
    margin-top: 8px;
    accent-color: #3498db;
}
.calcufacil-gross_to_net_salary_calculator .input-group small {
    font-size: 11px;
    color: #777;
    margin-top: 4px;
    display: block;
}

.calcufacil-gross_to_net_salary_calculator button[type="submit"] {
    background: #3498db;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    margin-top: 15px;
    font-weight: bold;
    transition: background 0.2s ease-in-out;
}
.calcufacil-gross_to_net_salary_calculator button[type="submit"]:hover {
    background: #2980b9;
}

/* Results Area Styling */
.calcufacil-gross_to_net_salary_calculator .results.enhanced-gtn-results h2 {
    font-size: 20px;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 600;
}
.calcufacil-gross_to_net_salary_calculator .main-net-salary-display {
    background-color: #2ecc71;
    color: #fff;
    padding: 18px 20px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 25px;
    font-size: 17px;
    box-shadow: 0 2px 5px rgba(46, 204, 113, 0.3);
}
.calcufacil-gross_to_net_salary_calculator .main-net-salary-display .value {
    display: block;
    font-size: 2em;
    font-weight: bold;
    margin-top: 4px;
}
.calcufacil-gross_to_net_salary_calculator .main-net-salary-display .value.annual {
    font-size: 1.4em;
    margin-top: 10px;
    opacity: 0.95;
}
.calcufacil-gross_to_net_salary_calculator .main-net-salary-display .prorated-info {
    display: block;
    font-size: 0.9em;
    opacity: 0.85;
    margin-top: 3px;
    margin-bottom: 6px;
}

.calcufacil-gross_to_net_salary_calculator .results-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}
.calcufacil-gross_to_net_salary_calculator .results-column {
    flex: 1;
    min-width: 260px;
    background: #fdfdfd;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #f1f1f1;
}
.calcufacil-gross_to_net_salary_calculator .results-column h4 {
    margin-top: 0;
    margin-bottom: 12px;
    color: #34495e;
    font-size: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 7px;
}
.calcufacil-gross_to_net_salary_calculator .results-column h4 i { font-size: 1.05em; }
.calcufacil-gross_to_net_salary_calculator .deductions-column h4 i { color: #e74c3c; }
.calcufacil-gross_to_net_salary_calculator .chart-summary-column h4 i { color: #3498db; }

.calcufacil-gross_to_net_salary_calculator .results-column ul {
    list-style: none; padding: 0; margin: 0;
}
.calcufacil-gross_to_net_salary_calculator .results-column li {
    display: flex; justify-content: space-between;
    padding: 7px 3px; font-size: 13px; color: #444;
    border-bottom: 1px dotted #f7f7f7;
}
.calcufacil-gross_to_net_salary_calculator .results-column li:last-child { border-bottom: none; }
.calcufacil-gross_to_net_salary_calculator .results-column li .value { font-weight: 600; color: #333; }
.calcufacil-gross_to_net_salary_calculator .results-column li .total-ss-value,
.calcufacil-gross_to_net_salary_calculator .results-column li .total-irpf-value {
    font-weight: bold; color: #c0392b;
}
.calcufacil-gross_to_net_salary_calculator .results-column li.sub-item { padding-left: 15px; font-size: 12px; color: #666;}
.calcufacil-gross_to_net_salary_calculator .results-column li.strong-sub-item { padding-left: 15px; font-weight: 500; color: #555; }
.calcufacil-gross_to_net_salary_calculator .results-column li.strong-sub-item .value { font-weight: 600; }
.calcufacil-gross_to_net_salary_calculator .results-column li.total-line {
    margin-top: 10px; padding-top: 10px; border-top: 1px solid #e0e0e0;
    font-size: 14px; font-weight: bold;
}
.calcufacil-gross_to_net_salary_calculator .results-column li.total-line .strong-value { font-size: 1.1em; color: #c0392b; }
.calcufacil-gross_to_net_salary_calculator .results-column li.total-line small { font-size: 0.8em; font-weight: normal; color: #777; margin-left: 5px;}

.calcufacil-gross_to_net_salary_calculator .chart-container-salary {
    height: 280px;
    position: relative;
    margin-top: 15px;
    padding: 10px;
    background-color: #fdfdfd;
    border-radius: 4px;
}

.calcufacil-gross_to_net_salary_calculator .disclaimer-box.salary-disclaimer {
    margin-top: 25px; padding: 15px; background-color: #fff9e6;
    border: 1px solid #ffecb3; border-left: 4px solid #f1c40f; border-radius: 4px;
}
.calcufacil-gross_to_net_salary_calculator .disclaimer-box.salary-disclaimer h4 {
    margin-top: 0; margin-bottom: 8px; color: #b7950b; font-size: 15px;
}
.calcufacil-gross_to_net_salary_calculator .disclaimer-box.salary-disclaimer ul {
    list-style: disc; margin-left: 18px; padding-left: 0;
}
.calcufacil-gross_to_net_salary_calculator .disclaimer-box.salary-disclaimer li {
    margin-bottom: 6px; font-size: 12px; color: #555; line-height: 1.4;
}

.calcufacil-gross_to_net_salary_calculator .errors.main-error {
    color: #c0392b; font-size: 13px; background: #f9eaea; padding: 8px 12px;
    border-radius: 4px; border-left: 3px solid #c0392b; margin-bottom: 15px;
}
.calcufacil-gross_to_net_salary_calculator .initial-message {
    color: #34495e; text-align: center; padding: 20px; background-color: #f8f9fa;
    border: 1px dashed #dde2e6; border-radius: 5px; margin-top: 15px; line-height: 1.5; font-size: 14px;
}


/* Responsive Stacking: This is key */
@media (max-width: 900px) { /* Adjust this breakpoint as needed */
    .calcufacil-gross_to_net_salary_calculator.calcufacil-container.enhanced-gtn-salary {
        flex-direction: column; /* Stack left and right on top of each other */
        flex-wrap: wrap; /* Ensure it wraps if somehow still forced */
    }
    .calcufacil-gross_to_net_salary_calculator .calcufacil-left.calculator-form,
    .calcufacil-gross_to_net_salary_calculator .calcufacil-right.results.enhanced-gtn-results {
        flex-basis: 100%; /* Make each take full width when stacked */
        min-width: 100%;
        margin-bottom: 20px; /* Add some space when stacked */
    }
    .calcufacil-gross_to_net_salary_calculator .calcufacil-right.results.enhanced-gtn-results {
        margin-bottom: 0; /* No bottom margin for the last stacked item */
    }
     .calcufacil-gross_to_net_salary_calculator .results-columns {
        flex-direction: column; /* Stack internal results columns too if needed */
    }
    .calcufacil-gross_to_net_salary_calculator .chart-container-salary {
        height: 250px;
    }
}