/* Lead Generator Styles - Adelante Voyages */

/* Modal Animation */
#lead-modal {
    animation-duration: 0.4s;
}

/* Form Inputs Focus State */
#lead-modal input:focus,
#lead-modal textarea:focus {
    transform: scale(1.01);
}

/* Pulse Animation pour le bouton principal */
@keyframes lead-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(216, 103, 39, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(216, 103, 39, 0);
    }
}

.lead-cta-pulse {
    animation: lead-pulse 2s infinite;
}

/* Hover effects pour les CTA */
button[onclick^="openLeadModal"] {
    position: relative;
    overflow: hidden;
}

button[onclick^="openLeadModal"]::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button[onclick^="openLeadModal"]:hover::before {
    width: 300px;
    height: 300px;
}

/* Smooth transitions pour les étapes */
#step-location,
#step-advisor,
#step-confirmation {
    transition: opacity 0.3s ease-in-out;
}

/* Input postal code styling */
#postal-code {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-align: center;
}

/* Advisor card gradient animation */
#advisor-info {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Phone number styling */
#advisor-phone span,
#confirm-advisor-phone span {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
}

/* Success checkmark animation */
@keyframes checkmarkBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-10px) scale(1.1);
    }
    60% {
        transform: translateY(-5px) scale(1.05);
    }
}

.animate__bounceIn i {
    animation: checkmarkBounce 1s ease-in-out;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    #lead-modal .rounded-3xl {
        border-radius: 1.5rem;
    }
    
    #lead-modal .text-3xl {
        font-size: 1.75rem;
    }
    
    #lead-modal .text-2xl {
        font-size: 1.5rem;
    }
    
    #lead-modal .p-8 {
        padding: 1.5rem;
    }
}

/* Loading state */
.lead-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.lead-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}

/* Error shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.error-shake {
    animation: shake 0.5s;
}

/* Advisor info hover effect */
#advisor-info:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

/* Checkbox custom styling */
input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

/* Backdrop blur effect */
#lead-modal {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Accessibility: Focus visible */
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #D86727;
    outline-offset: 2px;
}
