/**
 * Gravity Forms — Dragster styling.
 *
 * Matches the design's form look (see page-job-listing.css .job-field):
 * label above, underline-only inputs on a transparent background, grey
 * placeholders, blue focus, and a dark pill submit button that turns blue
 * on hover. Targets the GF wrapper so it works for any embedded form.
 */

/* Layout: GF's own grid handles half-width fields (set per field in the editor).
   Comfortable vertical rhythm between fields. */

   

   
.gform_body{
  font-family: var(--font);
}

.gform_wrapper .gform_fields {
  row-gap: 24px;
  column-gap: 20px;
}

.form-drawer__title{
  font-size: var(--title-md);
}
/* Labels (GF 2.5+ renders both .gfield_label and .gform-field-label) */
.gform_wrapper .gform-field-label {
  font-family: inherit;
  font-size: var(--body-lg);
  line-height: var(--body-lg-lh);
  letter-spacing: -0.01em;
  font-weight: 400;
  color: var(--text-title);
  margin-bottom: 12px;
}

.gform-theme--framework .gfield--type-text, .gfield--type-email, .gfield {
    --gf-ctrl-label-font-size-primary: var(--body-lg);
    --gf-ctrl-label-line-height-primary: var(--body-lg-lh);
    --gf-ctrl-label-letter-spacing-primary: var(--body-lg-ls);
    --gf-ctrl-label-color-primary: var(--text-title);

    --gf-ctrl-label-font-weight-primary: 400;

    }


/* Required indicator: hidden by default; shown only on a field that fails
   validation after a submit attempt (GF adds .gfield_error to that field then).
   The input keeps its aria-required, so screen readers still announce required
   fields regardless. */
.gform_wrapper .gfield_required { display: none !important; }
.gform_wrapper .gfield_error .gfield_required {
  display: inline-block !important;
  color: var(--dragster-blue);
  margin-left: 2px;
}

/* Inputs + textarea — underline style on transparent background */
.gform_wrapper .ginput_container input[type="text"],
.gform_wrapper .ginput_container input[type="email"],
.gform_wrapper .ginput_container input[type="tel"],
.gform_wrapper .ginput_container input[type="url"],
.gform_wrapper .ginput_container input[type="number"],
.gform_wrapper .ginput_container textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--text-title);
  border-radius: 0;
  background: transparent;
  padding: 8px 0;
  font-family: inherit;
  font-size: var(--body-sm);
  line-height: var(--body-sm-lh);
  color: var(--text-body);
  box-shadow: none;
}
.gform_wrapper .ginput_container textarea { min-height: 96px; resize: vertical; }
.gform_wrapper .ginput_container input::placeholder,
.gform_wrapper .ginput_container textarea::placeholder { color: var(--text-body); opacity: 1; }
.gform_wrapper .ginput_container input:focus,
.gform_wrapper .ginput_container textarea:focus {
  outline: none;
  border-bottom-color: var(--dragster-blue);
  box-shadow: none;
}

/* Footer: right-align the button */
.gform_wrapper .gform_footer,
.gform_wrapper .gform-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  padding: 0;
}

/* ── Submit button = the theme's .btn--dark, exactly ──────────────────────────
   dragster_gform_submit_button() (functions.php) outputs the full .btn--dark
   markup: a 34px circle holding a dot that swaps to an arrow on hover, a label
   that slides right, and a blue hover fill. Gravity Forms' Orbital theme
   framework loads AFTER the theme CSS and both RESETS the inner spans and
   REPAINTS the button with high-specificity !important rules (0.75rem/1.31rem
   padding, 38px height, centered), so every property the component needs is
   re-asserted here. Selectors carry 4 classes (…_footer .gform_button.btn--dark
   and …gform_button.btn--dark .btn__*) to out-specify Orbital, plus !important
   on the props it keeps forcing. Keep in sync with components/btn.css. */
.gform_wrapper .gform_footer .gform_button.btn--dark,
.gform_wrapper .gform-footer .gform_button.btn--dark {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  width: auto !important;
  height: 46px !important;
  padding: 12px 24px 12px 8px !important;
  border: none !important;
  border-radius: 100px !important;
  background: var(--btn-dark) !important;
  color: #fff !important;
  box-shadow: none !important;
  overflow: hidden !important;
  font-family: var(--font) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  transition: background 0.3s ease-out !important;
  cursor: pointer;
}
.gform_wrapper .gform_footer .gform_button.btn--dark:hover,
.gform_wrapper .gform-footer .gform_button.btn--dark:hover {
  background: var(--dragster-blue) !important;
}

/* Circle (34px) + dot + arrow — GF resets these spans, so re-assert them */
.gform_wrapper .gform_button.btn--dark .btn__circle {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  flex-shrink: 0 !important;
  transition: background 0.3s ease-out !important;
}
.gform_wrapper .gform_button.btn--dark:hover .btn__circle { background: #fff !important; }

.gform_wrapper .gform_button.btn--dark .btn__dot-icon {
  display: flex !important;
  width: 8px !important;
  height: 8px !important;
  opacity: 1;
  transition: opacity 0.2s ease-out;
}
.gform_wrapper .gform_button.btn--dark:hover .btn__dot-icon { opacity: 0; }

.gform_wrapper .gform_button.btn--dark .btn__arrow-icon {
  position: absolute !important;
  opacity: 0;
  transform: scale(0.8);
  color: #1C1B1F !important;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.gform_wrapper .gform_button.btn--dark:hover .btn__arrow-icon {
  opacity: 1 !important;
  transform: scale(1);
}

.gform_wrapper .gform_button.btn--dark .btn__label {
  line-height: 1;
  transition: transform 0.3s ease-out;
}
.gform_wrapper .gform_button.btn--dark:hover .btn__label { transform: translateX(8px); }

/* Validation messages */
.gform_wrapper .gfield_validation_message,
.gform_wrapper .validation_message { color: var(--dragster-blue); font-size: var(--body-sm); }

/* Mobile: stack everything, full-width button */
@media (max-width: 767px) {
  .gform_wrapper .gform_fields { display: flex; flex-direction: column; }
  .gform_wrapper .gform_footer,
  .gform_wrapper .gform-footer { justify-content: stretch; }
  .gform_wrapper .gform_button { width: 100%; justify-content: center; }
}

/* ── Slide-in contact panel (drawer from the right) ──────────────────────── */
.form-drawer__overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 27, 31, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1000;
}
.form-drawer__overlay.is-open { opacity: 1; visibility: visible; }
.form-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(640px, 94vw);
  background: var(--bg-primary, #f0f1fa);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  overflow-y: auto;
  visibility: hidden;
}
.form-drawer.is-open { transform: translateX(0); visibility: visible; }
.form-drawer__inner { padding: 80px 50px 60px; }
.form-drawer__close {
  position: absolute;
  top: 28px;
  right: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--body-sm);
  color: var(--text-title);
}

.form-drawer__close span {
  font-size: var(--body-md);
}

.form-drawer__close:hover { color: var(--dragster-blue); }
.form-drawer__title {
  margin: 0 0 40px;
  font-size: var(--title-md);
  line-height: var(--title-md-lh);
  letter-spacing: -0.02em;
  color: var(--text-title);
}
@media (max-width: 767px) {
  .form-drawer { width: 100vw; }
  .form-drawer__inner { padding: 64px 24px 40px; }
  .form-drawer__close { right: 24px; top: 20px; }
  .form-drawer__title { font-size: var(--title-sm, 40px); line-height: var(--title-sm-lh, 50px); }
}
