/* ====== GLOBAL ====== */


/* ====== HEADER + NAVBAR ====== */


/* ====== HAMBURGER + SIDEBAR ====== */
/* ====== SEARCH BAR ====== */
/* ====== HERO SECTION ====== */
/* ====== CARDS + SERVICES ====== */
/* ====== MODALS ====== */
/* ====== FORMS (Login, Signup, Message) ====== */
/* ====== FOOTER ====== */
/* ====== PROVIDER-PROFILES ====== */

        .profile-container {
            width: 90%;
            max-width: 800px;
            margin: 50px auto;
            padding: 20px;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

/* ====== raw ====== */


.company-image {
    text-align: center;
}

.company-image img {
    max-width: 80%;
    border-radius: 8px;
}

.contact-section {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.contact-section button {
    padding: 10px 20px;
    font-size: 1.5rem;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contact-section button:hover {
    background-color: #0056b3;
}

.signup-container .company-image {
  text-align: center;
}

.signup-container .company-image img {
  max-width: 100%;
  max-height: 300px; /* Optional: limits height */
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
  object-fit: cover;
}


/*this is for the hamburger sidebar */
    
        /* Style for header */
        body {
            margin: 0;
            font-family: Arial, sans-serif;
        }

        header {
            background-color: #00AAFF;
            color:white;
            padding: 5px 5px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
        }

        h1 a {
            color: white;
            text-decoration: none;
            margin: 0;
            font-size: 2.5rem; /* Adjust size as needed */
            font-weight: bold;
        }

        /* Hamburger Icon Styles */
        .hamburger {
            display: none;
            flex-direction: column;
            gap: 5px;
            cursor: pointer;
            z-index: 1002; /* Ensure it's on top */
        }

        .hamburger div {
            width: 30px;
            height: 4px;
            background-color:#333;
            transition: all 0.3s;
        }

        /* Sidebar Styles */
        .sidebar {
            position: fixed;
            top: 0;
            left: -250px; /* Initially hidden */
            width: 250px;
            height: 100%;
            background-color: white;
            transition: left 0.3s ease;
            padding-top: 60px; /* Add some padding to the top */
            z-index: 1001; /* Higher than search bar */
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
        }

        .sidebar a {
            color: #333;
            text-decoration: none;
            font-size: 22px;
            padding: 15px;
            display: block;
            transition: background-color 0.3s ease;
        }

        .sidebar a:hover {
            color: White;
            background-color: #0077cc
            ;
        }

        /* Navigation links in the header (for larger screens) */
        .nav-links {
            display: flex;
            gap: 20px;
        }

        .nav-links a {
            color: white;
            text-decoration: none;
            font-size: 18px;
            padding: 10px;
            border-radius: 5px;
            transition: background-color 0.3s ease;
        }

        .nav-links a:hover {
            color:white;
            background-color: #0B3951;
        }

        /* Styles for smaller screens */
        @media screen and (max-width: 768px) {
            header {
                padding: 15px 15px; /* Reduce padding for a thinner look */
            }
        
            h1 {
                font-size: 1.5rem; /* Decrease font size */
            }
            
            .hamburger div {
                width: 25px; /* Slightly smaller hamburger icon */
                height: 3px;
            }
            
            .hamburger {
                display: flex; /* Show hamburger menu on small screens */
            }

            .nav-links {
                display: none; /* Hide nav links on small screens */
            }

            .sidebar.open {
                left: 0; /* Slide in the sidebar */
            }

            /* Adjust hamburger icon when clicked */
            .hamburger.open div:nth-child(1) {
                transform: rotate(45deg);
                position: relative;
                top: 10px;
            }

            .hamburger.open div:nth-child(2) {
                opacity: 0;
            }

            .hamburger.open div:nth-child(3) {
                transform: rotate(-45deg);
                position: relative;
                top: -10px;
            }
            
            .search-container {
                width: 90%; /* Uses more space on smaller screens */
            }

            .container {
                grid-template-columns: 1fr; /* Stacks the cards on small screens */
            }

            .card {
                height: auto; /* Allow cards to adjust height based on content */
                max-width: 100%;
                position: relative;
            }
        
            .card-content {
                padding: 10px;
                border-radius: 10px;
                position: absolute;
                bottom: 0;

            }
        
            .card h3 {
                font-size: 18px;
            }
        
            .card p {
                font-size: 14px;
            }
        
            .card a {
                font-size: 14px;
            }

            button {
                margin: 5px; 
                  padding: 10px; 
                  border: none; 
                  border-radius: 5px;
                  background: #007BFF; 
                  color: white; 
                  cursor: pointer;
                  font-size: 1.2rem;
              }
              
            button:focus {
                outline: black;
              }
              
              /* When the button is being clicked */
            button:active {
                background: #0056b3; /* darker shade of blue */
                }
           
            .modal-footer {
                display: flex;
                justify-content: space-between;
                align-items: center;
                gap: 10px;
                margin-top: auto;
                flex-wrap: nowrap; /* prevent wrapping */
              }
              
              .modal-footer .navBtn {
                flex: 1 1 auto; /* allow to grow/shrink but stay side-by-side */
                min-width: 0;    /* avoid overflow */
              }
        }

        /* Styles for larger screens */
        @media screen and (min-width: 769px) {
            .hamburger {
                display: none; /* Hide hamburger on larger screens */
            }

            .sidebar {
                display: none; /* Don't display sidebar on larger screens */
            }

            .nav-links {
                display: flex; /* Show nav links on larger screens */
            }

            .search-container {
                width: 60%; /* Adjusts to a reasonable width on desktops */
            }
        }


/* General body and text styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Hero section */
.hero {
    background-color: #f0f0f0;
    padding: 20px 20px;
    text-align: center;
}

.hero h2 {
    font-size: 2rem;
    margin: 0;
}

.hero p {
    font-size: 1.2rem;
    margin-top: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    background-color: #0077cc;
    color: white;
    font-size: 1.1rem;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    margin-top: 30px;
    display: inline-block;
}

.cta-button:hover {
    background-color: #005fa3;
}
/* Search Bar Styles */
.search-container {
    display: flex;
    justify-content:center;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding: 5px;
}

.search-wrapper {
    width: 100%;
    position: relative;
}

.search-bar {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 2px solid #0077cc;
    border-radius: 5px;
    outline: none;
}

.search-bar:focus {
    border-color: #005fa3;
}

.search-btn {
    background-color: #00aaff;
    color: white;
    padding: 12px 30px;
    font-size: 1.1rem;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #0077cc;
}

/* Search Results Styles */

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
   
}

#search-results {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    margin-bottom: 20px;
}

#results-container {
    display: flex;
    flex-direction: column;  /* Ensure items are placed vertically */
    gap: 20px;
    align-items: center;  /* Center the items */
}

.service-card {
    display: flex;
    flex-direction: column;  /* Stack elements vertically inside each card */
    background-color: #fff;
    padding: 20px;
    width: 100%;
    max-width: 600px;  /* Max width of each card */
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 350px; /* Adjust the height to accommodate the photo */
    position: relative; /* To position the button at the bottom */
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.service-card p {
    margin-bottom: 20px;
    flex-grow: 1; /* Makes sure the description takes available space */
}

.service-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
}

.rating {
    font-size: 18px;
    color: #f4b400; /* Yellow color for stars */
}

.contact-btn {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    position: absolute;
    bottom: 20px;  /* Position the button at the bottom of the card */
    text-align: center;  
    
}

.contact-btn:hover {
    background-color: #0056b3;
}



/* Suggestions Dropdown Styles */
.suggestions {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
    background: white;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    position: absolute;
    z-index: 1000;
    text-align: left;
}

.suggestions li {
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.3s;
    color: #000;
}

.suggestions li.active {
background-color: #0077cc;
color: white;
}

.suggestions li:hover {
    background-color: #f0f0f0;
}

/* Services Section */
.services {
    background-color: #f0f0f0;
    padding: 20px 20px;
    text-align: center;
}

.services h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}
.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 200px)); /* fixed column width */
    justify-content: center; /* centers the grid within the container */
    gap: 20px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}

.card {
    background-color: #333; /* Fallback background color */
    border-radius: 10px;
    overflow: hidden;
    height: 300px; /* Fixed height for the card */
    width: 100%; /* Make the card take up the full width of its container */
    display: flex;
    flex-direction: column; /* Stack image and text vertically */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Card image */
.card {
    background-size: cover;
    background-position: center;
    height: 200px; /* Set the image height */
}

.card-content {
    background-color: #fff;
    color: #333;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    position: absolute;
    bottom: 0;
    z-index: 2; /* Make sure content is in front of the image */
}

.card h3 {
    margin: 0;
    font-size: 20px;
    bottom: 0;
}

.card p {
    font-size: 14px;
    margin-bottom: 15px;
}

.card a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    margin-top: 10px;
}

.card a:hover {
    background-color: #0056b3;
}


/* Purpose */
.purposes {
    background-color: #f0f0f0;
    padding: 10px 10px;
    text-align: center;
}

.purposes h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}
.purposes h3 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    text-align: center;
}

.purpose {
    margin: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: inline-block;
    max-width: 90%;
}

.purpose p {
    font-size: 1.2rem;
}

.purpose a {
      color: #00AAFF;
      text-decoration: none;
      font-weight: bold;
    }

/* Testimonials Section */
.testimonials {
    background-color: #f0f0f0;
    padding: 20px 20px;
    text-align: center;
}

.testimonials h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.testimonial {
    margin: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: inline-block;
    max-width: 400px;
}

.testimonial p {
    font-size: 1.2rem;
    color: #777;
}

.testimonial span {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 10px 20px;
    text-align: center;
}

footer a {
    color: #00aaff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


 /* Login Form Section */
 .login-container {
    width: 90%;
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.login-container h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

/* Ensure consistent sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

label {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.login-btn {
    background-color: #00aaff;
    color: white;
    font-size: 1.1rem;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0 auto;
}

.login-btn:hover {
    background-color: #0077cc;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
}

.form-footer a {
    color: #0077cc;
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

.forgot-password {
    text-align: center;
    margin-top: 10px;
}

.forgot-password a {
    color: #0077cc;
}

        /* Sign Up Form Section */
        .signup-container {
            width: 90%;
            max-width: 500px;
            margin: 50px auto;
            margin-top: 10px;
            padding: 20px;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

        .signup-container h2 {
            text-align: center;
            font-size: 2rem;
            margin-bottom: 20px;
        }

        .form-group {
            margin-bottom: 15px;
        }

        .form-group input{
            width: 100%;
            padding: 10px;
            font-size: 1rem;
            border: 2px solid #0077cc;
            border-radius: 5px;
            outline: none;
            height: 50px;
            resize: vertical;
        }
        .form-group textarea {
            width: 100%;
            padding: 10px;
            font-size: 1rem;
            border: 2px solid #0077cc;
            border-radius: 5px;
            outline: none;
            height: 150px;
            resize: vertical;
        }

        label {
            display: block;
            font-size: 1.1rem;
            margin-bottom: 5px;
        }

        input[type="tel"],
        input[type="text"],
        input[type="textarea"],
        input[type="number"],
        input[type="email"],
        input[type="file"],
        input[type="password"],
        select {
            width: 100%;
            padding: 12px;
            font-size: 1.1rem;
            border: 2px solid #0077cc;
            border-radius: 5px;
            margin-top: 5px;
            outline: none;
        }
        input[type="checkbox"] {
            width: 25px;
            height: 25px;
        }

        input[type="tel"]:focus,
        input[type="text"]:focus,
        input[type="textarea"]:focus,
        input[type="number"]:focus,
        input[type="email"]:focus,
        input[type="file"]:focus,
        input[type="password"]:focus {
            border-color: #005fa3;
        }

        .signup-btn {
            background-color: #00aaff;
            color: white;
            font-size: 1.1rem;
            padding: 12px;
            width: 100%;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s ease;
            margin: 0 auto;
        }

        .signup-btn:hover {
            background-color: #0077cc;
        }
        
   
   /*form layout*/
           /* Message Provider Form Section */
        .message-container {
            max-width: 800px;
            margin: 50px auto;
            padding: 20px;
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        }

        .message-container h2 {
            font-size: 2rem;
            margin-bottom: 20px;
            text-align: center;
        }


        .submit-button {
            width: 100%;
            padding: 15px;
            font-size: 1.2rem;
            background-color: #00aaff;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            transition: background-color 0.3s ease;
        }

        .submit-button:hover {
            background-color: #0077cc;
        }

        .back-button {
            margin-top: 20px;
            font-size: 1.1rem;
            text-align: center;
            display: block;
            text-decoration: none;
        }

        .back-button:hover {
            text-decoration: underline;
        }
   
   
   
    .step-buttons { margin: 10px 0; }
    .step-buttons button {
      margin: 5px; 
      padding: 10px; 
      border: none; 
      border-radius: 5px;
      background: #007BFF; 
      color: white; 
      cursor: pointer;
      font-size: 1.2rem;
    }
    .step-buttons button:hover { background: #0056b3; }
    #result { margin-top: 20px; font-weight: bold; }
    
    
    .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 2000; /* Ensure it's on top */
  }
  
  .modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 600px;
    height: 100%;
    position: relative;
  
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Pushes .modal-footer to bottom */

}
  
  button {
    margin: 5px; 
      padding: 10px; 
      border: none; 
      border-radius: 5px;
      background: #007BFF; 
      color: white; 
      cursor: pointer;
      font-size: 1.2rem;
  }
  
    /* When the button is being clicked */
    button:active {
        background: #0056b3; /* darker shade of blue */
        }
  
  #button-container {
    display: flex;
    flex-direction: column; /* Buttons vertically aligned */
    margin-bottom: 20px; /* To provide space for nav buttons */
  }
  
  .modal-footer {
    display: flex;
    justify-content: space-between;
    margin-top: auto;
  }
  
  .navBtn {
    width: 45%; /* To give space between previous, next, and submit buttons */
  }
  
  .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 48px;
    cursor: pointer;
    color: #000;
  }

  #progress-bar-container {
    margin-bottom: 20px;
    width: 90%;
    height: 10px;
    background-color: #f0f0f0; /* Light gray background for the progress container */
  }
  
  #progress-bar {
    height: 10px;
    background-color: #4caf50; /* Green color for the progress bar */
    width: 0%; /* Start with 0% width */
    transition: width 0.5s ease-in-out; /* Smooth transition over 0.5 seconds */
  }
  
  /* admin progress bar*/
  
          .progress-bar {
  display: flex;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 0 0 1px #ccc;
}

.progress-step {
  flex: 1;
  text-align: center;
  padding: 12px 10px;
  font-weight: bold;
  color: #666;
  background-color: #eee;
  border-right: 1px solid white;
}

.progress-step:last-child {
  border-right: none;
}

.progress-step.active {
  background-color: #0B3951;
  color: #fff;
}

.progress-step.completed {
  background-color: #00AAFF;
  color: #fff;
}