/* Custom Contact and WhatsApp Button Styles */

.contact-info-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.contact-info-item {
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info-item:hover .contact-info {
    transform: translateY(-2px);
}

.whatsapp-btn:hover i {
    transform: scale(1.1);
    transition: all 0.3s ease;
}

.call-btn:hover i {
    color: #007bff !important;
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* Mobile header styles */
.mobile-header-area .call-btn, 
.mobile-header-area .whatsapp-btn {
    margin-right: 10px;
}

.mobile-header-area .call-btn i,
.mobile-header-area .whatsapp-btn i {
    font-size: 16px;
}

/* Newsletter popup enhancements */
#popUpModal .modal-content {
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

#popUpModal .offer_modal_left h3 {
    color: #333;
    font-weight: 600;
}

#popUpModal .theme-btn-one {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    transition: all 0.3s ease;
}

#popUpModal .theme-btn-one:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.4);
}

/* Modal Close Button Styling - Fixed Positioning */
#popUpModal .btn-close {
    /* background: rgba(255, 255, 255, 0.9); */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #fff;
    opacity: 1;
    transition: all 0.3s ease;
    z-index: 1050;
    font-size: 14px;
}

#popUpModal .btn-close:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

/* Modal Logo Container */
.modal-logo-container {
    padding: 15px 10px;
    /* background: rgba(248, 249, 250, 0.8); */
    border-radius: 12px;
    margin-bottom: 20px;
}

.modal-logo {
    max-width: 250px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.1));
}

/* Newsletter form content styling */
#popUpModal .offer_modal_left {
    padding: 1.5rem;
}

#popUpModal .offer_modal_left h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 1rem;
}

#popUpModal .offer_modal_left p {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* Newsletter Modal Header Styling */
.newsletter-modal-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.newsletter-modal-header h4 {
    color: #495057;
    font-size: 18px;
    margin: 0;
}

.contact-icons {
    gap: 12px !important;
}

.contact-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-icon-btn.whatsapp-btn {
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
}

.contact-icon-btn.call-btn {
    background: linear-gradient(45deg, #4285f4, #1565c0);
    color: white;
}

.contact-icon-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: white;
}

.contact-icon-btn i {
    font-size: 20px;
}

.contact-icon-btn.whatsapp-btn:hover {
    background: linear-gradient(45deg, #128c7e, #0d7377);
}

.contact-icon-btn.call-btn:hover {
    background: linear-gradient(45deg, #1565c0, #0d47a1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact-info-wrapper {
        gap: 10px;
    }
    
    .contact-info {
        font-size: 12px;
    }
    
    .contact-info i {
        font-size: 14px;
    }
    
    /* Newsletter modal header mobile styles */
    .newsletter-modal-header {
        flex-direction: column;
        text-align: center;
        gap: 15px !important;
    }
    
    .newsletter-modal-header h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .contact-icons {
        justify-content: center !important;
    }
    
    .contact-icon-btn {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon-btn i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .newsletter-modal-header h4 {
        font-size: 14px;
    }
    
    .contact-icon-btn {
        width: 35px;
        height: 35px;
    }
    
    .contact-icon-btn i {
        font-size: 16px;
    }
}

/* Preloader Logo Size Fix */
#preloader {
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 50%, #f8f9fa 100%);
}

#status {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#status img {
    max-width: 300px !important;
    max-height: 200px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    animation: preloaderPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

/* Preloader Animation */
@keyframes preloaderPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Mobile Preloader Adjustments */
@media (max-width: 768px) {
    #status img {
        max-width: 250px !important;
        max-height: 150px !important;
    }
}

@media (max-width: 480px) {
    #status img {
        max-width: 200px !important;
        max-height: 120px !important;
    }
}

@media (max-width: 360px) {
    #status img {
        max-width: 180px !important;
        max-height: 100px !important;
    }
    
    .preloader-text p {
        font-size: 14px !important;
    }
    
    .loading-dots span {
        width: 6px !important;
        height: 6px !important;
    }
}

/* Preloader Text and Loading Animation */
.preloader-text {
    margin-top: 20px;
    text-align: center;
}

.preloader-text p {
    color: #495057;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 15px;
    font-family: 'Jost', sans-serif;
}

.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    background-color: #25d366;
    border-radius: 50%;
    animation: loadingPulse 1.5s ease-in-out infinite;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
    background: linear-gradient(45deg, #25d366, #128c7e);
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.3s;
    background: linear-gradient(45deg, #4285f4, #1565c0);
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.6s;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
}

@keyframes loadingPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Mobile Loading Text Adjustments */
@media (max-width: 768px) {
    .preloader-text p {
        font-size: 16px;
    }
    
    .loading-dots span {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .preloader-text p {
        font-size: 15px;
    }
    
    .preloader-text {
        margin-top: 15px;
    }
}

/* Modal Specific Responsive Adjustments */
@media (max-width: 768px) {
    #popUpModal .modal-logo {
        max-width: 180px;
        max-height: 70px;
    }

    #popUpModal .btn-close {
        width: 35px;
        height: 35px;
        top: 10px !important;
        right: 10px !important;
        font-size: 12px;
    }

    #popUpModal .modal-body.modal1 {
        padding: 1.5rem 1rem;
    }

    #popUpModal .offer_modal_left {
        padding: 1rem;
    }

    #popUpModal .offer_modal_left h3 {
        font-size: 1.4rem;
    }

    .modal-logo-container {
        padding: 10px 5px;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    #popUpModal .btn-close {
        width: 32px;
        height: 32px;
        top: 8px !important;
        right: 8px !important;
    }

    #popUpModal .modal-logo {
        max-width: 150px;
        max-height: 60px;
    }

    #popUpModal .offer_modal_left h3 {
        font-size: 1.2rem;
    }

    #popUpModal .offer_modal_left p {
        font-size: 0.9rem;
    }
}

/* ===== PROFESSIONAL MODAL HEADER DESIGN ===== */

.modal-header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: -2rem -1.5rem 2rem -1.5rem;
    padding: 2.5rem 2rem;
    border-radius: 15px 15px 0 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.modal-header-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top center, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    opacity: 1;
    z-index: 0;
}

.modal-header-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.03) 2px,
        rgba(255,255,255,0.03) 4px
    );
    animation: shimmer 20s linear infinite;
    z-index: 0;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.header-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    text-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.8px;
    line-height: 1.2;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 2rem;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.contact-btn:hover::before {
    left: 100%;
}

.contact-btn i {
    font-size: 1.3rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.contact-btn.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.contact-btn.call-btn {
    background: linear-gradient(135deg, #4285f4 0%, #1565c0 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.contact-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
}

.contact-btn.whatsapp-btn:hover {
    background: linear-gradient(135deg, #20b359 0%, #0f7a6b 100%);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.4);
}

.contact-btn.call-btn:hover {
    background: linear-gradient(135deg, #3367d6 0%, #1145a8 100%);
    box-shadow: 0 12px 35px rgba(66, 133, 244, 0.4);
}

/* Enhanced Modal Body */
#popUpModal .modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

#popUpModal .modal-body {
    padding: 0;
}

/* Responsive Design for Professional Header */
@media (max-width: 768px) {
    .modal-header-section {
        margin: -1.5rem -1rem 1.5rem -1rem;
        padding: 2rem 1.5rem;
    }
    
    .header-title {
        font-size: 1.4rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-buttons {
        gap: 1rem;
    }
    
    .contact-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        gap: 0.5rem;
    }
    
    .contact-btn i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .modal-header-section {
        margin: -1rem -1rem 1rem -1rem;
        padding: 1.5rem 1rem;
    }
    
    .header-title {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        letter-spacing: 0.3px;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .contact-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}
