/* Consultation Modal Styles */
.consultation-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 20px;
}

.consultation-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.consultation-modal {
    background: white;
    border-radius: 24px;
    max-width: 500px;
    width: 100%;
    padding: 40px 32px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.consultation-modal-overlay.active .consultation-modal {
    transform: scale(1);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #999;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

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

.modal-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #67C9F8 0%, #2E8FDE 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.modal-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    text-align: center;
    margin-bottom: 12px;
}

.modal-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.5;
}

.modal-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.2s ease;
    margin-bottom: 16px;
}

.modal-input:focus {
    outline: none;
    border-color: #37A9F6;
    box-shadow: 0 0 0 3px rgba(55, 169, 246, 0.12);
}

.modal-submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #37A9F6 0%, #2E8FDE 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.modal-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(55, 169, 246, 0.38);
}

.modal-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.modal-divider {
    text-align: center;
    margin: 24px 0 20px;
    color: #999;
    font-size: 14px;
}

.modal-contact-buttons {
    display: flex !important;
    gap: 12px;
    margin-top: 20px;
    width: 100%;
}

.modal-contact-btn {
    flex: 1;
    padding: 14px 20px;
    border-radius: 12px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.modal-whatsapp-btn {
    background: #25D366;
    color: white;
}

.modal-whatsapp-btn:hover {
    background: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

.modal-phone-btn {
    background: #37A9F6;
    color: white;
}

.modal-phone-btn:hover {
    background: #2B95D9;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(55, 169, 246, 0.3);
}

.modal-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    display: none;
}

.modal-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.modal-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* WhatsApp Floating Button */
.whatsapp-floating {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9998;
    cursor: pointer;
    transition: all 0.3s ease;
}

.whatsapp-floating:hover {
    transform: scale(1.15);
}

.whatsapp-floating a {
    display: block;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #25D366 0%, #20BA5A 100%);
    border-radius: 50%;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    position: relative;
}

.whatsapp-floating a::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #25D366;
    border-radius: 50%;
    animation: whatsapp-pulse 2s infinite;
    opacity: 0;
}

@keyframes whatsapp-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.3);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    .consultation-modal-overlay {
        align-items: flex-start;
        padding: 14px;
        overflow-y: auto;
    }
    .consultation-modal {
        border-radius: 18px;
        padding: 28px 18px;
        margin: 8px 0 20px;
    }
    .modal-title {
        font-size: 24px;
    }
    .modal-subtitle {
        margin-bottom: 24px;
    }
    .modal-contact-buttons {
        flex-direction: column;
    }
    .modal-contact-btn,
    .modal-submit-btn {
        min-height: 48px;
    }
    .whatsapp-floating {
        bottom: 20px;
        right: 20px;
    }
    .whatsapp-floating a {
        width: 56px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .consultation-modal {
        border-radius: 16px;
        padding: 24px 16px;
    }
    .modal-close-btn {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
    }
    .modal-title {
        font-size: 22px;
    }
    .modal-input {
        padding: 14px 16px;
    }
}
