.form-wrapper {
  position: relative;
  overflow: hidden;           /* contain the bg within the wrapper */
  background-color: transparent;  /* fallback behind the image */
  padding: 0 20px;         /* space around your form, adjust if needed */
}

/* absolutely fill the entire wrapper with the graphic */
.form-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;       /* clicks go through */
  z-index: 0;
}
.form-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.2;               /* tweak opacity as desired */
}

/* ensure your real content sits on top */
.form-content {
  position: relative;
  z-index: 1;
}
/* ───────────────────────────────────────────────────────────────────────────── */


/* Scoped Custom Forms Styles */
#customForms {
  background-color: transparent;
  color: #333;
  padding: 60px 20px;
  text-align: center;
  
}

#customForms p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Container for Forms */
#customForms .container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}

/* Form Containers */
#customForms .form-container {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
  min-width: 380px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

#customForms .form-container:hover {
  transform: translateY(-2px);
  box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.15);
}

/* Form Headings */
#customForms .form-container h1 {
  text-align: center;
  color: #333;
  margin-bottom: 20px;

}

#customForms h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: normal;
  text-align: center;
  color: #333;
}


/* Labels */
#customForms .form-container label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #002147;
  font-size: 1rem;
}

/* Input Fields, Selects, and Textarea */
#customForms .form-container input,
#customForms .form-container select,
#customForms .form-container textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  background: #fff;
  color: #333;
}

/* Focus States for Inputs, Selects, and Textarea */
#customForms .form-container input:focus,
#customForms .form-container select:focus,
#customForms .form-container textarea:focus {
  border-color: #ccc;
  box-shadow: none;
  outline: none;
}

/* Textarea specific styles */
#customForms .form-container textarea {
  resize: vertical;
  min-height: 120px;
}

/* Buttons */
#customForms .form-container button {
  display: block;
  background: #002147;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  margin: 0 auto;
  margin-top: 10px;
  margin-bottom: 10px;
}

#customForms .form-container button:hover {
  background: #001f3f;
}

/* Loading and Submitting Overlays */
#loading,
#submitting {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  color: #333;
  padding: 15px 25px;
  border: 1px solid #ccc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  font-size: 1.2rem;
  font-weight: 600;
  z-index: 1000;
}

#loading {
  display: none;
}
#submitting {
  display: none;
}

/* Spinner */
.spinner {
  width: 30px;
  height: 30px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Design */
@media (max-width: 900px) {
  #customForms .container {
    flex-direction: column;
    align-items: center;
  }
  #customForms .form-container {
    width: 90%;
  }
}

/* Disabled State */
.form-container.disabled {
  pointer-events: none;
  opacity: 0.6;
}

/* Suggestions */
.suggestions-container {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  max-height: 200px;
  overflow-y: auto;
  width: calc(100% - 2px);
  z-index: 999;
  display: none;
}

.suggestion-item {
  padding: 8px 12px;
  cursor: pointer;
}

.suggestion-item:hover {
  background-color: #f0f0f0;
}


/* Overall flex container (unchanged) */
#customForms .form-wrapper {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: flex-start !important;
  width: 100% !important;
  gap: 20px !important;
  margin-top: 30px !important;
}

/* Left image container: larger, repositioned farther from the form */
#customForms .form-image.left {
  flex: 0 0 450px !important;      /* Increased width */
  max-width: 450px !important;
  margin-top: 30px !important;      /* Vertical alignment remains */
  margin-left: -40px !important;    /* Moved farther to the left */
  position: relative !important;    /* Necessary for overlay positioning */
}

/* Right image container: larger, repositioned farther from the form */
#customForms .form-image.right {
  flex: 0 0 450px !important;      /* Increased width */
  max-width: 450px !important;
  margin-top: 400px !important;      /* Positioned lower than left */
  margin-right: -40px !important;   /* Moved farther to the right */
  position: relative !important;    /* Necessary for overlay positioning */
}

/* Image styling: fill container with a shadow */
#customForms .form-image img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4) !important;
}

/* White overlay on top of each image */
#customForms .form-image.left::before,
#customForms .form-image.right::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2); /* White overlay with 20% opacity */
  pointer-events: none;
}

/* The form container remains in the center */
#customForms .form-container {
  flex: 1 !important;
  max-width: 600px !important;
  margin: 0 20px !important;
}

/* Responsive: Hide the images when the screen is under 1000px */
@media (max-width: 1000px) {
  #customForms .form-image {
      display: none !important;
  }
}

