/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* Header Section */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #007bff;
    color: white;
}

header .header-left h1 {
    font-size: 36px;
}

header .header-center {
    display: flex;
    gap: 20px;
}

header .header-center a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

header .header-center a:hover {
    text-decoration: underline;
}

header .header-right a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    margin-left: 20px;
}

header .header-right a:hover {
    text-decoration: underline;
}

/* Search Section */
.search-section {
    text-align: center;
    padding: 40px;
    background-color: #ffffff;
}

.search-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.search-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap; /* Ensures everything stays on one line */
    max-width: 900px;
    margin: 0 auto;
}

.search-form input[type="text"] {
    padding: 10px;
    font-size: 16px;
    width: 250px; /* Smaller width */
    border: 1px solid #ddd;
    border-radius: 5px;
}


.search-form .search-button {
    padding: 10px 25px;
    font-size: 16px;
    white-space: nowrap;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.search-form .search-button:hover {
    background-color: #0056b3;
}

/* Image Section */
.image-section {
    text-align: center;
    margin: 40px 0;
}

.image-section img {
    width: 100%;
    max-width: 1200px;
    height: auto;
}

/* Welcome Section */
.welcome-section {
    text-align: center;
    padding: 30px;
    background-color: #f4f4f4;
}

.welcome-section h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

.welcome-section p {
    font-size: 18px;
    margin-bottom: 30px;
}

/* Call-to-Action Button */
.cta-section {
    text-align: center;
    margin-bottom: 40px;
}

.cta-button {
    padding: 15px 30px;
    font-size: 20px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.cta-button:hover {
    background-color: #0056b3;
}

/* Footer Section */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
}
/* Form Section */
.form-section {
    width: 100%;
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.form-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
}

.cta-button {
    padding: 12px 30px;
    font-size: 18px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    width: 100%;
}

.cta-button:hover {
    background-color: #0056b3;
}

p {
    margin-top: 20px;
    font-size: 16px;
}

p a {
    color: #007bff;
    text-decoration: none;
}

p a:hover {
    text-decoration: underline;
}
/* Flash message styling (centered with solid red box for error and green for success) */
ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

ul li {
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    width: 100%;
}

/* Centering the error message */
ul li.danger {
    background-color: #dc3545;  /* Solid red background for error */
    color: white;               /* White text */
    font-size: 0.875rem;        /* Smaller font size for the error message */
    padding: 10px;
    margin-top: 5px;            /* Space between input and the error box */
    text-align: center;         /* Center the text */
    width: auto;                /* Ensure it fits under the input */
    max-width: 300px;           /* Limit the width of the error box */
    margin-left: auto;          /* Center it horizontally */
    margin-right: auto;         /* Center it horizontally */
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Optional shadow for better visibility */
}

/* Success messages */
ul li.success {
    background-color: #28a745; /* Solid green background for success */
    color: white;
    font-size: 0.875rem;        /* Smaller font size */
    padding: 10px;
    margin-top: 5px;
    text-align: center;
    width: auto;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1); /* Optional shadow */
}
.cta-button {
    padding: 12px 30px;
    font-size: 18px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    width: 100%;
    margin-bottom: 10px; /* Tiny gap between buttons */
}

.cta-button:hover {
    background-color: #0056b3;
}
/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* Header Section */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: #007bff;
    color: white;
}

header .header-left h1 {
    font-size: 36px;
}

header .header-center {
    display: flex;
    gap: 20px;
}

header .header-center a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

header .header-center a:hover {
    text-decoration: underline;
}

header .header-right a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    margin-left: 20px;
}

header .header-right a:hover {
    text-decoration: underline;
}

/* Form Section */
.form-section {
    width: 100%;
    max-width: 800px;
    margin: 50px auto;
    padding: 30px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.form-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

/* Form Inputs and Labels */
.form-group {
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
}

label {
    display: block;
    font-size: 16px;
    margin-bottom: 5px;
}



textarea {
    resize: vertical;
}

/* Buttons */
.cta-button {
    background-color: #007bff;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    margin-top: 20px;
}

.cta-button:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #f1f1f1;
    margin-top: 30px;
}

/* Hide the form pages */
.form-page {
    display: none;
}

/* Show the first page */
#page1 {
    display: block;
}
/* Make sure the search-section has no big bottom margin */
.search-section {
  padding-bottom: 10px; /* small padding */
  margin-bottom: 0;
}

/* Remove margin from image container */
.search-section .image-section {
  margin-top: 10px; /* small gap */
  text-align: center;
  padding: 0;
}

/* Set image size explicitly */
.search-section .image-section img {
  width: 400px;      /* fixed width, smaller size */
  max-width: 90vw;   /* responsive max-width for small screens */
  height: auto;
  border-radius: 12px;
  display: inline-block;
  margin: 0 auto;
}
/* Mobile Styles */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .header-left, .header-center, .header-right {
    margin: 5px 0;
  }

  .search-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .search-form input,
  .search-button {
    width: 100%;
  }

  .image-section img {
    width: 100%;
    height: auto;
  }

  .welcome-section, .cta-section {
    text-align: center;
    padding: 0 10px;
  }

  .cta-button {
    width: 100%;
    display: block;
    text-align: center;
  }
}


