/* --- Main Wrapper & Container --- */
.accel-form-wrapper {
  padding: 80px 20px;
}

.accel-form-container {
  max-width: 1000px; /* Adjust max width of the entire section */
  margin: 0 auto;
  display: flex;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1); /* Gentle shadow for the combined card */
  border-radius: 8px; /* Rounded corners for the combined card */
  overflow: hidden; /* Ensures image and form don't spill */
}

/* --- Left (Form) Column --- */
.accel-form-left {
  flex: 1; /* Takes up available space */
  min-width: 350px; /* Ensures form has enough room */
  padding: 40px;
  box-sizing: border-box;
  color: #ffffff; /* Default text color for the form side */
}

.accel-form-title {
  font-size: 28px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 30px;
  line-height: 1.2;
}

/* --- Right (Image) Column --- */
.accel-form-right {
  flex: 1; /* Takes up available space */
  position: relative;
  display: flex; /* Helps align image within its container */
  align-items: flex-end; /* Aligns the image to the bottom-right corner */
}

.accel-form-image-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.accel-form-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers the space */
  object-position: top; /* Positions the image visually from the top */
  display: block;
}

.accel-form-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35%; /* Adjust this to control the height of the orange overlay */
  mix-blend-mode: multiply; /* Blends with the image */
  opacity: 0.8; /* Adjust for intensity */
}

/* --- HubSpot Form Styling (Crucial for appearance) --- */

/* Wrapper around the whole form */
.accel-form-left .hs-form {
  padding: 0;
}

/* Form fields (input, textarea, select) */
.accel-form-left .hs-input,
.accel-form-left .hs-select {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px; /* Space between fields */
  background-color: transparent; /* Transparent background */
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Subtle white border-bottom */
  color: #ffffff; /* White text for input */
  font-size: 16px;
  border-radius: 0; /* No border-radius */
  box-shadow: none; /* No default shadow */
  transition: border-bottom-color 0.3s ease;
}

.accel-form-left .hs-input:focus,
.accel-form-left .hs-select:focus {
  border-bottom-color: #ffffff; /* White border on focus */
  outline: none;
}

/* Placeholder text color */
.accel-form-left .hs-input::placeholder {
  color: rgba(255, 255, 255, 0.5); /* Lighter white for placeholders */
}

/* Labels (if visible) */
.accel-form-left label {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  margin-bottom: 5px;
}

/* Field group wrapper (each field and its label) */
.accel-form-left .hs-fieldtype-text,
.accel-form-left .hs-fieldtype-email,
.accel-form-left .hs-fieldtype-phone,
.accel-form-left .hs-fieldtype-checkbox {
  margin-bottom: 20px; /* Adjust spacing as needed */
}

/* Checkbox specific styling */
.accel-form-left .hs-fieldtype-checkbox legend {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.4;
}
.accel-form-left .hs-fieldtype-checkbox ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.accel-form-left .hs-fieldtype-checkbox li {
  display: flex;
  align-items: flex-start; /* Align checkbox to top of text */
  margin-bottom: 10px;
}
.accel-form-left .hs-fieldtype-checkbox input[type="checkbox"] {
  flex-shrink: 0; /* Don't let checkbox shrink */
  width: 20px;
  height: 20px;
  margin-right: 10px;
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  appearance: none; /* Remove default browser styling */
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
  top: 2px; /* Adjust vertical alignment if needed */
}
/* Style for checked checkbox */
.accel-form-left .hs-fieldtype-checkbox input[type="checkbox"]:checked {
  background-color: #ffffff; /* White background when checked */
  border-color: #ffffff;
}
/* Custom checkmark (you might need an SVG background-image for a true checkmark) */
.accel-form-left .hs-fieldtype-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 12px;
  border: solid #1A103D; /* Dark blue checkmark */
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

.accel-form-left .hsfc-PostSubmit .hsfc-RichText{
  color:#fff!important;
}

.accel-form-left .hs-fieldtype-checkbox label {
  color: #ffffff;
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 0;
}

.accel-form-left .hsfc-Step .hsfc-Step__Content{
  padding-left:0px!important;
}

/* Submit button styling */



.accel-form-left .hs-button.primary {
  display: inline-block;
  width: auto; /* Allow button to size to content */
  padding: 14px 28px;
  margin-top: 30px;
  background-color: #F3836F /* Fallback to a default if not set */
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: filter 0.3s ease;
}

.accel-form-left .hs-button.primary:hover {
  filter: brightness(90%);
}

.accel-form-left .hsfc-Button{
    background-color: #F3836F !important;
  color: #ffffff;
}

.accel-form-left .hsfc-NavigationRow__Buttons:has(>*:only-child){
   justify-content:start!important;
}

.accel-form-left label{
  color:#fff!important;
}

/* Error messages */
.accel-form-left .hs-error-msgs {
  color: #ff4a55; /* Red error text */
  font-size: 14px;
  margin-top: -15px;
  margin-bottom: 15px;
}
.accel-form-left .hs-error-msgs label {
  color: #ff4a55;
  font-size: 14px;
}


/* --- Mobile Responsive --- */
@media (max-width: 768px) {
  .accel-form-container {
    flex-direction: column;
    max-width: 500px; /* Constrain width on mobile if desired */
  }
  
  .accel-form-left {
    padding: 30px;
  }

  .accel-form-title {
    font-size: 24px;
    margin-bottom: 20px;
  }
  
  .accel-form-right {
    height: 250px; /* Give the image a fixed height on mobile */
  }
  
  .accel-form-image-overlay {
    height: 40%; /* Adjust overlay height on mobile */
  }
  .accel-form-image{
    object-position: center;
    max-height: 350px;
  }
}