/* Gravity Forms — Figma-matched styling */

/* Reset GF defaults */
.bottom-contact .gform_wrapper,
.bottom-contact .gform_body,
.bottom-contact .gform_fields {
  margin: 0;
  padding: 0;
}

.bottom-contact .gform_wrapper {
  width: 100%;
}

.bottom-contact .gform_fields {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
}

/* Field wrapper */
.bottom-contact .gfield {
  padding: 0;
  margin: 0;
  color: #061C2D;
  font-family: Poppins;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px; /* 100% */
  letter-spacing: -0.4px;
}

/* Labels */
.bottom-contact .gfield_label,
.bottom-contact .gform-field-label {
  font-family: var(--sans, "Poppins", sans-serif);
  font-size: 20px!important;
  font-weight: 400;
  color: var(--ink, #061C2D);
  letter-spacing: -0.4px;
  line-height: 20px;
  margin-bottom: 20px!important;
  padding: 0;
}

/* Hide GF required indicator star — keep accessible */
.bottom-contact .gfield_required {
  display: none;
}

/* All text inputs and textareas */
.bottom-contact .gform_wrapper input[type="text"],
.bottom-contact .gform_wrapper input[type="email"],
.bottom-contact .gform_wrapper input[type="tel"],
.bottom-contact .gform_wrapper input[type="url"],
.bottom-contact .gform_wrapper input[type="number"],
.bottom-contact .gform_wrapper textarea,
.bottom-contact .gform_wrapper select {
  font-family: var(--sans, "Poppins", sans-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-muted, #707070);
  background: transparent;
  border: none;
  border-bottom: 1px solid #C7C9CD;
  border-radius: 0;
  /* padding: 20px 20px; */
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}

.bottom-contact .gform_wrapper input:focus,
.bottom-contact .gform_wrapper textarea:focus,
.bottom-contact .gform_wrapper select:focus {
  border-bottom-color: var(--ink, #061C2D);
}

.bottom-contact .gform_wrapper input::placeholder,
.bottom-contact .gform_wrapper textarea::placeholder {
  color: var(--ink-muted, #707070);
  opacity: 1;
}

/* Textarea — Message field */
.bottom-contact .gform_wrapper textarea {
  min-height: 57px;
  resize: vertical;
}

/* Email + Phone row: two columns side by side */
.bottom-contact .gfield--width-half {
  /* width: calc(50% - 5px); */
}

.bottom-contact .gform_fields {
  flex-wrap: wrap;
  gap: 0;
  column-gap: 10px;
}

/* GF 2.5+ uses gridcol classes for half-width fields */
.bottom-contact .gform_wrapper .gfield.gfield--width-half,
.bottom-contact .gform_wrapper .gfield.gf_left_half,
.bottom-contact .gform_wrapper .gfield.gf_right_half {
  /* display: inline-flex; */
  /* flex-direction: column; */
  /* width: calc(50% - 5px); */
  /* flex: 0 0 calc(50% - 5px); */
}

/* Submit button — override GF Orbital theme */
.bottom-contact .gform_wrapper .gform_footer,
.bottom-contact .gform_wrapper .gform-footer,
.bottom-contact .gform_wrapper .gform_page_footer {
  margin: 40px 0 0 !important;
  padding: 0 !important;
}

.bottom-contact .gform_wrapper .gform-footer input[type="submit"],
.bottom-contact .gform_wrapper .gform_footer input[type="submit"],
.bottom-contact .gform_wrapper input.gform_button.button,
.bottom-contact .gform-theme--orbital .gform_button {
  font-family: var(--sans, "Poppins", sans-serif) !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  color: #FFFFFF !important;
  background: #3A3A3A !important;
  border: none !important;
  border-radius: 5px !important;
  padding: 20px 30px !important;
  width: 100% !important;
  cursor: pointer;
  transition: background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  text-align: center;
  line-height: 1;
  box-shadow: none !important;
}

.bottom-contact .gform_wrapper .gform-footer input[type="submit"]:hover,
.bottom-contact .gform_wrapper .gform_footer input[type="submit"]:hover,
.bottom-contact .gform_wrapper input.gform_button.button:hover,
.bottom-contact .gform-theme--orbital .gform_button:hover {
  background: var(--ink, #061C2D) !important;
}

/* Hide GF honeypot, validation, spinner styling */
.bottom-contact .gform_wrapper .gform_validation_errors {
  margin-bottom: 20px;
}

.bottom-contact .gform_wrapper .validation_message {
  font-family: var(--sans, "Poppins", sans-serif);
  font-size: 14px;
  color: #c00;
  margin-top: 4px;
}

/* GF 2.5 CSS grid layout override — force flex for our design */
.bottom-contact .gform_wrapper.gravity-theme .gform_fields {
  display: flex !important;
  grid-template-columns: unset !important;
  flex-wrap: wrap;
  column-gap: 10px;
  row-gap: 0;
}

.bottom-contact .gform_wrapper.gravity-theme .gfield {
  grid-column: unset !important;
}

.bottom-contact .gform_wrapper.gravity-theme .gfield:not(.gfield--width-half):not(.gf_left_half):not(.gf_right_half) {
  width: 100%;
  flex: 0 0 100%;
}

/* Sub-label hiding (GF name fields, complex address, etc.) */
.bottom-contact .gform_wrapper .ginput_complex label,
.bottom-contact .gform_wrapper .gfield_description {
  display: none;
}

/* Confirmation message */
.bottom-contact .gform_confirmation_message {
  font-family: var(--sans, "Poppins", sans-serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink, #061C2D);
  line-height: 1.4;
}

@media (max-width: 620px) {
  .bottom-contact .gform_wrapper .gfield.gfield--width-half,
  .bottom-contact .gform_wrapper .gfield.gf_left_half,
  .bottom-contact .gform_wrapper .gfield.gf_right_half {
    width: 100%;
    flex: 0 0 100%;
  }

  .bottom-contact .gfield_label,
  .bottom-contact .gform-field-label {
    font-size: 16px;
  }

  .bottom-contact .gform_wrapper input[type="text"],
  .bottom-contact .gform_wrapper input[type="email"],
  .bottom-contact .gform_wrapper input[type="tel"],
  .bottom-contact .gform_wrapper textarea {
    font-size: 16px;
    padding: 16px 12px;
  }

  .bottom-contact .gform_wrapper input[type="submit"],
  .bottom-contact .gform_wrapper .gform_button {
    font-size: 16px;
    padding: 16px 20px;
  }
}
