/* Estilos para el modal y formulario */
#servicios-seleccionados {
    width: 100%;
    cursor: pointer;
    background-color: #f9f9f9;
}

/* Estilos para el modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 15px 20px;
    text-align: center;
    margin-top: 20px;
}

/* Estilos para categorías y opciones */
.categoria-item {
    margin-bottom: 10px;
    background-color: #f5f5f5;
    border-radius: 5px;
}

.categoria-header {
    padding: 12px 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}

.toggle-icon {
    transition: transform 0.3s;
}

.categoria-header.active .toggle-icon {
    transform: rotate(180deg);
}

.categoria-opciones {
    padding: 5px 15px;
    background-color: #fff;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.opcion-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.opcion-item:last-child {
    border-bottom: none;
}

.opcion-item label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

/* Ocultar el input de ID */
.service-id-input {
    display: none;
}

/* Estilo personalizado para radio buttons */
.service-display-input {
    opacity: 0;
    position: absolute;
}

.radio-custom {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
}

.service-display-input:checked+.radio-custom::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #2196F3;
}

/* Botón de aceptar */
.aceptar-button {
    background-color: #7f8a97;
    color: white;
    border: none;
    padding: 10px 30px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 4px;
    text-transform: uppercase;
}

.aceptar-button:hover {
    background-color: #6c7883;
}

/* Ajuste para el botón de envío del formulario */
.submit-button {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
}

.submit-button:hover {
    background-color: #45a049;
}