/* Global */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #edebd9;
    color: #1c1f4c;
}

.text-primary {
    color: #1c1f4c !important;
}

/* Navbar */
nav {
    background: #ffffff;
    border-bottom: 3px solid #fccf17;
    /* position: fixed !important; */
    width: 100%;
}

.navbar-nav .nav-link {
    color: #1c1f4c;
    font-weight: 600;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #00848c !important;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: 0.3s;
}

/* Buttons */
.btn-primary {
    background-color: #037272 !important;
    border-color: #037272 !important;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(3, 114, 114, 0.25);
}

.btn-primary:hover {
    background-color: #00848c !important;
    border-color: #00848c !important;
}

.btn-outline-dark {
    border-color: #1c1f4c !important;
    color: #1c1f4c !important;
}

.btn-outline-dark:hover,
.btn-outline-dark.active {
    background-color: #1c1f4c !important;
    color: #edebd9 !important;
}

/* Hero Box */
section#home .p-4 {
    background: #edebd9;
    border-left: 6px solid #fec20f;
}

/* Cards */
.card {
    border: none;
    border-radius: 14px;
    background-color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0px 12px 25px rgba(0, 0, 0, 0.12);
}

.card h5 {
    color: #037272 !important;
}

/* Service Tabs */
#serviceTabs button {
    font-size: 0.9rem;
    border-radius: 20px;
    /* padding: 8px 20px; */
    font-weight: 600;
}

#serviceTabs button.active {
    background-color: #00848c !important;
    color: #fff !important;
    border-color: transparent !important;
}

#serviceTabs {
    flex-wrap: wrap !important;
    overflow: visible;
}


#serviceTabs button {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Optional: Hide scrollbar for cleaner UI */
#serviceTabs::-webkit-scrollbar {
    display: none;
}


/* Service Content Box */
#serviceContent {
    background-color: #ffffff;
    border-left: 8px solid #fccf17;
}

/* Correct anchor scroll offset for navbar */
#services,
#About,
#why-us {
    scroll-margin-top: 20px !important;
}


/* Why Choose Us */
#why-us {
    background: #f8f8f0;
}

/* About Section */
.aboutcont {
    background-color: #1c1f4c;
    color: #edebd9;
    border: 4px solid #fec20f;
}

/* How It Works */
.hiw-icon {

    color: #352c65;
    /* Same theme color */
    background: #eef2ff;
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Ensure icon inside becomes visible */
.hiw-icon i {
    color: #352c65 !important;
    font-size: 32px;
}

.hiw-box h5 {
    color: #233876;
}

.hiw-box p {
    color: #352c65 !important;
}

/* Footer */
footer {
    background: #1c1f4c !important;
    color: #ffffff;
    border-top: 5px solid #fec20f;
}

footer a:hover {
    color: #fccf17 !important;
}

/* Scroll offset */
#services,
#About,
#home {
    scroll-margin-top: 90px;
}


/* Modal Full Style */
.form-modal-custom {
    background: #fffdf5;
    border-radius: 20px;
    border: none;
    padding: 0;
    max-width: 900px !important;
    width: 100%;
    margin: auto;
    box-shadow: 0 10px 45px rgba(0, 0, 0, 0.25);
}

.form-modal-custom .row {
    width: 100% !important;
    margin: 0 !important;
}

/* Left Form Section */
.form-section {
    background: #ffffff;
    border-radius: 20px 0 0 20px;
}

.form-style {
    border: none !important;
    border-bottom: 1.5px solid #1c1f4c !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 8px 4px;
}

.form-style:focus {
    border-bottom-color: #037272 !important;
    box-shadow: none !important;
}

/* Submit Button */
.form-submit-btn {
    background: #037272 !important;
    border-radius: 25px;
    font-weight: bold;
    padding: 10px 0;
}

.form-submit-btn:hover {
    background: #00848c !important;
}

/* Right Branding Section */
.form-info {
    justify-content: center;
}

/* Illustration */
.illustration-img {
    animation: floatUp 2s ease-in-out infinite alternate;
}

.modal-dialog {
    max-width: 1100px !important;
    /* Increase width */
    width: 100% !important;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 55px;
    height: 55px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 28px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 22px rgba(0,0,0,0.35);
    color: #fff;
}

@keyframes floatUp {
    0% {
        transform: translateY(4px);
    }

    100% {
        transform: translateY(-4px);
    }
}

@media (min-width: 992px) {
    .modal-dialog-centered {
        min-width: 1100px !important;
    }
}


@media (max-width: 768px) {
    .hiw-icon {
        font-size: 30px;
        width: 55px;
        height: 55px;
    }

    .form-modal-custom {
        margin: 10px;
        padding: 0;
    }

    .form-section {
        border-radius: 20px;
    }

    .form-info {
        display: none !important;
    }
}

/* Mobile-friendly adjustments */
@media (max-width: 576px) {

    header h1 {
        font-size: 32px;
        line-height: 1.3;
    }

    header p {
        font-size: 16px;
    }

    .navbar-brand {
        font-size: 20px;
    }

    .btn-primary {
        width: 100%;
        margin-top: 15px;
    }

    #navEmailBtn {
        margin-top: 11px;
    }

    .navbar-collapse {
        text-align: center;
    }

    .navbar-nav {
        margin-bottom: 15px;
    }

    #logo {
        max-width: 30px;
        max-height: 70px;
    }

    #rCallBack {
        max-width: 70px;
        max-height: 40px;
        font-size: 10px;
        text-align: center;
        justify-content: center;
        margin: 0, 10px, 20px, 50px;

    }
}

/* Desktop - wrap normally */
/* @media (min-width: 769px) {
    #serviceTabs {
        flex-wrap: wrap !important;
        overflow: visible !important;
        white-space: normal !important;
    }
} */

/* Keep image and text side-by-side on mobile */
@media (max-width: 768px) {
    #services,
    #About,
    #why-us,
    #home {
        scroll-margin-top: 150px !important;   /* Adjust for mobile navbar */
    }
    
    #serviceTabs {
        display: flex !important;
        /* flex-wrap: nowrap !important; */
        /* overflow-x: auto !important;
        overflow-y: hidden !important; */
        /* white-space: nowrap !important; */
        padding: 10px 0;
        gap: 10px;
        /* scrollbar-width: none; Firefox */
    }

    #serviceContent .row {
        flex-direction: row !important;
        flex-wrap: nowrap;
        align-items: flex-start;
    }

    #serviceContent .col-md-5,
    #serviceContent .col-md-7 {
        width: 50% !important;
        max-width: 50% !important;
        margin: 0 !important;
    }

    #serviceList {
        padding-left: 16px;
        /* better spacing */
    }

    #serviceTabs button {
        flex: 0 0 auto;
        scroll-snap-align: start;
        white-space: nowrap !important;
    }

    #serviceContent {
        padding: 15px !important;
    }

    #serviceContent h4 {
        font-size: 18px !important;
        margin-bottom: 10px;
    }

    #serviceList li {
        font-size: 10px !important;
        line-height: 1.4;
    }

    #servicePrice {
        font-size: 11px !important;
    }

    #serviceImage {
        max-height: 120px !important;
        /* FIX #2 */
        width: 100%;
        object-fit: contain;
    }
}

/* Hide on desktop */
@media (min-width: 992px) {
    .btn-close {
        display: none !important;
    }
}

/* Show on mobile */
@media (max-width: 991px) {
    .btn-close {
        display: block !important;
    }
}


/* Mobile Contact Button Animation */
@keyframes popIn {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}