/* Styles for Autónomo Tax Savings Calculator */
.calcufacil-autonomo_tax_savings_calculator {
    background-color: #fdfefe;
    border: 1px solid #e5e7e9;
    border-radius: 8px;
    padding: 20px 25px;
    font-family: Arial, sans-serif;
    max-width: 850px;
    margin: 25px auto;
    box-shadow: 0 3px 6px rgba(0,0,0,0.07);
}

.calcufacil-autonomo_tax_savings_calculator > h3 { /* Default title */
    text-align: center;
    color: #1f618d;
    margin-bottom: 20px;
}

.calcufacil-autonomo_tax_savings_calculator .calculator-content h2 {
    text-align: center;
    color: #1a5276;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.7em;
}

.calcufacil-autonomo_tax_savings_calculator .description {
    text-align: center;
    color: #566573;
    font-size: 0.95em;
    margin-bottom: 25px;
    line-height: 1.6;
}
.calcufacil-autonomo_tax_savings_calculator .description strong {
    color: #c0392b; /* Red emphasis */
}


/* Form Styling */
.calcufacil-autonomo_tax_savings_calculator form {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e7e9;
}

.calcufacil-autonomo_tax_savings_calculator .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Responsive grid */
    gap: 20px 25px; /* Row and column gap */
    margin-bottom: 25px;
}

.calcufacil-autonomo_tax_savings_calculator .input-group {
    display: flex;
    flex-direction: column;
}

.calcufacil-autonomo_tax_savings_calculator .input-group label {
    font-weight: 600;
    color: #34495e;
    margin-bottom: 6px;
    font-size: 0.9em;
}
.calcufacil-autonomo_tax_savings_calculator .input-group input[type="number"],
.calcufacil-autonomo_tax_savings_calculator .input-group input[type="text"] {
    padding: 10px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 1em;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
}
/* Style for currency symbol */
.calcufacil-autonomo_tax_savings_calculator .input-group input[name="invoice_base"] {
    padding-left: 25px; /* Make space for symbol */
}
.calcufacil-autonomo_tax_savings_calculator .input-group span.currency-symbol {
    position: absolute;
    margin-top: 36px; /* Adjust based on label/input height */
    margin-left: 10px;
    color: #7f8c8d;
}

.calcufacil-autonomo_tax_savings_calculator .input-group small {
    font-size: 0.8em;
    color: #7f8c8d;
    margin-top: 5px;
    line-height: 1.4;
}
.calcufacil-autonomo_tax_savings_calculator .input-group small a {
 color: #2980b9;
 text-decoration: none;
}
.calcufacil-autonomo_tax_savings_calculator .input-group small a:hover {
 text-decoration: underline;
}


.calcufacil-autonomo_tax_savings_calculator button[type="submit"] {
    background-color: #27ae60; /* Green button */
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    display: block;
    width: fit-content;
    margin: 20px auto 0 auto;
    transition: background-color 0.3s ease;
    font-weight: bold;
}

.calcufacil-autonomo_tax_savings_calculator button[type="submit"]:hover {
    background-color: #229954; /* Darker green */
}

/* Results Area Styling */
.calcufacil-autonomo_tax_savings_calculator .results-area {
    margin-top: 25px;
    padding: 20px;
    background-color: #f4f6f7;
    border-radius: 6px;
    border: 1px solid #e5e7e9;
}
.calcufacil-autonomo_tax_savings_calculator .results-area h3 {
    color: #1a5276;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.4em;
}
.calcufacil-autonomo_tax_savings_calculator .results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.calcufacil-autonomo_tax_savings_calculator .result-box {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #d5dbdb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.calcufacil-autonomo_tax_savings_calculator .result-box h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 1px solid #eaeded;
    padding-bottom: 8px;
    font-size: 1.1em;
}
.calcufacil-autonomo_tax_savings_calculator .result-box p {
    margin-bottom: 10px;
    font-size: 0.95em;
    color: #566573;
    display: flex;
    justify-content: space-between; /* Align text and value */
    flex-wrap: wrap; /* Allow wrap on small screens */
}
.calcufacil-autonomo_tax_savings_calculator .result-box p .value {
    font-weight: bold;
    color: #2c3e50;
    white-space: nowrap; /* Prevent value breaking line */
    margin-left: 10px;
}
.calcufacil-autonomo_tax_savings_calculator .result-box hr {
    border: none;
    border-top: 1px dashed #bdc3c7;
    margin: 15px 0;
}
.calcufacil-autonomo_tax_savings_calculator .result-box p.total-value {
    font-size: 1.1em;
    font-weight: bold;
}
.calcufacil-autonomo_tax_savings_calculator .result-box p .total-value {
     color: #1f618d; /* Blue for totals */
}
.calcufacil-autonomo_tax_savings_calculator .result-box p .total-value-savings {
    color: #c0392b; /* Red for total savings needed */
    font-size: 1.2em;
}

.calcufacil-autonomo_tax_savings_calculator .savings-box {
    background-color: #fef9e7; /* Light yellow background for savings */
    border-color: #f8c471;
}
.calcufacil-autonomo_tax_savings_calculator .savings-box small {
    display: block;
    font-size: 0.8em;
    color: #797d7f;
    margin-top: 10px;
}


/* Disclaimer Box */
.calcufacil-autonomo_tax_savings_calculator .disclaimer-box {
    margin-top: 20px;
    padding: 15px 20px;
    background-color: #fdedec; /* Light red background */
    border: 1px solid #fadbd8;
    border-radius: 5px;
}
.calcufacil-autonomo_tax_savings_calculator .disclaimer-box h4 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #a93226; /* Darker red */
    font-size: 1.1em;
}
.calcufacil-autonomo_tax_savings_calculator .disclaimer-box ul {
    list-style: disc;
    margin-left: 20px;
    padding-left: 0;
    font-size: 0.9em;
    color: #566573;
    line-height: 1.6;
}
.calcufacil-autonomo_tax_savings_calculator .disclaimer-box ul li {
    margin-bottom: 8px;
}
.calcufacil-autonomo_tax_savings_calculator .disclaimer-box strong {
 color: #a93226;
}

/* Error/Initial Message Styling */
.calcufacil-autonomo_tax_savings_calculator .error-message {
    color: #a93226;
    background-color: #fdedec;
    border: 1px solid #fadbd8;
    padding: 12px 15px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
}
.calcufacil-autonomo_tax_savings_calculator .initial-message {
    color: #566573;
    text-align: center;
    padding: 25px;
    background-color: #f4f6f7;
    border: 1px dashed #d5dbdb;
    border-radius: 5px;
    margin-top: 20px;
}