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%;
}


.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;
}


.mobile-footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #010f31;
    padding: 10px 0;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 99999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
}

.m-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    font-size: 13px;
}

    .m-nav-item i {
        font-size: 22px;
        margin-bottom: 3px;
    }

@media (min-width: 768px) {
    .mobile-footer-nav {
        display: none;
    }
}


@media (max-width: 768px) {
    .mobile-center-logo img {
        width: 260px !important; 
    }
}


.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #4b5563; 
    box-shadow: 0 0 0 1px #4b5563;
    outline: none;
}



.error-text {
    color: #ff0000;
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

/* Fix for dropdown menus closing when moving cursor (hover gap bridge) */
.header-dropdown::after,
.mega-dropdown::after {
    content: "";
    position: absolute;
    top: -20px; /* Bridges the physical gap between the nav text and the dropdown */
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}


/* CONTACT FORM FIX */
.contact-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: -20px;   /* gap bridge */
    width: 20px;
    height: 100%;
    background: transparent;
}


.contact-float-wrapper {
    position: fixed;
    right: 0;
    top: 37%;
    z-index: 9999;
}

.contact-panel {
    position: absolute;
    right: 100%;
    top: 0;
    width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

    /* HOVER CONTROL */
    .contact-float-wrapper:hover .contact-panel,
    .contact-panel:hover {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

.back-home-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

    /* Hover Effect 🔥 */
    .back-home-btn:hover {
        background: #0056b3;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }