/* Image Container */
.image-container {
    position: relative; /* To keep the image properly positioned */
    width: 100%; /* Full width */
    margin: 0; /* Remove default margin */
    padding: 0; /* Remove default padding */
    display: flex; /* Enable flexbox */
    justify-content: center; /* Center the image horizontally */
    align-items: center; /* Center the image vertically */
}

/* Full-Width Image Styling */
.banner-image {
    width: 100%; /* Make the image span the full width of the container */
    height: auto; /* Maintain the aspect ratio */
    display: block; /* Remove any extra space below the image */
    margin: 0; /* Ensure it is close to the navbar */
    padding: 0; /* Remove default padding */
    object-fit: contain; /* Ensure the full image is displayed */
    filter: brightness(50%); /* Make the image darker */
}

/* Desktop View */
@media (min-width: 1024px) {
    .image-container {
        height: 100vh; /* Make the container take up the full viewport height */
    }
}

/* Mobile View */
@media (max-width: 768px) {
    .image-container {
        margin: 0; /* Remove any margin */
        padding: 0; /* Remove any padding */
        height: auto; /* Allow the height to adapt to the content */
    }

    .banner-image {
        margin: 0; /* Ensure the image is flush to the navbar */
        padding: 0; /* Remove padding */
    }
}

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* Main Layout */
.main-container {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  background: #fff;
  color: #004e92;;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  gap: 0;
  overflow-x: hidden;
}

/* Left: Contact Details */
.right-section {
  flex: 1.2;
  background: #004e92;;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  min-width: 0;
  padding: 48px 0 48px 0;
}
.right-content {
  width: 100%;
  max-width: 420px;
  text-align: left;
  word-wrap: break-word;
  padding-left: 40px;
}

.right-content h2 {
  font-size: 2.5rem;
  color:  #ffffff;
  font-weight: 700;
  margin-bottom: 40px;
  letter-spacing: 0.5px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 36px;
}

.contact-item i {
  font-size: 2.2rem;
  color:  #ffffff;
  min-width: 34px;
  margin-top: 3px;
}

.contact-item p, .contact-item a {
  color:  #ffffff;
  font-size: 1.23rem;
  margin: 0;
  font-style: italic;
  font-weight: 500;
  word-break: break-word;
}

.contact-item a {
  font-style: normal;
  text-decoration: none;
  font-weight: 700;
}

.contact-item p:not(:first-child) {
  margin-top: 4px;
}

/* Right: Modern, Blue-styled Form */
.form-section {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-width: 0;
  background: #ffffff;
  padding: 48px 0 48px 0;
}

.form-container {
  width: 100%;
  max-width: 500px;
  margin-left: 40px;
  background: none;
  border: none;
  box-shadow: none;
  text-align: left;
  padding-right: 32px;
}

.form-container h2 {
  font-size: 1.5rem;
  color: #004e92;
  font-weight: 500;
  margin-bottom: 18px;
  letter-spacing: 0.6px;
  margin-top: 0;
  font-family: inherit;
}

.form-group {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.form-group label {
  font-size: 1.24rem;
  color: #333333;
  font-weight: 900;
  margin-bottom: 2px;
  display: block;
  letter-spacing: 0.02em;
}

.form-group label .required,
.form-group label.required {
  color: #333333;
  margin-left: 3px;
  font-size: 1.09rem;
  font-weight: 900;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 2px solid #cccccc;
  border-radius: 18px;
  padding: 24px 22px;
  font-size: 1.18rem;
  color: #333333;
  background: #f9f9f9;
  transition: border-color 0.22s, box-shadow 0.22s;
  outline: none;
  font-family: 'Roboto', Arial, sans-serif;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 0;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bda48e;
  font-size: 1.11rem;
  opacity: 1;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #004e92;
  background: #ffffff;
   box-shadow: 0 0 5px rgba(0, 78, 146, 0.5);
}

/* Phone group styling */
.phone-group .phone-wrapper {
  display: flex;
  gap: 8px;
  width: 100%;
}

.phone-group select {
  max-width: 100px;
  min-width: 65px;
  font-size: 1rem;
  padding: 13px 10px;
  border-radius: 12px;
  background: #004e92;
  color: #ffffff;
  border: 2px solid #004e92;
}
.phone-group input[type="tel"] {
  flex: 1;
}

/* Submit Button */
.submit-button {
  background: #004e92;
  color: white;
  border: none;
  border-radius: 18px;
  padding: 20px 0;
  width: 100%;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 2px 10px 0 rgba(39, 79, 191, 0.09);
  transition: background 0.2s, color 0.2s, transform 0.08s;
}

.submit-button:hover, .submit-button:focus {
  background: linear-gradient(to right, #000428, #004e92);
  color: #fff;
  transform: translateY(-2px) scale(1.012);
  outline: none;
}

/* Responsive: stack on mobile, inputs smaller, reduce spacing */
@media (max-width: 1050px) {
  .main-container {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }
  .form-section,
  .right-section {
    width: 100%;
    min-width: 0;
    align-items: stretch;
    justify-content: center;
    padding: 40px 0 0 0;
  }
  .form-container,
  .right-content {
    max-width: 95vw;
    padding: 0 4vw;
    margin: 0;
  }
  .form-container {
    margin-left: 0;
    padding-right: 0;
  }
  .right-content {
    padding-left: 0;
  }
  .right-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
  }
}

@media (max-width: 700px) {
  .main-container {
    flex-direction: column;
    padding: 0;
    gap: 0;
  }
  .form-section,
  .right-section {
    padding: 18px 0 0 0;
    width: 100%;
  }
  .form-container,
  .right-content {
    max-width: 95vw;
    min-width: 0;
    margin: 0 auto;
    padding: 0 3vw;
    box-sizing: border-box;
  }
  .form-container {
    /* limit the width on mobile and center it */
    max-width: 420px;
    margin: 0 auto 24px auto;
    padding: 0 2vw;
  }
  .form-container h2,
  .right-content h2 {
    font-size: 1.18rem;
    margin-bottom: 10px;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 1rem;
    padding: 13px 10px;
    border-radius: 10px;
  }
  .submit-button {
    font-size: 1rem;
    padding: 13px 0;
    border-radius: 10px;
  }
  .contact-item i {
    font-size: 1.2rem;
    min-width: 18px;
  }
}