/* Two column layout - Full background image variant */
.text-form-section.text-form-bg-image {
  padding: 130px 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background-color: transparent;
}

.text-form__text h1, .text-form__text p, .text-form__text h2, .text-form__text h3 {
  color:#fff!important;
  font-family: Manrope, sans-serif;
}

.text-form__text h1 {
  font-size:30px;
}

.text-form__text p {
  font-size:20px;
}

/* Disable parallax on mobile/touch devices for better performance */
@media (max-width: 1024px), (hover: none) {
  .text-form-section.text-form-bg-image {
    background-attachment: scroll;
  }
}

/* Background video */
.text-form-bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

/* Dark overlay */
.text-form-section.text-form-bg-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

.legal-consent-container .hs-richtext {
  font-size:12px;
  margin:0;
}

.text-form-section.text-form-bg-image .text-form-container {
  position: relative;
  z-index: 2;
}

.text-form-bg-image .form-title{
  background: #0f315d;
}

.text-form-bg-image .legal-consent-container p{
  font-size:12px!important;
}

.text-form-bg-image .text-form-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 20px;
  padding-top:80px;
}

/* Desktop: 50/50 split */
@media (min-width: 1001px) {
  .text-form-bg-image .text-form-container {
    flex-direction: column;
    align-items: flex-start;
    padding-top:120px;
    padding-left:40px;
    padding-right:40px;
  }

  .text-form__text h1 {
    font-size:40px;
  }

  .text-form__text {
    width:60%;
  }

  /* Text column */
  .text-form-bg-image .text-form__text {
    color: #ffffff;
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  /* Date and time display */
  .text-form-bg-image .text-form__datetime {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }

  .text-form-bg-image .text-form__date,
  .text-form-bg-image .text-form__time {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #ffffff;
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: #0f315d;
    padding: 8px 16px;
    border-radius: 50px;
  }

  .text-form-bg-image .text-form__icon {
    flex-shrink: 0;
    color: #ffffff;
    font-size: 16px;
  }

  .text-form-bg-image .text-form__text h1 {
    margin-top: 0;
    margin-bottom: 16px;
    color:#fff;
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(28px, 4vw, 44px);
  }

  .text-form-bg-image .text-form__text p {
    margin-bottom: 16px;
    line-height: 1.6;
    font-size:18px;
  }

  /* Form column */
  .text-form-bg-image .text-form__form, .contact-card {
    width: 100%;
  }

  /* Contact card styling */
  .text-form-bg-image .contact-card {
    color: #ffffff;
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    border-radius: 8px;
  }

  /* Form title */
  .text-form-bg-image .contact-card__title {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  /* Form container */
  .text-form-bg-image .contact-card__form {
    margin: 0;
  }

  /* Override HubSpot form styles */
  .text-form-bg-image .contact-card .hs-form {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
  }

  .text-form-bg-image .contact-card .hs-form-field {
    margin-bottom: 10px;
  }

  .text-form-bg-image .contact-card .hs-form-field label {
    display: none;
  }

  /* Grid layout for form fields */
  .text-form-bg-image .contact-card .hs-form fieldset {
    max-width: 100% !important;
  }

  .text-form-bg-image .contact-card .hs-form .hs-input {
    width: 100% !important;
    padding: 10px 12px !important;
    border: 1px solid #d6d8e0 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    color: #1b2436 !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
  }

  .text-form-bg-image .contact-card .hs-form textarea.hs-input {
    min-height: 100px;
    resize: vertical;
  }

  .text-form-bg-image .contact-card .hs-form .hs-input::placeholder {
    color: #9aa0b5;
  }

  .text-form-bg-image .contact-card .hs-form .hs-input:focus {
    outline: 2px solid #f7e50b !important;
    border-color: #f7e50b !important;
  }

  /* Checkbox styling */
  .text-form-bg-image .contact-card .hs-form .hs-form-booleancheckbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #ffffff;
  }

  .text-form-bg-image .contact-card .hs-form .hs-form-booleancheckbox input[type="checkbox"] {
    width: 14px !important;
    height: 14px !important;
    margin: 0 !important;
  }

  .text-form-bg-image .contact-card .hs-form .hs-form-booleancheckbox a {
    color: #f7e50b;
    text-decoration: underline;
  }

  /* Error messages */
  .text-form-bg-image .contact-card .hs-form .hs-error-msgs {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 4px;
    list-style: none;
    padding: 0;
  }

  /* Required field indicator */
  .text-form-bg-image .contact-card .hs-form .hs-form-required {
    color: #f7e50b;;
  }

  .text-form-bg-image .actions {
    display: flex;
    justify-content: flex-end;
  }

  /* Submit button */
  .text-form-bg-image .contact-card .hs-form input[type="submit"],
  .text-form-bg-image .contact-card .hs-form .hs-button {
    width: auto !important;
    margin-top: 16px !important;
    padding: 10px 22px !important;
    border: none !important;
    border-radius: 0 !important;
    background: #f7e50b !important;
    color: #10213a !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    border:1px solid #f7e50b!important;
  }

  .text-form-bg-image .contact-card .hs-form input[type="submit"]:hover,
  .text-form-bg-image .contact-card .hs-form .hs-button:hover {
    color: #f6f6f8!important;
    background: transparent!important;
    border:1px solid #f7e50b!important;
  }

  .text-form-bg-image .contact-card .hs-form input[type="submit"]:disabled,
  .text-form-bg-image .contact-card .hs-form .hs-button:disabled {
    background: #7f8699 !important;
    color: #e1e4ee !important;
    cursor: not-allowed !important;
  }

  /* Legal consent / GDPR text */
  .text-form-bg-image .contact-card .hs-form .legal-consent-container {
    font-size: 12px;
    color: #c2cadf;
    margin-top: 12px;
  }

  .text-form-bg-image .contact-card .hs-form .legal-consent-container a {
    color: #f7e50b;
  }

  /* reCAPTCHA text */
  .text-form-bg-image .contact-card .hs-form .hs-recaptcha {
    margin-top: 14px;
    font-size: 11px;
    line-height: 1.4;
    color: #c2cadf;
  }

  /* Responsive breakpoints */
  @media (max-width: 1000px) {
    .text-form-bg-image .text-form-container {
      max-width: 720px;
    }
  }

  @media (max-width: 780px) {
    .text-form-bg-image .text-form-container {
      max-width: 540px;
    }

    .text-form-bg-image .contact-card {
      max-width: 100%;
    }
  }

  @media (max-width: 580px) {
    .text-form-section.text-form-bg-image {
      padding: 40px 0;
    }

    .text-form-bg-image .text-form-container {
      padding: 0 1rem;
      padding-top:80px;
    }

    .text-form-bg-image .contact-card {
      padding: 20px;
    }
  }

  @media (min-width: 1200px) {
    .text-form-bg-image .text-form-container {
      padding-left:0;
      padding-right:0;
    }
  }