html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
    text-align: start;
}

/* Active Nav Link (Global) */
.navbar-nav .nav-link.active-nav {
    color: #0d6efd !important;
    font-weight: 700 !important;
    position: relative;
}

.navbar-nav .nav-link.active-nav::after {
    content: '';
    position: absolute;
    bottom: 5px;
    /* Moved up slightly to be closer to text */
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 3px;
    background-color: #0d6efd;
    border-radius: 4px;
}

/* ENTERPRISE TABS FOR PROFILE */
.enterprise-top-tabs-container {
    background: #fff;
    border: 1px solid var(--bc-border-soft, #e2e8f0);
    border-radius: .9rem;
    padding: .5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.enterprise-top-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    gap: .25rem;
    padding-bottom: 2px;
}

.enterprise-top-tabs::-webkit-scrollbar {
    height: 4px;
}

.enterprise-top-tabs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.enterprise-top-tabs .nav-link {
    color: #475569;
    font-weight: 700;
    font-size: .86rem;
    padding: .65rem 1rem;
    border-radius: .65rem;
    transition: all .2s ease;
}

.enterprise-top-tabs .nav-link:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.enterprise-top-tabs .nav-link.active {
    background: var(--bc-primary-soft, #eff6ff);
    color: var(--bc-primary, #3b82f6);
    box-shadow: inset 0 -3px 0 var(--bc-primary, #3b82f6);
}

.enterprise-top-tabs .nav-link i {
    color: #94a3b8;
    transition: color .2s ease;
}

.enterprise-top-tabs .nav-link.active i {
    color: var(--bc-primary, #3b82f6);
}

.enterprise-section-card {
    display: none;
}

.enterprise-section-card.active-tab {
    display: block;
    animation: fadeInTab 0.3s ease;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Map containers */
#publicServiceAreaMap {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

#sidebarMap {
    width: 100%;
    height: 250px;
    border-radius: 12px;
}

/* Gallery */
.gallery-img,
.gallery-video {
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform .2s;
}

.gallery-img:hover,
.gallery-video:hover {
    transform: scale(1.03);
}

/* ServiceRadius select */
.form-select-enterprise {
    background: #eff6ff;
    border: 1px solid #3b82f6;
    color: #3b82f6;
    border-radius: 8px;
    padding: .5rem 1rem;
}

/* Fix Bootstrap Modal Page Shift */
body.modal-open {
    padding-right: 0 !important;
    overflow-y: scroll !important;
}

/* =======================================
/* =======================================
   FOOTER (DELUXE ENTERPRISE)
======================================== */
.bc-footer-deluxe {
    background: radial-gradient(circle at 100% 0%, #061b3b 0%, #020b18 50%, #01060e 100%);
    color: #94a3b8;
    padding: 60px 0 0 0;
    font-size: 0.95rem;
    border-top: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    margin-top: 40px;
    position: relative;
    overflow: hidden;
}

.bc-footer-deluxe::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(14, 165, 233, 0.5) 50%, transparent 100%);
    opacity: 0.5;
}

.footer-main-row {
    padding-bottom: 0px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.footer-brand img {
    height: 40px;
}

.footer-brand span {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.footer-brand em {
    color: #0ea5e9;
    font-style: normal;
    font-weight: 600;
}

.footer-desc {
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-socials a:hover {
    background: #0ea5e9;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.footer-col {
    position: relative;
}

.footer-col::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.05) 0%, transparent 100%);
}

.footer-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
    padding-left: 30px; /* Align with link text (18px icon + 12px gap) */
}

.footer-title::after {
    content: '';
    position: absolute;
    left: 30px; /* Align with link text */
    bottom: -8px;
    width: 24px;
    height: 2px;
    background: #0ea5e9;
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 16px;
}

.footer-links li:last-child {
    margin-bottom: 0;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.footer-links a i:not(.chevron-right) {
    color: #0ea5e9;
    font-size: 1.1rem;
    width: 18px;
    text-align: center;
}

.footer-links a .chevron-right {
    font-size: 0.7rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-links a:hover .chevron-right {
    opacity: 1;
    transform: translateX(0);
}

.footer-newsletter-box {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.05) 0%, rgba(15, 23, 42, 0.4) 100%);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.fn-icon {
    width: 40px;
    height: 40px;
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 16px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.footer-newsletter-box h4 {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
}

.footer-newsletter-box p {
    color: #94a3b8;
    line-height: 1.4;
}

.fn-input-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.fn-input-wrapper i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
}

.fn-input-wrapper input {
    width: 100%;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #ffffff;
    padding: 12px 16px 12px 44px;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: all 0.2s;
}

.fn-input-wrapper input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.fn-btn {
    width: 100%;
    background: #0ea5e9;
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    transition: background 0.2s;
}

.fn-btn:hover {
    background: #0284c7;
}

.footer-bottom-bar {
    background: #020813;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin: 0 -12px; /* Pull to edges of container */
    padding-left: 24px;
    padding-right: 24px;
    border-radius: 0 0 24px 24px;
}

.fb-left {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    color: #64748b;
}

.fb-shield {
    width: 32px;
    height: 32px;
    background: rgba(14, 165, 233, 0.1);
    color: #0ea5e9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.fb-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-right: 60px;
}

.fb-right a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.fb-right a:hover {
    color: #ffffff;
}

.fb-right .sep {
    color: #334155;
    font-size: 0.8rem;
}

.fb-totop {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.fb-totop:hover {
    background: #0ea5e9;
    border-color: #0ea5e9;
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .bc-footer-deluxe {
        overflow-x: hidden;
    }
    .footer-col::before {
        display: none;
    }
    .footer-col .footer-title {
        padding: 10px 0;
        margin-bottom: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
    .footer-col .collapse.show,
    .footer-col .collapsing {
        padding-top: 10px;
    }
    .footer-main-row {
        --bs-gutter-y: 1.25rem;
    }
    .footer-bottom-bar {
        flex-direction: column;
        text-align: center;
        margin: 16px 0 0 0;
        padding: 18px 12px;
        border-radius: 16px;
        gap: 12px;
    }
    .fb-left {
        justify-content: center;
        text-align: left;
    }
    .fb-right {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 12px;
        margin-right: 0;
    }
}

/* =======================================
   BACK TO TOP BUTTON
======================================== */
.bc-back-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: #0f172a;
    border: 1px solid rgba(14, 165, 233, 0.4);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.bc-back-top:hover {
    background: #0ea5e9;
    border-color: #0ea5e9;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.bc-back-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}