/* SSK Research v1.8.3: Contact Us. A single JetFormBuilder form for TranslatePress. */
/* All overrides are scoped to this form. They fix the real flex/grid sizing issue, not by clipping overflow. */
.contact-section {
  display: grid;
  grid-template-columns: minmax(235px, .72fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(30px, 5vw, 78px);
}
.contact-section > .wp-block-group:first-child { position: sticky; top: 125px; min-width: 0; }
.contact-section > .wp-block-shortcode,
.contact-section > .ssk-contact-form-shell,
.contact-section > .wp-block-group { min-width: 0; max-width: 100%; }

.ssk-contact-form-shell {
  width: 100%; min-width: 0; max-width: 100%;
  background: var(--warm, #f4f2ee);
  border-top: 4px solid var(--orange, #e26722);
  padding: clamp(24px, 3.7vw, 50px);
  color: var(--navy, #071a31);
  box-shadow: 0 15px 45px rgba(7, 26, 49, .06);
}
.ssk-contact-form-shell *, .ssk-contact-form-shell *::before, .ssk-contact-form-shell *::after { box-sizing: border-box; }

/* JetFormBuilder may render its label and field as two flex columns, even when the
   form was imported with fields_layout=column. Enforce a vertical field layout. */
.ssk-contact-form-shell form.jet-form-builder {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%; min-width: 0; max-width: 100%; gap: 20px;
  align-items: stretch;
}
.ssk-contact-form-shell form.jet-form-builder > *,
.ssk-contact-form-shell .wp-block-group,
.ssk-contact-form-shell .jet-form-builder__conditional,
.ssk-contact-form-shell .jet-form-builder__conditional-content { min-width: 0; max-width: 100%; }
.ssk-contact-form-shell .jet-form-builder-row {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start;
  gap: 8px;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0;
}
.ssk-contact-form-shell .jet-form-builder-row > .jet-form-builder__label,
.ssk-contact-form-shell .jet-form-builder-row > .jet-form-builder__field-wrap,
.ssk-contact-form-shell .jet-form-builder-row > .jet-form-builder__fields-group,
.ssk-contact-form-shell .jet-form-builder-row > .jet-form-builder__field {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  flex: 0 1 auto !important;
  margin: 0 !important;
}
.ssk-contact-form-shell .jet-form-builder__label,
.ssk-contact-form-shell .jet-form-builder__label-text,
.ssk-contact-form-shell label:not(.jet-form-builder__field-label) {
  display: block;
  width: 100%; max-width: 100%; min-width: 0;
  font-size: 13px; line-height: 1.5; font-weight: 700;
  letter-spacing: .015em; color: var(--navy, #071a31);
  margin: 0; overflow-wrap: anywhere; white-space: normal;
}
.ssk-contact-form-shell .jet-form-builder__label-text { margin-bottom: 0; }
.ssk-contact-form-shell .jet-form-builder__field-wrap { width: 100%; max-width: 100%; min-width: 0; }
.ssk-contact-form-shell .jet-form-builder__field:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]),
.ssk-contact-form-shell input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]):not([type="hidden"]),
.ssk-contact-form-shell select,
.ssk-contact-form-shell textarea {
  display: block;
  width: 100% !important; max-width: 100% !important; min-width: 0 !important;
  min-height: 48px; margin: 0;
  border: 1.5px solid #8e9eae; border-radius: 3px;
  background: #fff; color: #081e37; padding: 12px 14px;
  font: 400 15px/1.45 var(--sans, Arial, sans-serif);
  box-shadow: none;
}
.ssk-contact-form-shell textarea { min-height: 136px; resize: vertical; }
.ssk-contact-form-shell :is(input, select, textarea):hover { border-color: #35516f; }
.ssk-contact-form-shell :is(input, select, textarea, button, a):focus-visible {
  outline: 3px solid var(--orange, #e26722) !important;
  outline-offset: 3px !important;
}

/* Radio and checkbox lists are one accessible full-width column, not a second
   horizontal form column. Keep the actual native controls at their normal size. */
.ssk-contact-form-shell .jet-form-builder__fields-group {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: start;
  gap: 10px;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 0; margin: 0; border: 0;
}
.ssk-contact-form-shell .jet-form-builder__field-wrap.checkboxes-wrap,
.ssk-contact-form-shell .jet-form-builder__field-wrap.radio-wrap,
.ssk-contact-form-shell .jet-form-builder__fields-group > .jet-form-builder__field-wrap {
  width: 100% !important; max-width: 100% !important; min-width: 0 !important;
  flex: 0 1 auto !important; margin: 0;
}
.ssk-contact-form-shell .jet-form-builder__field-wrap input[type="radio"],
.ssk-contact-form-shell .jet-form-builder__field-wrap input[type="checkbox"] {
  display: inline-block;
  width: 18px !important; max-width: 18px !important; min-width: 18px !important;
  height: 18px !important; min-height: 18px !important;
  flex: 0 0 18px !important;
  accent-color: #a44511;
  margin: 0 !important; padding: 0 !important; vertical-align: middle;
}
.ssk-contact-form-shell .jet-form-builder__field-label.for-checkbox,
.ssk-contact-form-shell .jet-form-builder__field-label.for-radio {
  display: inline-flex !important;
  align-items: flex-start;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100% !important; max-width: 100% !important; min-width: 0;
  margin: 0 !important;
  font-size: 14px; font-weight: 500; line-height: 1.5;
  color: var(--navy, #071a31); white-space: normal; overflow-wrap: anywhere;
}
.ssk-contact-form-shell .jet-form-builder__field-label :is(span, .jet-form-builder__field-label-text) {
  min-width: 0; white-space: normal; overflow-wrap: anywhere;
}

.ssk-contact-form-shell .ssk-contact-organization-fields,
.ssk-contact-form-shell .ssk-contact-project-fields,
.ssk-contact-form-shell .ssk-contact-personal-fields,
.ssk-contact-form-shell .ssk-contact-audits {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 17px; min-width: 0; width: 100%; margin: 0;
  padding-top: 18px; border-top: 1px solid var(--line, #d9d7d2);
}
.ssk-contact-form-shell .ssk-contact-industry-other,
.ssk-contact-form-shell .ssk-contact-service-other,
.ssk-contact-form-shell .ssk-contact-audit-target { width: 100%; min-width: 0; margin: 0; }
.ssk-contact-form-shell .ssk-contact-audits {
  border: 1px solid #d8d0c5;
  padding: clamp(15px, 2.5vw, 22px);
  background: rgba(255, 255, 255, .73);
}
.ssk-contact-form-shell [hidden] { display: none !important; }
.ssk-contact-form-shell .jet-form-builder__required { color: #a23c0b; }
.ssk-contact-form-shell .jet-form-builder__error,
.ssk-contact-form-shell .jet-form-builder-message--error { color: #902d0d; font-size: 14px; overflow-wrap: anywhere; }
.ssk-contact-form-shell .jet-form-builder-message--success {
  border-left: 4px solid #207344; background: #eaf8ed;
  color: #174a2d; padding: 15px 18px;
}
/* JetFormBuilder may wrap each hidden metadata input in a form row. In the
   one-column CSS grid those zero-height wrappers still consume grid gaps,
   leaving a large blank space before the submit button. Hide only wrappers
   whose descendants contain no visible form controls. The hidden inputs remain
   in the DOM and are still included in the submitted FormData. */
.ssk-contact-form-shell form.jet-form-builder > :has(input[type="hidden"]):not(:has(input:not([type="hidden"]), select, textarea, button)),
.ssk-contact-form-shell form.jet-form-builder > .jet-form-builder-row:has(.ssk-contact-honey) {
  display: none !important;
}
/* Keep the CTA close to the acknowledgement, even when JetFormBuilder adds
   its own default block margins. */
.ssk-contact-form-shell .jet-form-builder .jet-form-builder__submit-wrap,
.ssk-contact-form-shell .jet-form-builder .wp-block-jet-forms-submit-field { width: 100%; min-width: 0; margin: 0; }
.ssk-contact-form-shell .jet-form-builder__submit,
.ssk-contact-form-shell button[type="submit"],
.ssk-contact-form-shell input[type="submit"] {
  display: block; width: 100%; min-height: 55px;
  border: 2px solid #aa490f; background: #b44b11; color: #fff;
  font-weight: 700; font-size: 15px; letter-spacing: .035em;
  padding: 14px 23px; cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}
.ssk-contact-form-shell button[type="submit"]:hover,
.ssk-contact-form-shell input[type="submit"]:hover { background: #8d340a; }
.ssk-contact-form-shell :is(button, input)[type="submit"]:disabled { opacity: .62; cursor: wait; }
.ssk-contact-form-shell .ssk-contact-honey,
.ssk-contact-form-shell .ssk-contact-honey.jet-form-builder-row,
.ssk-contact-form-shell .ssk-contact-honey-row {
  position: absolute !important; inset-inline-start: -10000px !important;
  width: 1px !important; height: 1px !important; overflow: hidden !important;
}
.ssk-contact-privacy-link { font-size: 13px; line-height: 1.6; color: #40546a; margin: 16px 0 0; }
.ssk-contact-privacy-link a { font-weight: 700; color: #81380e; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1050px) {
  .contact-section { grid-template-columns: minmax(0, 1fr); }
  .contact-section > .wp-block-group:first-child { position: static; }
}
@media (max-width: 640px) {
  .ssk-contact-form-shell { padding: 22px 18px; }
  .ssk-contact-form-shell .jet-form-builder__fields-group { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .ssk-contact-form-shell * { transition-duration: .01ms !important; }
}
