/* Estilos para el formulario de reserva */

/* Modal de reserva */
.modal-reserva-content {
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

/* Resumen de la experiencia */
.experience-summary {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.summary-item i {
    font-size: 16px;
    opacity: 0.9;
}

/* Formulario de reserva */
.reservation-form {
    padding: 0;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group label i {
    margin-right: 8px;
    color: #8B4513;
    width: 16px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #8B4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.form-group input:invalid {
    border-color: #e74c3c;
}

/* Resumen del total */
.total-summary {
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    padding: 20px;
    margin: 25px 0;
}

.total-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.total-item:last-child {
    margin-bottom: 0;
}

.total-final {
    border-top: 2px solid #8B4513;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 16px;
    color: #8B4513;
}

/* Información de reserva */
.reservation-info {
    margin-top: 25px;
}

.info-warning,
.info-payment {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 13px;
}

.info-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.info-payment {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.info-warning i,
.info-payment i {
    margin-top: 2px;
    font-size: 16px;
}

.info-warning p,
.info-payment p {
    margin: 0;
    line-height: 1.4;
}

/* Botones del modal */
.modal-footer {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 25px 20px;
    border-top: 1px solid #e1e5e9;
    margin-top: 25px;
    background: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

.btn-cancelar,
.btn-confirmar {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 150px;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-cancelar {
    background: #6c757d;
    color: white;
}

.btn-cancelar:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-confirmar {
    background: linear-gradient(135deg, #8B4513 0%, #A0522D 100%);
    color: white;
}

.btn-confirmar:hover {
    background: linear-gradient(135deg, #7a3d0f 0%, #8f4a1f 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.btn-confirmar:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-reserva-content {
        width: 95%;
        margin: 10px;
    }
    
    .experience-summary {
        flex-direction: column;
        gap: 10px;
    }
    
    .summary-item {
        justify-content: center;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 15px;
        padding: 20px 15px;
    }
    
    .btn-cancelar,
    .btn-confirmar {
        width: 100%;
        min-width: auto;
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .experience-summary {
        padding: 15px;
    }
    
    .summary-item {
        font-size: 13px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .total-summary {
        padding: 15px;
    }
    
    .info-warning,
    .info-payment {
        padding: 12px;
        font-size: 12px;
    }
}

/* Animaciones */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-reserva-content,
.modal-confirmacion-content {
    animation: slideIn 0.3s ease-out;
}

/* Animaciones de modal */
.modal {
    transition: opacity 0.3s ease;
}

.modal.modal-show {
    opacity: 1;
}

.modal .modal-content {
    transition: transform 0.3s ease;
}

.modal.modal-show .modal-content {
    transform: scale(1);
}

/* Estados de validación */
.form-group input.valid {
    border-color: #28a745;
}

.form-group input.invalid {
    border-color: #dc3545;
}

.form-group input.valid:focus {
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-group input.invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Loading state para el botón de envío */
.btn-confirmar.loading {
    position: relative;
    color: transparent;
}

.btn-confirmar.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal de Confirmación */
.modal-confirmacion-content {
    max-width: 500px;
    width: 90%;
}

.confirmacion-content {
    text-align: center;
    padding: 20px 0;
}

.confirmacion-icon {
    font-size: 64px;
    color: #28a745;
    margin-bottom: 20px;
}

.confirmacion-message h3 {
    color: #28a745;
    margin-bottom: 10px;
    font-size: 24px;
}

.confirmacion-message p {
    color: #666;
    margin-bottom: 30px;
    font-size: 16px;
}

.confirmacion-steps {
    margin: 30px 0;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
    text-align: left;
}

.step-number {
    background: #8B4513;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

.step-content h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 16px;
}

.step-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

.confirmacion-contact {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 30px;
    border-left: 4px solid #8B4513;
}

.confirmacion-contact p {
    margin: 5px 0;
    color: #333;
}

.confirmacion-contact strong {
    color: #8B4513;
}

/* Responsive para modal de confirmación */
@media (max-width: 768px) {
    .modal-confirmacion-content {
        width: 95%;
        margin: 10px;
    }
    
    .confirmacion-icon {
        font-size: 48px;
    }
    
    .confirmacion-message h3 {
        font-size: 20px;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto 10px auto;
    }
}
