  /* Reset and Base Styles */
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
       /*top barspacing*/
        body {
            font-family: 'Arial', sans-serif;
            line-height: 1.6;
            color: #333;
        }
        /*primary header/nav bar*/
        .primary-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}


        /*mail notification icon*/
          .mail-icon {
    font-size: 1.3rem;
    color: #007bff;
    cursor: pointer;
    transition: color 0.3s ease;
}

.mail-icon:hover {
    color: #333; /* changes to blue when hovered */
}

.mail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
}



        /* Utility Classes hiding top bar */
          .visually-hidden {
            position: absolute !important;
            width: 1px !important;
            height: 1px !important;
            padding: 0 !important;
            margin: -1px !important;
            overflow: hidden !important;
            clip: rect(0, 0, 0, 0) !important;
            white-space: nowrap !important;
            border: 0 !important;
        }
         /* hidin header top bar search*/
         .hide {
            display: none !important;
        }

        .m-0 { margin: 0 !important; }
        .mr-1 { margin-right: 0.25rem !important; }
        .d-flex { display: flex !important; }
        .flex-column { flex-direction: column !important; }
        .flex-row { flex-direction: row !important; }
        .align-items-center { align-items: center !important; }
        .align-items-stretch { align-items: stretch !important; }
        .justify-content-center { justify-content: center !important; }
        .text-center { text-align: center !important; } 

        
/* Header Top Bar where logo is*/
         .nav-top-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 2rem;
            flex-wrap: wrap;
        }



         .nav-top-link:hover {
            color: #007bff;
        }

        /* Online Banking button header*/
        .olb-wrapper {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
     /* Mobile hambuger hiding icon*/
        .mobile-nav-buttons {
            display: none;
            align-items: center;
            gap: 1rem;
        }
             .open-mobilemenu {
    cursor: pointer;
    font-size: 1.2rem;
    color: #333;
    transition: color 0.3s ease;
}

.open-mobilemenu:hover {
    color: #007bff;
}

        .fdic-logo {
            width: 80px;
            height: 40px;
            background: #333;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 0.7rem;
            font-weight: bold;
        } 

         /* Button Styles header Online Banking  */
          .button {
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 4px;
            text-decoration: none;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-block;
            text-align: center;
        } 


       /* header Online Banking button*/
        .button-secondary {
             background: #0056b3;
            color: white;
        }
        /* header Online Banking button*/
        .button-secondary:hover {
            background: #545b62;
        }
          /* header Online Banking button*/
        .button-olb {
            font-size: 0.9rem;
            padding: 0.5rem 1rem;
        }  

        /* Navigation Menu Personal/Business Loan */
          .nav-list {
           background: #0056b3;
            padding: 0 2rem;
            display: flex;
            gap: 0;
            border-top: 1px solid #dee2e6;
        }

      /* header Online Banking button*/
         .nav-item {
            display: block;
            padding: 1rem 1.5rem;
            color: whitesmoke;
            text-decoration: none;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            border-bottom: 3px solid transparent;
        }
         /* top bar Online Banking button*/
        .nav-item:hover {
            background: #e9ecef;
            border-bottom-color: #007bff;
            color: #007bff;
        } 
       /*end of top bar*/




       /*hambuger  Mobile Menu Styles */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: #0056b3; /* Blue background directly on menu */
    transition: right 0.3s ease;
    z-index: 1001;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    padding-top: 80px; /* Space for header */
}

.mobile-menu.active {
    right: 0;
}

/* Override your existing nav-list styles for mobile */
.mobile-menu .nav-list {
    background: transparent !important;
    padding: 0 !important;
    display: block !important;
    gap: 0 !important;
    border-top: none !important;
    flex-direction: column !important;
}

.mobile-menu .nav-family {
    border-bottom: 1px solid rgba(255,255,255,0.2);
    width: 100%;
}

.mobile-menu .nav-item {
    display: block !important;
    padding: 15px 20px !important;
    color: white !important;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: none !important;
    width: 100%;
    background: transparent !important;
}

.mobile-menu .nav-item:hover {
    background: rgba(255,255,255,0.1) !important;
    color: white !important;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Show mobile hamburger on small screens */
@media (max-width: 768px) {
    .mobile-nav-buttons {
        display: flex !important;
    }

    .button-olb {
        padding: 0.25rem 0.6rem !important;
        font-size: 0.75rem !important;
    }

    .fdic-logo {
        width: 50px !important;
        height: 25px !important;
        font-size: 0.5rem !important;
    }


    .open-mobilemenu .fa-bars {
        font-size: 0.9rem !important;
    }
    
    .nav-list {
        display: none !important;
    }
    
    .d-lg-none {
        display: inline-block !important;
    }
}

/*end hamburger*/

        /* Hero Marketing Slides */

          .mod-marketing {
            position: relative;
            overflow: hidden;
            background: #f8f9fa;
        }

        .flexslider {
            position: relative;
            height: min(75vh, 500px);
        }

        .slides {
            position: relative;
            height: 100%;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .slides li {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 0.5s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .slides li:first-child {
            opacity: 1;
        }

        .mk-slide3 {
            background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                        url('https://images.unsplash.com/photo-1551836022-deb4988cc6c0?w=1920') center/cover;
        }

        .mk-slide4 {
            background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                        url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?w=1920') center/cover;
        }

        .mk-slide5 {
            background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                        url('https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=1920') center/cover;
        }

        .marketing-text {
            color: white;
            text-align: center;
            padding: 2rem;
            max-width: 800px;
            margin: 0 auto;
        }

        .marketing-title {
            font-size: clamp(1.5rem, 4vw, 3rem);
            font-weight: bold;
            letter-spacing: 2px;
            margin-bottom: 1rem;
            text-shadow: 3px 3px 10px rgba(0,0,0,0.7);
        }

        .marketing-subtitle {
            font-size: clamp(1rem, 2.5vw, 1.25rem);
            margin-bottom: 2rem;
            text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
            line-height: 1.4;
        } 

         .marketing-url {
            display: inline-block;
            padding: 1rem 2rem;
            background: #007bff;
            color: white !important;
            text-decoration: none;
            border-radius: 6px;
            font-weight: 600;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .marketing-url:hover {
            background: #0056b3;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,123,255,0.4);
        }  

        /* Slide Controls */
           .mm-controls {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            display: flex;
            align-items: center;
            justify-content: space-between;
            pointer-events: none;
            z-index: 4;
        }

        .mm-direction-nav {
            background: rgba(255,255,255,0.2);
            border: 2px solid rgba(255,255,255,0.5);
            border-radius: 50%;
            width: 50px;
            height: 50px;
            cursor: pointer;
            margin: 0 1rem;
            pointer-events: all;
            transition: all 0.3s ease;
            opacity: 0.7;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
        }

        .mm-control-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  pointer-events: all;
}

.control-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.control-dot.active,
.control-dot:hover {
  background: #007bff;
}


/* Auto-rotating slides */
.slides li {
  animation: fadeSlide 15s infinite;
}

.slides li:nth-child(1) { animation-delay: 0s; }
.slides li:nth-child(2) { animation-delay: 5s; }
.slides li:nth-child(3) { animation-delay: 10s; }

@keyframes fadeSlide {
  0% { opacity: 0; }
  5% { opacity: 1; }
  30% { opacity: 1; }
  35% { opacity: 0; }
  100% { opacity: 0; }
}

     /* Hero Marketing Slides end */



           /* 3 card Callouts container after hero section */
/* Callouts wrapper */
.callouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Individual callout card   Icon placeholder (FontAwesome inside a circle) */
.callout {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.callout:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.icon-placeholder i {
  font-size: 2rem;
  color: white;
  background: #007bff;
  padding: 20px;
  border-radius: 50%;
  display: inline-block;
  margin-bottom: 1rem;
}


.callout-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #333;
}


.callout .button-primary {
  display: inline-block;
  background: #007bff;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease;
  cursor: pointer;
}

.callout .button-primary:hover {
  background: #0056b3;
}

/* Shared card hover effect */
.callout,
.border-callout {
  border: 2px solid transparent; /* start with no visible border */
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.callout:hover,
.border-callout:hover {
  border-color: #007bff; /* blue border on hover */
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(0,123,255,0.2);
}



/* Responsive tweak for very small screens */
@media (max-width: 768px) {
  .callouts {
    grid-template-columns: 1fr;
    padding: 2rem 1rem;
  }
}

/*end of 3 card layou after hero sention*/


 /* Image Column after 3 card after hero Section */
           .image-column-section {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            padding: 4rem 2rem;
            max-width: 1200px;
            margin: 0 auto;
        } 

         .image-column-text h3 {
            font-size: 2rem;
            font-weight: 600;
            color: #333;
            margin-bottom: 1rem;
        } 

         .image-column-text hr {
            border: none;
            height: 3px;
            background: #007bff;
            width: 60px;
            margin: 1rem 0 2rem 0;
        } 

         .image-column-text p {
            font-size: 1.1rem;
            line-height: 1.6;
            margin-bottom: 2rem;
        } 

         .image-column-section .placeholder-img {
            width: 100%;
            height: 300px;
            background: linear-gradient(45deg, #007bff, #0056b3);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            font-weight: 600;
        }  


  @media (max-width: 768px) {
  .image-column-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    padding: 2rem 1rem;
  }

  .image-column-text h3 {
    font-size: 1.5rem;
    color: #333 !important; /* Fix text visibility */
  }

  .image-column-text p {
    font-size: 1rem;
    color: #555 !important; /* Make body text readable */
  }

  .image-column-text hr {
    margin: 0.5rem auto 1.5rem;
  }
}


.button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  border: none;
}

.button-primary {
  background: #007bff;
  color: #fff;
}

.button-primary:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .image-column-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
    color: white !important;
  }

  .mobile-nav-buttons .d-lg-none {
        display: none !important;
    }
  
  .image-column-section h3 {
    color: white !important;
  }
}

  .image-column-text h3 {
    font-size: 1.5rem;
     color: whit;
      display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
  }

  .image-column-text p {
    font-size: 1rem;
  }

  .image-column-section .placeholder-img {
    height: 200px;
    font-size: 1rem;
  }

/*end afte after 3 card after hero section */

       
        /* Big Image Section, section after hero/card */
             .big-image-section {
            background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), 
                        url('https://images.unsplash.com/photo-1551836022-deb4988cc6c0?w=1920') center/cover;
            background-attachment: fixed;
            color: white;
            text-align: center;
            padding: 6rem 2rem;
            position: relative;
            overflow: hidden;
        }

        .big-image-section h2 {
            font-size: clamp(2rem, 5vw, 3.5rem);
            font-weight: bold;
            margin-bottom: 1rem;
            text-shadow: 3px 3px 10px rgba(0,0,0,0.7);
        }

        .big-image-section hr {
            border: none;
            height: 3px;
            background: white;
            width: 80px;
            margin: 1rem auto 2rem;
        }

        .big-image-section p {
            font-size: 1.2rem;
            max-width: 700px;
            margin: 0 auto 2rem;
            text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
        } 
/*end section after hero/card*/




            /* section before hero */
         
          .callout {
                padding: 1.5rem;
            } 
            
            .callout-image img {
                width: 60px;
                height: 60px;
            } 
             
            .callout-title {
                font-size: 1.25rem;
            }
             
             .icon-callouts {
                grid-template-columns: 1fr;
            }
            
            .border-callout {
                padding: 1.5rem 1rem;
            } 
        



/* Buttons inside border-callouts */
.border-callout span {
    background: #007bff;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
    cursor: pointer;
    display: inline-block;
    margin-top: 1rem;
}

.border-callout span:hover {
    background: #0056b3;
}




    .icon-callouts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}


.border-callout {
    text-align: center;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fff;
}

.border-callout:hover {
    border-color: #007bff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,123,255,0.2);
}

.icon-placeholder i {
    font-size: 2rem;
    color: white;
    background:#007bff;
    padding: 15px;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: 1rem;
}

.button-primary {
    background: #007bff;
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease;
    cursor: pointer;
    display: inline-block;
    margin-top: 1rem;
}

.button-primary:hover {
    background: #0056b3;
}


/*end section before hero*/


        /* Footer */
        
            .footer {
            background: #024791;
            color: whitesmoke;
            padding: 3rem 0 1rem;
        }

        .footer-contact {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            align-items: center;
            padding: 0 2rem 2rem;
            max-width: 1200px;
            margin: 0 auto;
            border-bottom: 1px solid #555;
        }

        .footernav-column {
            display: flex;
            flex-direction: column;
        }

        .footer-logo {
            height: 60px;
            width: auto;
            margin-bottom: 1rem;
            background: white;
            padding: 10px;
            border-radius: 4px;
        } 

         .routing {
            font-size: 1.1rem;
            font-weight: 600;
            color: #ccc;
        }

        .footer-contact-right {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 1rem;
        }

        .footer-contact-link {
            color: #ccc;
            text-decoration: none;
            font-size: 1.1rem;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .footer-contact-link:hover {
            color: whitesmoke;
        }

        .footer-socials {
            display: flex;
            gap: 1rem;
        }

        .social-link {
            color: #ccc;
            font-size: 1.5rem;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .social-link:hover {
            color: #007bff;
        }

        .sec-footernav {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            padding: 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        .footernav-header {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        } 

         .footernav-column hr {
            border: none;
            height: 1px;
            background: #555;
            margin: 1rem 0;
        }

        .footernav-column span {
            color: #ccc;
            text-decoration: none;
            margin-bottom: 0.5rem;
            cursor: pointer;
            transition: color 0.3s ease;
            display: block;
        }

        .footernav-column span:hover {
            color: white;
        }

        .sec-copyright {
            background: #222;
            padding: 2rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 2rem;
        } 

           .legal {
            display: flex;
            gap: 1rem;
            align-items: center;
        }

        .logo-fdic,
        .logo-equal-housing {
            height: 40px;
            width: 60px;
            background: white;
            border-radius: 4px;
            padding: 5px;
        } 

        /*end footer*/


  /* Chat Status Styles */
   /* Modal overlay */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: none; /* hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* Modal box */
.modal-content {
  background: #fff;
  width: 400px;
  max-width: 90%;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Header */
.modal-header {
  background: #007bff;
  color: white;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h2 {
  font-size: 1.2rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-header .close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
}

/* Chat container */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 400px;
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background: #f9f9f9;
}

.message {
  display: flex;
  margin-bottom: 1rem;
}

.agent-message .message-avatar {
  margin-right: 0.5rem;
  font-size: 1.5rem;
  color: #007bff;
}

.message-content {
  background: #fff;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  max-width: 75%;
}

.message-header {
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.message-time {
  font-size: 0.75rem;
  color: #888;
  margin-top: 0.3rem;
}

/* Input area */
.chat-input-container {
  display: flex;
  border-top: 1px solid #ddd;
  padding: 0.5rem;
  background: #fff;
}

.chat-input-container input {
  flex: 1;
  padding: 0.5rem;
  border: none;
  outline: none;
  font-size: 1rem;
}

.chat-send-btn {
  background: #007bff;
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 0.5rem;
}

.chat-send-btn:hover {
  background: #0056b3;
}

/* Floating Chat Button */
.chat-float-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #007bff;
  color: white;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000; /* higher than modal */
  transition: background 0.3s ease;
}

.chat-float-btn:hover {
  background: #0056b3;
}

/*end chat status styles*/


/* Login Generic modal overlay/SignUp */

.login-modal,
.signup-modal {
  display: none; /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

/* Modal box */
.login-form-container,
.signup-form-container {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  position: relative;
  animation: fadeIn 0.3s ease;
}

/* Close button */
.close-login {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Headings */
.login-header h2 {
  margin-bottom: 0.5rem;
  color: #007bff;
}

.login-header p {
  color: #555;
  margin-bottom: 1.5rem;
}

/* Form */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.form-group input {
  width: 100%;
  padding: 0.7rem;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* Buttons */
.login-btn, .signup-btn, .forgot-btn {
  margin-top: 1rem;
  padding: 0.7rem 1.2rem;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.login-btn {
  background: #007bff;
  color: #fff;
}

.login-btn:hover {
  background: #0056b3;
}

.signup-btn, .forgot-btn {
  background: transparent;
  color: #007bff;
}

.signup-btn:hover, .forgot-btn:hover {
  text-decoration: underline;
}

/* Simple fade in */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}


/* End Login Generic modal overlay/SignUp */



/* Forgot Password Modal */

.forgot-modal {
  display: none; /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.forgot-form-container {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  position: relative;
  animation: fadeIn 0.3s ease;
}

/*End Forgot Password Modal */


/* Mobile responsiveness for modals forlogin/signup/forgot */
@media (max-width: 480px) {
  .login-form-container,
  .signup-form-container,
  .forgot-form-container {
    width: 90%;
    padding: 1.5rem;
    border-radius: 8px;
  }

  .login-header h2 {
    font-size: 1.4rem;
  }

  .login-header p {
    font-size: 0.9rem;
  }

  .form-group input {
    padding: 0.6rem;
  }

  .login-btn, .signup-btn, .forgot-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
}


/* end login/signup/forgot modal responsiveness */


/* Loan modal styles */

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 20px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 30px;
}

.close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    opacity: 0.7;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* end Loan modal styles */


/* reset user password General modal overlay */
.reset-modal,
.login-modal,
.signup-modal,
.forgot-modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 1000; /* Sit above everything */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6); /* Semi-transparent black */
  justify-content: center;
  align-items: center;
}


.reset-modal.active,
.login-modal.active,
.signup-modal.active,
.forgot-modal.active {
  display: flex;
}

/* Modal content box */
.reset-modal .forgot-form-container,
.login-modal .login-form-container,
.signup-modal .signup-form-container,
.forgot-modal .forgot-form-container {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease-in-out;
}

/* Simple animation */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
/* end of reset user password */



/* Login Modal Styles  */
          .login-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 2000;
        }

         .login-modal.active {
            display: flex;
        }

        .login-form-container {
            background: white;
            padding: 2.5rem;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            width: 90%;
            max-width: 400px;
            position: relative;
            animation: slideInDown 0.3s ease-out;
        }

        @keyframes slideInDown {
            from {
                transform: translateY(-50px);
                opacity: 0;
            }
            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

            .login-header {
            text-align: center;
            margin-bottom: 2rem;
        }

        .login-header h2 {
            color: #007bff;
            font-size: 1.8rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

          .login-header p {
            color: #666;
            font-size: 0.95rem;
        }

        .close-login {
            position: absolute;
            top: 15px;
            right: 20px;
            background: none;
            border: none;
            font-size: 1.5rem;
            color: #999;
            cursor: pointer;
            transition: color 0.3s ease;
        }

        .close-login:hover {
            color: #333;
        }

        .form-group {
            margin-bottom: 1.5rem;
        }

        .form-group label {
            display: block;
            margin-bottom: 0.5rem;
            color: #333;
            font-weight: 500;
            font-size: 0.95rem;
        }

        .form-group input {
            width: 100%;
            padding: 0.9rem;
            border: 2px solid #e1e5e9;
            border-radius: 6px;
            font-size: 1rem;
            transition: all 0.3s ease;
            background: #fafafa;
        }

        .form-group input:focus {
            outline: none;
            border-color: #007bff;
            background: white;
            box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
        }

           .login-btn {
            width: 100%;
            padding: 0.9rem;
            background: linear-gradient(135deg, #007bff, #0056b3);
            color: white;
            border: none;
            border-radius: 6px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-bottom: 1.5rem;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .login-btn:hover {
            background: linear-gradient(135deg, #0056b3, #004085);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
        }

        .form-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 1.5rem;
        }

        .signup-btn, .forgot-btn {
            background: none;
            border: none;
            color: #007bff;
            font-size: 0.9rem;
            cursor: pointer;
            text-decoration: none;
            transition: all 0.3s ease;
            padding: 0.5rem;
        }

        .signup-btn:hover, .forgot-btn:hover {
            color: #0056b3;
            text-decoration: underline;
        }

        .signup-btn {
            font-weight: 600;
        }

        .forgot-btn {
            font-weight: 400;
        }

         /* Signup Modal Styles  */
           .signup-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 2001;
        }

        .signup-modal.active {
            display: flex;
        }

        .signup-form-container {
            background: white;
            padding: 2.5rem;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            width: 90%;
            max-width: 450px;
            position: relative;
            animation: slideInDown 0.3s ease-out;
            max-height: 90vh;
            overflow-y: auto;
        } 

         /* Forgot Password Modal Styles  */
           .forgot-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.7);
            display: none;
            justify-content: center;
            align-items: center;
            z-index: 2001;
        }

        .forgot-modal.active {
            display: flex;
        }

        .forgot-form-container {
            background: white;
            padding: 2.5rem;
            border-radius: 12px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            width: 90%;
            max-width: 400px;
            position: relative;
            animation: slideInDown 0.3s ease-out;
        } 

         /* Additional responsive fixes  */
               @media (max-width: 768px) { 
                .mm-direction-nav {
                width: 40px;
                height: 40px;
                font-size: 1rem;
            }
            
            .control-dot {
                width: 10px;
                height: 10px;
            }

            .login-form-container,
            .signup-form-container,
            .forgot-form-container {
                padding: 2rem;
                margin: 1rem;
            }

                .form-footer {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            }
        } 
  


        button .spinner {
  border: 2px solid #f3f3f3;
  border-top: 2px solid #555;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg);}
  100% { transform: rotate(360deg);}
}

/* 🔧 Ensure heading text is visible on all devices */
.image-column-text h3 {
  color: #222 !important;
  position: relative;
  z-index: 10;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4); /* helps if background is dark */
}

/* Optional: if something is covering the text */
.image-column-text {
  position: relative;
  z-index: 5;
}

/* Just to be sure background elements stay behind */
.image-column-section .placeholder-img {
  z-index: 1;
  position: relative;
}


.chat-upload-btn {
  background: #fff;
  border: 1px solid #ddd;
  color: #666;
  padding: 10px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 18px;
}

.chat-upload-btn:hover {
  background: #f5f5f5;
  color: #1976d2;
  border-color: #1976d2;
}

.chat-input-container {
  display: flex;
  gap: 8px;
  padding: 15px;
  background: #fff;
  border-top: 1px solid #ddd;
}

#chatInput {
  flex: 1;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
}

.chat-send-btn {
  background: #1976d2;
  border: none;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.chat-send-btn:hover {
  background: #1565c0;
}