/* Consultant Modal Popup Styles */
.consultant-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(18, 18, 18, 0.85);
    animation: fadeIn 0.3s ease;
}

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

.consultant-modal-content {
    background-color: var(--mgtheme-white);
    margin: 2% auto;
    padding: 20px 35px 30px 35px;
    border: none;
    border-radius: 10px;
    width: 92%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}

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

.consultant-modal-close {
    color: var(--mgtheme-gray);
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 1;
}

.consultant-modal-close:hover,
.consultant-modal-close:focus {
    color: var(--mgtheme-base);
    background-color: rgba(191, 247, 71, 0.1);
}

.consultant-modal-title {
    font-family: var(--mgtheme-font-two);
    font-size: 22px;
    font-weight: 600;
    color: var(--mgtheme-black);
    margin-bottom: 20px;
    padding-right: 40px;
    line-height: 1.2;
    margin-top: 0;
}
    padding-bottom: 15px;
    border-bottom: 2px solid var(--mgtheme-bdr-color);
    text-align: center;
}

.consultant-form .form-group {
    margin-bottom: 15px;
}

.consultant-form label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--mgtheme-black);
    margin-bottom: 8px;
    font-family: var(--mgtheme-font);
}

.consultant-form label .required {
    color: #ff4444;
    margin-left: 2px;
}

.consultant-form .form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--mgtheme-bdr-color);
    border-radius: 6px;
    font-size: 14px;
    color: var(--mgtheme-black);
    font-family: var(--mgtheme-font);
    background-color: var(--mgtheme-white);
    transition: all 0.3s ease;
}

.consultant-form .form-control:focus {
    outline: none;
    border-color: var(--mgtheme-base);
    box-shadow: 0 0 0 3px rgba(191, 247, 71, 0.1);
}

.consultant-form select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

.consultant-form textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.phone-prefix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    background-color: var(--mgtheme-primary);
    border: 1px solid var(--mgtheme-bdr-color);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--mgtheme-black);
    white-space: nowrap;
}

.phone-input {
    flex: 1;
}

.consultant-form .file-input {
    padding: 10px 18px;
    cursor: pointer;
}

.consultant-form .form-text {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--mgtheme-gray);
}

.consultant-form .submit-btn {
    width: 100%;
    margin-top: 10px;
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.consultant-form .submit-btn:hover {
    transform: translateY(-2px);
}

.consultant-form .submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.consultant-form .form-message {
    margin: 15px 0;
    padding: 12px 18px;
    border-radius: 6px;
    font-size: 14px;
    display: none;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .consultant-modal-content {
        margin: 3% auto;
        padding: 25px 20px;
        width: 95%;
        max-height: 92vh;
    }
    
    .consultant-modal-title {
        font-size: 20px;
        margin-bottom: 18px;
        padding-bottom: 12px;
    }
    
    .consultant-form .form-group {
        margin-bottom: 12px;
    }
    
    .consultant-form label {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .consultant-form .form-control {
        padding: 9px 12px;
        font-size: 14px;
    }
    
    .phone-prefix {
        padding: 9px 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .consultant-modal-content {
        padding: 20px 15px;
        margin: 2% auto;
        width: 96%;
    }
    
    .consultant-modal-title {
        font-size: 18px;
        padding-bottom: 12px;
        margin-bottom: 15px;
    }
    
    .consultant-modal-close {
        right: 10px;
        top: 10px;
        font-size: 26px;
        width: 32px;
        height: 32px;
    }
    
    .consultant-form .form-group {
        margin-bottom: 10px;
    }
    
    .consultant-form label {
        font-size: 13px;
    }
    
    .consultant-form .form-control {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .phone-prefix {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .consultant-form .submit-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .consultant-form textarea.form-control {
        min-height: 70px;
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--mgtheme-base);
    color: var(--mgtheme-black);
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 20px rgba(191, 247, 71, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: var(--mgtheme-black);
    color: var(--mgtheme-base);
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(191, 247, 71, 0.6);
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

.whatsapp-icon {
    width: 32px;
    height: 32px;
}

.whatsapp-tooltip {
    position: absolute;
    right: 85px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--mgtheme-black);
    color: var(--mgtheme-white);
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-family: var(--mgtheme-font);
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 8px;
    border-color: transparent transparent transparent var(--mgtheme-black);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(191, 247, 71, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(191, 247, 71, 0.7);
    }
    100% {
        box-shadow: 0 4px 20px rgba(191, 247, 71, 0.4);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 28px;
    }
    
    .whatsapp-icon {
        width: 28px;
        height: 28px;
    }
    
    .whatsapp-tooltip {
        font-size: 13px;
        padding: 10px 15px;
        right: 70px;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 26px;
    }
    
    .whatsapp-icon {
        width: 26px;
        height: 26px;
    }
    
    .whatsapp-tooltip {
        display: none;
    }
}
