/* ============================================
   LEAD CAPTURE MODAL STYLES
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1.5rem;
    backdrop-filter: blur(4px);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content-lead {
    background: white;
    border-radius: 1.25rem;
    width: 100%;
    max-width: 550px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    opacity: 0;
}

.modal-overlay.active .modal-content-lead {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* Custom Scrollbar for Modal */
.modal-content-lead::-webkit-scrollbar {
    width: 6px;
}

.modal-content-lead::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content-lead::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 10px;
}

.modal-content-lead::-webkit-scrollbar-thumb:hover {
    background: #cbd5e1;
}

.modal-icon-lead {
    font-size: 4rem;
    color: #10b981;
    margin-bottom: 1rem;
}

.modal-title-lead {
    font-size: 1.5rem;
    color: #1e3a8a;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.modal-subtitle-lead {
    color: #4b5563;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.modal-body-lead {
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: left;
    padding: 1rem;
    background: #fdfdfd;
    border-radius: 0.5rem;
    border: 1px solid #f3f4f6;
}

.btn-whatsapp-lead {
    background-color: #25D366;
    color: white !important;
    width: 100%;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
    margin-bottom: 1rem;
}

.btn-whatsapp-lead:hover {
    background-color: #1ebc57;
}

.lead-input-group {
    margin-bottom: 1rem;
    text-align: left;
}

.lead-input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.9rem;
}

.lead-input-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
}

.lead-phone-row {
    display: flex;
    gap: 10px;
}

.lead-phone-prefix {
    width: 80px !important;
}

.btn-service-lead {
    background-color: #1e40af;
    color: white !important;
    width: 100%;
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: bold;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    margin-bottom: 0.5rem;
}

.btn-service-lead:hover {
    background-color: #1e3a8a;
}

/* Dynamic Modal States */
.modal-content-lead.state-green .modal-icon-lead {
    color: #10b981;
}

.modal-content-lead.state-green .modal-title-lead {
    color: #065f46;
}

.modal-content-lead.state-red .modal-icon-lead {
    color: #ef4444;
}

.modal-content-lead.state-red .modal-title-lead {
    color: #991b1b;
}

.modal-close-btn {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    padding: 5px;
    z-index: 10;
}

.modal-close-btn:hover {
    color: #4b5563;
}

.btn-back-lead {
    background: none;
    border: 1px solid #d1d5db;
    color: #6b7280;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    transition: all 0.2s;
    width: fit-content;
}

.btn-back-lead:hover {
    background: #f3f4f6;
    color: #374151;
    border-color: #9ca3af;
}