/* Estilos del Modal de Reservas */
.grc-modal {
    display: none; /* Oculto por defecto */
    position: fixed; /* Permanece en la misma posición al desplazarse */
    z-index: 9999; /* Z-index alto para estar encima de todo */
    left: 0;
    top: 0;
    width: 100%; /* Ancho completo */
    height: 100%; /* Alto completo */
    overflow: auto; /* Habilitar desplazamiento si el contenido es demasiado grande */
    background-color: rgba(0,0,0,0.6); /* Fondo semi-transparente */
    justify-content: center; /* Centrar contenido horizontalmente */
    align-items: center; /* Centrar contenido verticalmente */
    padding: 20px; /* Espacio alrededor del modal */
    box-sizing: border-box; /* Incluir padding en el tamaño */
}

.grc-modal-content {
    background-color: #fefefe;
    margin: auto; /* Centrar vertical y horizontalmente */
    padding: 30px;
    border: 1px solid #888;
    width: 100%;
    max-width: 600px; /* Ancho máximo del contenido */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative; /* Para el botón de cerrar */
    overflow-y: auto; /* Scroll dentro del contenido si es necesario */
    max-height: 90vh; /* Altura máxima para permitir scroll */
}

/* Botón de cerrar */
.grc-close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.grc-close-button:hover,
.grc-close-button:focus {
    color: #333;
    text-decoration: none;
}

/* Estilos de los formularios y campos */
.grc-modal-content h3 {
    margin-top: 0;
    color: #333;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
}

.grc-modal-content h4 {
    color: #555;
    font-size: 1.2em;
    margin-top: 25px;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
}

.grc-modal-content label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #666;
}

.grc-modal-content input[type="text"],
.grc-modal-content input[type="email"],
.grc-modal-content input[type="number"],
.grc-modal-content textarea {
    width: calc(100% - 20px); /* Ajustar para padding */
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box; /* Asegurar que padding no aumente el ancho */
}

.grc-modal-content button {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    margin-top: 10px;
    transition: background-color 0.3s ease;
}

.grc-modal-content button:hover {
    background-color: #005f87;
}

.grc-modal-content button#grc-verify-dni {
    background-color: #28a745; /* Verde para verificar */
    margin-left: 10px;
}
.grc-modal-content button#grc-verify-dni:hover {
    background-color: #218838;
}

/* Mensajes de estado */
#grc-contact-info-status,
#grc-reservation-messages {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

#grc-contact-info-status.success,
#grc-reservation-messages.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#grc-contact-info-status.error,
#grc-reservation-messages.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Estilos para el repetidor de acompañantes */
.grc-acompanante-item {
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    background-color: #f9f9f9;
    position: relative;
}
.grc-remove-acompanante {
    position: absolute;
    top: 5px;
    right: 5px;
    background: none;
    border: none;
    color: #dc3545;
    font-size: 1.5em;
    cursor: pointer;
    line-height: 1;
}
.grc-remove-acompanante:hover {
    color: #c82333;
}