/* ==================================== */
/*            ROOT VARIABLES            */
/* ==================================== */

:root {
    --primary-color: #632E8F;
    --primary-color-dark: #4b1f6e;
    --menu-bg-color: #E5EAF5;
    --dropdown-hover-bg: #e0d6eb;
    --dropdown-border: #b08ac7;
    --balsamic-white: #F8BF00;
    --transition-fast: 0.3s ease-in-out;
}

/* ==================================== */
/*            GLOBAL STYLES             */
/* ==================================== */

html, body {
    height: auto;
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: "Montserrat", Montserrat;
    background-color: #E5EAF5;
    overflow-x: hidden;
}

/* ==================================== */
/*               NAVBAR                 */
/* ==================================== */

.navbar-upper {
    background: var(--primary-color-dark);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 0px;
    width: 100vw;
    box-shadow: 0 15px 15px rgba(0, 0, 0, 0.2);
    height: 100px;
    position: relative;
}

.navbar .container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin: 0;
    width: 100%;
}

.navbar-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 12px 20px;
    border-radius: 15px;
    box-shadow: 0px 5px 9px rgba(0, 0, 0, 0.15), 
                0px 3px 6px rgba(0, 0, 0, 0.10);
    width: 170px;
    height: 70px;
    margin-left: 30px; /* Adjust as needed */
}

.navbar-logo {
    max-width: 160px;
    height: auto;
}

.navbar-links {
  display: flex;
  justify-content: flex-end; /* Push items to the right */
  align-items: center;
  width: 100%;
  gap: 20px;
  padding-right: 40px; /* Optional: matches page layout */
}

.navbar-nav {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* Push nav items to the right */
  padding: 0;
  margin: 0;
  gap: 20px;
  width: auto; /* prevents stretching */
}


.nav-item {
    position: relative;
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 0 15px;
}

.nav-link {
    color: white;
    font-weight: normal;
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 16px;
    padding: 10px 15px;
}

.nav-link:hover {
    color: var(--balsamic-white);
}

.nav-item a {
    display: inline-block;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -5px;
    width: 0;
    height: 3px;
    background-color: var(--balsamic-white);
    transition: width var(--transition-fast), left var(--transition-fast);
}

.nav-link:hover::after {
    width: 100%;
    left: 0;
}
/* ==================================== */
/*       NOTIFICATION BAR STYLES       */
/* ==================================== */

.text-container {
    max-width: 50%;
    min-height: 330px;
    background-color: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: auto;
}

.text-container .why-frame-title {
    font-size: 32px;
    font-family: var(--primary-font);
    font-weight: bold;
    color: var(--primary-color-dark);
    margin-bottom: 20px;
}

.text-container p {
    font-size: 18px;
    color: #333;
    line-height: 1.6;
}

.notification-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    /* Fallback for browsers that don't support backdrop-filter */
    background: rgba(0, 0, 0, 0.9);
    /* Vendor prefixes and modern backdrop-filter */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: white;
    font-weight: normal;
    font-size: 16px;
    padding: 10px 20px;
    position: fixed;
    top: 100px;
    left: 0;
    z-index: 1100;
    transition: opacity 0.10s ease-in-out;
    min-height: 0;
    text-align: center;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-wrap: wrap;
    top: 0;
}

/* Enhanced backdrop-filter support with feature detection */
@supports (backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px)) {
    .notification-bar {
        background: rgba(0, 0, 0, 0.8);
    }
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 10px;
    flex-wrap: wrap;
}

.dismiss-btn {
    font-size: 14px;
    font-weight: normal;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
    padding: 0;
    margin-left: auto;
    display: inline;
    text-decoration: underline;
    white-space: nowrap;
}

.dismiss-btn:hover {
    opacity: 0.7;
    text-decoration: none;
}

.notification-bar a {
    color: white;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.notification-bar a:hover {
    color: var(--balsamic-white);
}

.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
}

/* ==================================== */
/*       MOBILE VIEW FIXES              */
/* ==================================== */

@media (max-width: 768px) {
    .info-section {
        flex-direction: column;
        align-items: center;
        padding: 20px 5%;
        gap: 10px;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: 5px;
    }

    .why-frame-text-container {
        max-width: 85%;
        padding: 15px;
        text-align: center;
    }

    .content-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 15px; /* 🔥 Matched spacing with info-section */
    }

    .text-container {
        max-width: 85%;
        padding: 15px;
        min-height: 0;
        text-align: center;
    }

    .text-container .why-frame-title {
        font-size: 22px; /* Reduced for mobile */
        text-align: center;
    }

    .text-container p {
        font-size: 14px;
        line-height: 1.4;
        text-align: center;
    }

    .image-container {
        max-width: 85%;
        display: flex;
        justify-content: center;
    }

    .image-container img {
        width: 100%;
        height: auto;
    }
}

/* ==================================== */
/*       STICKY BOTTOM NAVIGATION       */
/* ==================================== */

.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--primary-color-dark);
    display: none; /* Hide by default */
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0px -4px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top: 1px solid rgba(255,255,255,0.1);
    height: 60px;
}

.mobile-bottom-nav button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 15px;
    flex: 1;
    text-align: center;
    cursor: pointer;
    transition: none !important;
    border-radius: 8px;
    margin: 0 5px;
    font-size: 12px;
}


.mobile-bottom-nav button:focus,
.mobile-bottom-nav button:active {
    outline: none;
    box-shadow: none;
}


/* ==================================== */
/*       MOBILE BOTTOM NAVIGATION       */
/* ==================================== */

@media (max-width: 992px) {
    body {
        padding-bottom: 70px !important;
    }

    .mobile-bottom-nav {
        display: flex !important; /* Show the menu on mobile screens */
    }
}

@media (min-width: 993px) {
    .mobile-bottom-nav {
        display: none; /* Hide on larger screens */
    }
}
/* ==================================== */
/*         MEGA DROPDOWN MENU           */
/* ==================================== */

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: rgba(245, 245, 245, 0.85);
    /* Fallback for browsers that don't support backdrop-filter */
    background-color: rgba(245, 245, 245, 0.95);
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    border-radius: 12px;
    /* Vendor prefixes and modern backdrop-filter */
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    justify-content: space-between;
    gap: 10px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
}

/* Enhanced backdrop-filter support with feature detection */
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
    .dropdown-menu {
        background-color: rgba(245, 245, 245, 0.85);
    }
}

.nav-item:hover > .dropdown-menu {
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-left, .dropdown-right {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    min-width: 150px;
}

/* Dropdown menu background with blur effect */
.dropdown-menu {
    background-color: rgba(75, 31, 110, 0.8); /* Using --primary-color-dark with opacity */
    /* Fallback for browsers that don't support backdrop-filter */
    background-color: rgba(75, 31, 110, 0.9);
    /* Vendor prefixes and modern backdrop-filter */
    -webkit-backdrop-filter: blur(8px); /* Blur effect */
    backdrop-filter: blur(8px); /* Blur effect */
    border: 1px solid var(--dropdown-border); /* Using root variable for border */
    border-radius: 8px;
    padding: 5px 0;
}

/* Enhanced backdrop-filter support with feature detection for second dropdown-menu rule */
@supports (backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px)) {
    .dropdown-menu {
        background-color: rgba(75, 31, 110, 0.8);
    }
}

/* Dropdown button styles */
.dropdown-item {
    display: block; /* Changed to block for better spacing and alignment */
    padding: 8px 20px; /* Updated padding for a better visual */
    color: #E5EAF5;  /* Text color set to white */
    text-decoration: none;
    font-weight: normal;
    font-size: 14px;
    transition: background-color var(--transition-fast), color var(--transition-fast);
    text-align: left;
    border-radius: 6px;
    width: 100%; /* Ensures full width for better hover effect */
    background-color: transparent; /* Default non-hover state is transparent */
}

.dropdown-item:hover {
    background-color: #E5EAF5; 
    color: var(--primary-color-dark); /* Change text color on hover to dark primary color */
}

/* Make font color change to solid yellow without any frame effect on hover */
.dropdown-item:hover {
    color: var(--primary-color-dark); /* Set text color to yellow on hover */
}


/* ==================================== */
/*          MOBILE MENU STYLES          */
/* ==================================== */

@media (max-width: 992px) {
    .navbar-links {
        display: none !important;
    }
}

@media (min-width: 993px) {
    .navbar-links {
        display: flex !important;
    }
}


body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--menu-bg-color);
  margin: 0;
  padding: 0;
}

.navbar-upper {
  background: var(--primary-color-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  height: 100px;
}

.navbar-logo-container {
  background: white;
  padding: 12px 20px;
  border-radius: 15px;
  box-shadow: 0 5px 9px rgba(0, 0, 0, 0.15);
  margin-left: 30px;
}

.navbar-logo {
  max-width: 160px;
  height: auto;
}

.navbar-links ul {
  display: flex;
  list-style: none;
  gap: 20px;
  margin-right: 20px;
}

.navbar-links .nav-link {
  color: white;
  font-weight: normal;
  padding: 10px 15px;
}

.navbar-links .nav-link:hover {
  color: var(--balsamic-white);
}

.notification-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  font-size: 16px;
  padding: 10px;
  flex-wrap: wrap;
}

.dismiss-btn {
  background: none;
  border: none;
  color: white;
  text-decoration: underline;
  margin-left: auto;
}

.form-section {
  background: white;
  padding: 40px;
  border-radius: 16px;
  margin: 60px auto;
  max-width: 600px;
  box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden; /* or try scroll if content is cut off */
  position: relative;
  overflow: visible;
}



select.form-control {
  max-width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-radius: 10px;
  overflow-x: hidden;
  width: 100%;
}

.form-control {
  border-radius: 10px;
}

#paymentMethod option[value="credit"] {
  display: none;
}

#payNowButton {
  display: none;
}

.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--primary-color-dark);
  display: none;
  justify-content: space-around;
  align-items: center;
  padding: 10px 0;
  box-shadow: 0px -4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  border-top: 1px solid rgba(255,255,255,0.1);
  height: 60px;
}
.form-group {
  position: relative;
}

@media (min-width: 992px) and (max-width: 1200px) {
  .form-section {
    overflow: visible !important;  /* allow dropdowns to extend */
    padding: 30px;
  }

  .form-group select {
    max-width: 100%;
  }
}

@media (min-width: 992px) and (max-width: 1200px) {
  .form-section {
    overflow: visible !important;
  }
}

.mobile-bottom-nav button {
  background: none;
  border: none;
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 12px 15px;
  flex: 1;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  margin: 0 5px;
}

.mobile-bottom-nav button:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer {
  background-color: white;
  color: #632E8F;
  padding: 60px 40px 40px;
  margin-top: 40px;
  width: 100%;
  text-align: left;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  width: 100%;
  padding: 0;
  gap: 40px;
  height: auto;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-center {
  align-items: center;
  text-align: center;
}

.footer-right {
  align-items: flex-end;
  text-align: right;
}

.footer-left {
  align-items: flex-start;
  text-align: left;
}

.footer-logo {
  width: 130px;
  margin-bottom: 20px;
}

.footer h4 {
  color: #632E8F;
  margin-bottom: 12px;
  font-weight: bold;
  font-size: 18px;
}

.footer-text,
.footer a {
  font-size: 16px;
  color: black;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s ease, font-weight 0.3s ease;
  line-height: 1.6;
}

.footer a:hover {
  color: var(--primary-color);
  font-weight: bold;
}

.footer-socials a {
  margin-right: 12px;
  font-size: 16px;
}

@media (max-width: 768px) {
  .form-section {
    padding: 20px;
    margin: 20px;
    max-width: 95%;
  }
  .navbar-upper {
    flex-direction: column;
    height: auto;
    padding: 10px;
  }
  .navbar-logo-container {
    margin-left: 0;
    margin-bottom: 10px;
  }
  .navbar-links ul {
    flex-direction: column;
    align-items: center;
    margin: 0;
  }
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    padding: 20px;
  }
  .footer-left,
  .footer-center,
  .footer-right {
    align-items: center;
    text-align: center;
    padding: 10px 0;
    width: 100%;
  }
  .footer-logo {
    margin: 0 auto 20px;
  }
  .footer h4 {
    font-size: 17px;
  }
  .footer-text,
  .footer a {
    font-size: 15px;
  }
}