body {
  position: relative;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  padding-top: 70px;
}
img {
  max-width: 100%;
  height: auto;
}

/* === Sticky Navbar === */
nav.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: white;
  height: 70px;
}

.navbar-nav .nav-link {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
}
.navbar-nav .nav-link span {
  display: block;
  line-height: 1.5em;
  user-select: none;
  color: black !important;
}
.navbar-nav .nav-link span.top-text {
  color: white;
}
.navbar-nav .nav-link span.bottom-text {
  color: #ff6347 !important;
  position: absolute;
  top: 32px;
  left: 10px;
  width: 100%;
  transform: translateY(0);
  opacity: 0;
}
.navbar-nav .nav-link:hover span.top-text {
  transform: translateY(-100%);
  opacity: 0;
}
.navbar-nav .nav-link:hover span.bottom-text {
  transform: translateY(-100%);
  opacity: 1;
}
.navbar-nav .nav-link.active span.top-text {
  color: #f4511e !important;
  border-bottom: none;
}

/* === Toggler Button === */
.navbar-toggler {
  border: none;
  background: transparent;
  display: none;
  position: relative;
  width: 30px;
  height: 24px;
  cursor: pointer;
  z-index: 1050;
}
.navbar-toggler .bar {
  display: block;
  width: 25px;
  height: 3px;
  background-color: black;
  margin: 5px 0;
  transition: 0.4s;
  border-radius: 2px;
}
.navbar-toggler .arrow {
  display: none;
}
.navbar-toggler.active .bar {
  opacity: 0;
}
.navbar-toggler.active .arrow {
  display: inline-block;
  transform: rotate(134deg);
  position: absolute;
  top: 52%;
  left: 50%;
  margin-top: -2px;
  margin-left: -10px;
}

/* === Sidebar === */
#sidebar {
  position: fixed;
  top: 0;
  left: -300px;
  width: 300px;
  height: 100vh;
  background-color: whitesmoke;
  transition: left 0.3s ease;
  z-index: 1040;
  padding-top: 70px;
  overflow: auto;
}
.d-flex.align-items-center:hover {
  color: #ff6347 !important;
}
#sidebar.active {
  left: 0;
}
#sidebar .navbar-nav {
  flex-direction: column;
  padding-left: 1rem;
}
#sidebar .nav-link {
  color: black !important;
  font-size: 1.2rem;
  padding: 0.75rem 0;
}
#sidebar .nav-link span.top-text {
  color: black;
}
#sidebar .nav-link span.bottom-text {
  color: #ff6347 !important;
  top: 28px;
  left: 0;
}
#sidebarCloseBtn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1055;
  color: black;
}

/* === Contact Form Overlay & Styling === */
.contact-form-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  display: none;
  justify-content: center;
  align-items: flex-start;
  z-index: 9999;
  padding: 20px;
  overflow-y: auto;
}
.contact-form-overlay.active {
  display: flex;
}

.contact-form-container {
    top: 2px;
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    padding: 2rem;
    position: relative;
    max-height: none;
    height: 520px;
    overflow: hidden;
}
.contact-form-box h2,
.contact-form-box p {
  text-align: center;
}
.contact-form-box input,
.contact-form-box textarea,
.contact-form-box select {
  width: 100%;
  margin-bottom: 15px;
  padding: 10px 15px;
  border-radius: inherit;
  font-size: 16px;
  border: 1px solid #ccc;
}

/* ✅ Fixed Dropdown Icon */
.contact-form-box select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: url('data:image/svg+xml;utf8,<svg fill="black" height="18" viewBox="0 0 24 24" width="18" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') no-repeat right 12px center;
  background-size: 18px;
  background-color: #fff;
  padding-right: 40px;
}

/* === Title/Subtext === */
.form-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: -18px;
}
.form-subtitle {
  font-size: 16px;
  color: #555;
}

.close-form-btn {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  background: none;
  border: none;
  font-weight: bold;
  color: #000;
  cursor: pointer;
  z-index: 1000;
}

/* === Floating Contact Icon === */
.floating-btn {
  position: absolute;
  right: 100px;
  top: 100px;
  background-color: #f4511e;
  border: 2px solid black;
  width: 55px;
  height: 55px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.floating-btn .bar {
  width: 20px;
  height: 2px;
  background: #fff;
  margin: 3px 0;
  transition: 0.4s;
}

button.btn.btn-orange.w-100.mb-5 {
    margin-top: -53px;
    width: 541px !important;
    margin-left: 6px;
}

#openContactFormBtn {
    display: block;
    padding: 10px 20px;
    color: white;
    border: none;
    font-size: 16px;
    background: #f44310;
    margin-left: 14px;
}
#openContactFormBtn:hover {
  background: #2e2c64;
}
ul.navbar-nav {
    margin-left: 119px !important;
}

img#contact-logo {
  height: 75px;
}

/* === Info Popup === */
.info-popup {
  position: fixed;
  top: -100%;
  left: 0;
  right: 0;
  background-color: #2e2c64;
  color: white;
  padding: 1rem;
  border-radius: 0 0 10px 10px;
  z-index: 9999;
}
.info-popup:target {
  top: 0;
}
.info-popup .close-btn {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 2rem;
  color: white;
  text-decoration: none;
}

/* === Branding Image === */
.navbar-brand img {
  width: 268px;
  height: 60px;
  margin-left: 39px;
}
.col-12 {
    flex: 0 0 auto;
    width: 100%;
    margin-top: -3px;
}
input#captchaInput {
    position: relative;
    top: -40px;
}

/* === Responsive Media Queries === */
@media (max-width: 991.98px) {
  nav.navbar {
    position: fixed;
    top: -5px;
    left: 0;
    right: 0;
  }
  .navbar-toggler {
    display: block;
  }
  .navbar-collapse {
    display: none !important;
  }
  #sidebar {
    width: 100vw;
    left: -100vw;
  }
  #sidebar.active {
    left: 0;
  }
  .navbar-brand img {
    height: 60px;
    margin-left: 0;
    max-width: 200px;
  }
  
  .floating-btn {
    width: 45px;
    height: 45px;
    right: 20px;
    top: 80px;
  }
  .floating-btn .bar {
    width: 18px;
  }
}


@media (max-width: 576px) {
  .navbar-brand img {
    max-width: 160px;
    margin-left: 0;
  }
  .contact-form-section {
    padding: 40px 20px;
    background-color: #fff;
    max-width: 700px;
    margin: auto;
  }
  .info-popup {
    font-size: 0.9rem;
    padding: 0.8rem;
  }
  .info-popup .close-btn {
    font-size: 1.5rem;
  }
}

@media (min-width: 992px) {
  #sidebar {
    display: none;
  }
  .navbar-collapse {
    display: flex !important;
  }
  .floating-btn {
    display: flex !important;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .navbar-nav {
    display: none !important;
  }
}
@media (min-width: 320px) and (max-width: 430px) {
  .navbar-nav {
    display: none !important;
  }
  .navbar-toggler {
    display: block !important;
  }
}
.navbar-nav {
  display: flex !important;
}
.navbar-toggler {
  display: none !important;
}
@media (max-width: 767.98px) {
  .navbar-nav {
    display: none !important;
  }
  .navbar-toggler {
    display: block !important;
  }
}
