/* Bouton flottant */
.pv-qd-floating-btn {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    width: 70px !important;
    height: 70px !important;
    background: linear-gradient(135deg, #E63946 0%, #d62839 100%) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    font-size: 2rem !important;
    cursor: pointer !important;
    box-shadow: 0 8px 25px rgba(230,57,70,0.4) !important;
    transition: all 0.3s ease !important;
    z-index: 9998 !important;
    animation: pulse 2s infinite !important;
}

.pv-qd-floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(230,57,70,0.6);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 8px 25px rgba(230,57,70,0.4); }
    50% { box-shadow: 0 8px 40px rgba(230,57,70,0.7); }
}

/* Popup Modal */
.pv-qd-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.pv-qd-popup.active {
    display: flex;
}

.pv-qd-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
}

.pv-qd-popup-content {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pv-qd-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.pv-qd-popup-close:hover {
    color: #E63946;
}

.pv-qd-popup-content h2 {
    margin: 0 0 10px 0;
    font-size: 2rem;
    color: #333;
    text-align: center;
}

.pv-qd-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* Formulaire */
#pv-qd-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Montants rapides */
.pv-qd-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.pv-qd-amount-btn {
    padding: 15px;
    background: #f8f9fa;
    border: 3px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 800;
    color: #000 !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pv-qd-amount-btn:hover {
    border-color: #E63946;
    background: #fff;
    transform: translateY(-2px);
}

.pv-qd-amount-btn.active {
    background: #E63946 !important;
    color: white !important;
    border-color: #E63946;
    transform: scale(1.05);
}

/* Inputs */
#pv-qd-form input[type="text"],
#pv-qd-form input[type="email"],
#pv-qd-form input[type="number"] {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

#pv-qd-form input:focus {
    outline: none;
    border-color: #E63946;
}

/* Checkbox */
.pv-qd-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    cursor: pointer;
}

.pv-qd-checkbox span {
    color: #000 !important;
    font-weight: 600;
}

.pv-qd-checkbox input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

#pv-qd-fees-info {
    padding: 10px;
    background: #fff3cd;
    border-radius: 8px;
    text-align: center;
}

#pv-qd-fees-info small {
    color: #856404;
}

#pv-qd-fees-info strong {
    color: #E63946;
}

/* Carte Square */
#pv-qd-card-container {
    min-height: 120px !important;
    padding: 15px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 10px !important;
    background: #ffffff !important;
}

#pv-qd-card-container iframe {
    border: none !important;
}

.pv-qd-loading {
    animation: pulse-text 1.5s ease-in-out infinite;
    font-weight: 600;
}

@keyframes pulse-text {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Status */
#pv-qd-status {
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    display: none;
}

#pv-qd-status.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

#pv-qd-status.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

/* Bouton submit */
.pv-qd-btn-submit {
    padding: 18px;
    background: linear-gradient(135deg, #E63946 0%, #d62839 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(230,57,70,0.3);
}

.pv-qd-btn-submit:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(230,57,70,0.5);
}

.pv-qd-btn-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 600px) {
    .pv-qd-floating-btn {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
    
    .pv-qd-popup-content {
        padding: 25px;
        width: 95%;
    }
    
    .pv-qd-amounts {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pv-qd-popup-content h2 {
        font-size: 1.6rem;
    }
}
