.csc-calculator-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.csc-field {
    margin-bottom: 15px;
}

.csc-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.csc-field input, .csc-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.csc-field small {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

#csc-calcular {
    background: #2c7da0;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

#csc-calcular:hover {
    background: #1f5e7a;
}

.csc-results {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2c7da0;
}

.csc-results-table {
    width: 100%;
    border-collapse: collapse;
}

.csc-results-table th, .csc-results-table td {
    padding: 8px;
    text-align: left;
}

.csc-results-table th {
    font-weight: normal;
    color: #555;
}

.csc-warning {
    background: #fff3cd;
    color: #856404;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid #ffc107;
}

.csc-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px;
    border-left: 4px solid #dc3545;
}

.csc-note {
    font-size: 11px;
    color: #888;
    margin-top: 15px;
    text-align: center;
}

#csc-loading {
    text-align: center;
    padding: 20px;
    color: #2c7da0;
    font-weight: bold;
}

.csc-calculator-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.csc-field {
    margin-bottom: 15px;
}

.csc-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

.csc-field input, .csc-field select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
}

.csc-field small {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Estilo para campos deshabilitados */
.csc-field input.disabled-field,
.csc-field input:disabled {
    background-color: #f0f0f0;
    color: #888;
    cursor: not-allowed;
}

/* Wrapper para ISAPRE */
.csc-salud-wrapper {
    margin-top: 8px;
}

.csc-salud-wrapper input {
    width: 150px;
    display: inline-block;
    margin-right: 10px;
}

.csc-salud-wrapper .isapre-hint {
    display: inline;
    font-size: 12px;
    color: #666;
}

/* Wrapper para AFP */
.csc-afp-otra-wrapper {
    margin-top: 8px;
}

.csc-afp-otra-wrapper input {
    width: 150px;
    display: inline-block;
    margin-right: 10px;
}

#csc-calcular {
    background: <?php echo esc_attr(get_option('csc_color_principal', '#2c7da0')); ?>;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background 0.2s;
}

#csc-calcular:hover {
    filter: brightness(0.9);
}

.csc-results {
    margin-top: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid <?php echo esc_attr(get_option('csc_color_principal', '#2c7da0')); ?>;
}

.csc-results-table {
    width: 100%;
    border-collapse: collapse;
}

.csc-results-table th, .csc-results-table td {
    padding: 8px;
    text-align: left;
}

.csc-results-table th {
    font-weight: normal;
    color: #555;
}

.csc-warning {
    background: #fff3cd;
    color: #856404;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid #ffc107;
}

.csc-error {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px;
    border-left: 4px solid #dc3545;
}

.csc-note {
    font-size: 11px;
    color: #888;
    margin-top: 15px;
    text-align: center;
}

#csc-loading {
    text-align: center;
    padding: 20px;
    color: <?php echo esc_attr(get_option('csc_color_principal', '#2c7da0')); ?>;
    font-weight: bold;
}

/* Sección de referencia de AFP */
.csc-afp-reference {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 12px;
}

.csc-afp-reference strong {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

.csc-afp-reference ul {
    margin: 5px 0;
    padding-left: 20px;
}

.csc-afp-reference li {
    margin-bottom: 2px;
    color: #555;
}

.csc-note-ref {
    display: block;
    margin-top: 5px;
    color: #2c7da0;
}

.csc-tag {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 20px;
    text-align: center;
    width: auto;
    white-space: nowrap;
}

.csc-tag.imponible {
    background: #d4edda;
    color: #155724;
}

.csc-tag.descuento {
    background: #f8d7da;
    color: #721c24;
}

.csc-tag.info {
    background: #e2e3e5;
    color: #383d41;
}

.csc-tag.final {
    background: <?php echo esc_attr(get_option('csc_color_principal', '#2c7da0')); ?>;
    color: white;
}

.csc-results-table td, .csc-results-table th {
    padding: 6px 8px;
}

.disabled-field {
    background-color: #f0f0f0;
    color: #888;
}