#css
#contacto-digc-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#contacto-digc-form fieldset {
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
}

#contacto-digc-form legend {
    font-weight: bold;
    padding: 0 10px;
    width: auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group label.required:after {
    content: " *";
    color: red;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-group select {
    height: 36px;
}

.checkbox-group {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.error-message {
    color: red;
    font-size: 0.8em;
    display: block;
    margin-top: 5px;
}

button[type="submit"] {
    background: #4CAF50;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

button[type="submit"]:hover {
    background: #45a049;
}

.add-new-option, .save-new-option, #add-new-org, #guardar-organizacion, #cancelar-organizacion {
    background: #0176de;
    border: 1px solid #ddd;
    padding: 5px 10px;
    margin-top: 5px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.add-new-option:hover, .save-new-option:hover, #add-new-org:hover, #guardar-organizacion:hover {
    background: #e0e0e0;
}

.new-option-input {
    width: calc(100% - 120px) !important;
    display
}

.loading {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" stroke="%23ccc" stroke-width="8" fill="none" stroke-dasharray="62.83 62.83" transform="rotate(90 50 50)"><animateTransform attributeName="transform" type="rotate" repeatCount="indefinite" dur="1s" values="0 50 50;360 50 50"/></circle></svg>');
    background-position: right 10px center;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-right: 35px;
}

#rut-loading {
    color: #666;
    font-size: 0.9em;
    margin-left: 10px;
}
