/* Homepage inspection form in the hero (Gold Key's notes, 2026-10-16; on the current site every lead came
   through the hero form). Desktop: the headline on the left, the form card on the right. Below 1000px the
   form follows the headline and buttons; on phones the photo is shorter so both fit the first screen. */

body #gk-wp-root .gk-hero--form .gk-hero__stage {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
  gap: clamp(32px, 4.5vw, 80px);
  align-items: center;
}
body #gk-wp-root .gk-hero--form .gk-hero__content { max-width: none; }
body #gk-wp-root .gk-hero--form #gk-hero-title { font-size: clamp(2rem, .7rem + 3vw, 3.35rem) !important; }

/* The card: a black header band over a white form, softly rounded, with a yellow focus ring. */
body #gk-wp-root .gk-hero__form {
  --gkf-pad: clamp(22px, 2.2vw, 30px);
  --gkf-line: #d4dae0;
  --gkf-fill: #f5f6f8;
  grid-column: auto;
  position: relative;
  display: grid;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 18px !important;
  background: var(--gk-white) !important;
  color: var(--gk-black) !important;
  box-shadow: 0 40px 80px -32px rgb(0 0 0 / .75), 0 0 0 1px rgb(255 255 255 / .08);
  scroll-margin-top: calc(var(--gkr-header-h, 88px) + 16px);
}
body #gk-wp-root .gk-hero__form .gkr-native-form { display: grid; gap: 0; }

/* Header band */
body #gk-wp-root .gk-hero__form .gk-h3 {
  position: relative;
  margin: 0 !important;
  padding: calc(var(--gkf-pad) + 6px) var(--gkf-pad) 8px;
  background: var(--gk-black) !important;
  color: var(--gk-white) !important;
  font-size: clamp(1.25rem, 1rem + .6vw, 1.55rem) !important;
  line-height: 1.08 !important;
}
body #gk-wp-root .gk-hero__form .gk-h3::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--gk-yellow);
}
body #gk-wp-root .gk-hero__form .gk-form__note {
  margin: 0 !important;
  padding: 0 var(--gkf-pad) calc(var(--gkf-pad) - 4px);
  background: var(--gk-black) !important;
  color: var(--gk-stone-300) !important;
  font-size: .875rem !important;
  line-height: 1.5 !important;
}

/* Fields */
body #gk-wp-root .gk-hero__form .gform_wrapper { padding: calc(var(--gkf-pad) - 2px) var(--gkf-pad) 0; }
body #gk-wp-root .gk-hero__form .gkr-native-form .gform_fields { gap: 16px 12px; }
body #gk-wp-root .gk-hero__form .gkr-native-form .gfield_label {
  margin: 0 0 6px !important;
  font-size: .8125rem !important;
  font-weight: 700 !important;
  letter-spacing: .02em;
  color: var(--gk-black-800) !important;
}
body #gk-wp-root .gk-hero__form .gkr-native-form .gfield_required { color: var(--gk-gold-700) !important; margin-left: 2px; }
body #gk-wp-root .gk-hero__form .gkr-native-form .ginput_container input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]) {
  height: 50px !important;
  min-height: 50px !important;
  padding: 12px 14px !important;
  border: 1.5px solid var(--gkf-line) !important;
  border-radius: 10px !important;
  background: var(--gkf-fill) !important;
  color: var(--gk-black) !important;
  font-size: 1rem !important;
  box-shadow: none !important;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
body #gk-wp-root .gk-hero__form .gkr-native-form .ginput_container input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):hover { border-color: #adb6bf !important; }
body #gk-wp-root .gk-hero__form .gkr-native-form .ginput_container input:not([type="radio"]):not([type="checkbox"]):not([type="hidden"]):focus {
  outline: none !important;
  border-color: var(--gk-black) !important;
  background: var(--gk-white) !important;
  box-shadow: 0 0 0 4px rgb(227 232 41 / .65) !important;
}
body #gk-wp-root .gk-hero__form .gkr-native-form .gfield_error input { border-color: var(--gk-error) !important; }

/* Property type: a two option toggle with icons */
body #gk-wp-root .gk-hero__form .gkr-native-form .gfield_radio { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; }
body #gk-wp-root .gk-hero__form .gkr-native-form .gchoice { position: relative; margin: 0 !important; min-height: 0; }
/* The toggle label carries keyboard focus; omit the inherited pill-shaped outline. */
body #gk-wp-root .gk-hero__form .gkr-native-form .gchoice:focus-within { outline: none; }
body #gk-wp-root .gk-hero__form .gkr-native-form .gchoice input {
  position: absolute !important;
  opacity: 0;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
}
body #gk-wp-root .gk-hero__form .gkr-native-form .gchoice label {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: none !important;
  min-height: 50px;
  margin: 0 !important;
  padding: 10px 12px !important;
  border: 1.5px solid var(--gkf-line) !important;
  border-radius: 10px !important;
  background: var(--gkf-fill) !important;
  color: var(--gk-black) !important;
  font-size: .9375rem !important;
  font-weight: 700 !important;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
body #gk-wp-root .gk-hero__form .gkr-native-form .gchoice label::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--gkf-icon) center / contain no-repeat;
  mask: var(--gkf-icon) center / contain no-repeat;
}
/* Tabler icons (MIT): home and building */
body #gk-wp-root .gk-hero__form .gkr-native-form .gchoice_1_6_0 { --gkf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l-2 0l9 -9l9 9l-2 0'/%3E%3Cpath d='M5 12v7a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-7'/%3E%3Cpath d='M9 21v-6a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v6'/%3E%3C/svg%3E"); }
body #gk-wp-root .gk-hero__form .gkr-native-form .gchoice_1_6_1 { --gkf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21l18 0'/%3E%3Cpath d='M9 8l1 0'/%3E%3Cpath d='M9 12l1 0'/%3E%3Cpath d='M9 16l1 0'/%3E%3Cpath d='M14 8l1 0'/%3E%3Cpath d='M14 12l1 0'/%3E%3Cpath d='M14 16l1 0'/%3E%3Cpath d='M5 21v-16a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v16'/%3E%3C/svg%3E"); }
body #gk-wp-root .gk-hero__form .gkr-native-form .gchoice label:hover { border-color: #adb6bf !important; }
body #gk-wp-root .gk-hero__form .gkr-native-form .gchoice:has(input:checked) label {
  background: var(--gk-black) !important;
  border-color: var(--gk-black) !important;
  color: var(--gk-yellow) !important;
}
body #gk-wp-root .gk-hero__form .gkr-native-form .gchoice:has(input:focus-visible) label {
  border-color: var(--gk-black) !important;
  box-shadow: 0 0 0 4px rgb(227 232 41 / .65);
}

/* Button */
body #gk-wp-root .gk-hero__form .gkr-native-form .gform_footer { margin: 22px 0 0 !important; padding: 0 !important; }
body #gk-wp-root .gk-hero__form .gkr-native-form .gform_footer .gform_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  border-radius: 999px !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: .01em;
  box-shadow: 0 10px 24px -12px rgb(16 24 32 / .55);
  transition: background-color .15s ease, color .15s ease;
}
body #gk-wp-root .gk-hero__form .gkr-native-form .gform_footer .gform_button:hover {
  background: var(--gk-black) !important;
  color: var(--gk-yellow) !important;
}
body #gk-wp-root .gk-hero__form .gkr-native-form .gform_footer .gform_button .gk-icon { width: 18px; height: 18px; }

/* Footer line */
body #gk-wp-root .gk-hero__form-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 14px;
  margin: 18px var(--gkf-pad) 0;
  padding: 14px 0 calc(var(--gkf-pad) - 2px);
  border-top: 1px solid #e4e8ec;
  font-size: .875rem !important;
  line-height: 1.4 !important;
  color: var(--gk-stone-600) !important;
}
body #gk-wp-root .gk-hero__form-foot > span:first-child { display: inline-flex; align-items: center; gap: 6px; }
body #gk-wp-root .gk-hero__form-foot > span:first-child::before {
  content: "";
  width: 16px;
  height: 16px;
  background: var(--gk-gold-700);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l10 -10'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5l10 -10'/%3E%3C/svg%3E") center / contain no-repeat;
}
body #gk-wp-root .gk-hero__form-foot a {
  color: var(--gk-black) !important;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--gk-yellow);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
/* After sending, Gravity Forms' thank you message takes the form's place. */
body #gk-wp-root .gk-hero__form .gform_confirmation_wrapper { padding: var(--gkf-pad); }
body #gk-wp-root .gk-hero__form .gform_confirmation_message { border-radius: 10px; }

/* With the form in view on desktop, the hero keeps only the call button. */
@media (min-width: 1000px) {
  body #gk-wp-root .gk-hero--form .gk-hero__actions { width: auto; }
  body #gk-wp-root .gk-hero--form .gk-hero__actions .gk-btn--primary { display: none; }
  body #gk-wp-root .gk-hero--form .gk-hero__actions .gk-btn--ghost { flex: 0 0 auto; padding-inline: 28px; }
}

@media (max-width: 999.98px) {
  body #gk-wp-root .gk-hero--form .gk-hero__stage { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  body #gk-wp-root .gk-hero__form { max-width: 640px; }
}

@media (max-width: 669.98px) {
  body #gk-wp-root .gk-hero--form .gk-hero__media { height: clamp(190px, 52vw, 34svh); }
  body #gk-wp-root .gk-hero--form .gk-hero__media img { object-position: 55% 40%; }
  body #gk-wp-root .gk-hero--form .gk-hero__content { gap: 14px; }
  body #gk-wp-root .gk-hero--form .gk-hero__note { display: none; }
  body #gk-wp-root .gk-hero__form { --gkf-pad: 20px; border-radius: 14px !important; }
  body #gk-wp-root .gk-hero__form .gkr-native-form #field_1_4,
  body #gk-wp-root .gk-hero__form .gkr-native-form #field_1_2 { grid-column: 1 / -1; }
}

/* The closing section points back up to the form (one form per page). */
body #gk-wp-root .gk-cta__prompt {
  grid-column: 8 / span 5;
  display: grid;
  gap: 16px;
  justify-items: start;
  padding: clamp(24px, 3vw, 40px);
  border-radius: 18px !important;
  background: var(--gk-white) !important;
  color: var(--gk-black) !important;
  box-shadow: inset 0 6px 0 var(--gk-yellow);
}
body #gk-wp-root .gk-cta__prompt .gk-h3 {
  font-size: clamp(1.2rem, .95rem + .6vw, 1.5rem) !important;
  line-height: 1.1 !important;
  color: var(--gk-black) !important;
}
body #gk-wp-root .gk-cta__prompt p { color: var(--gk-stone-600) !important; font-size: .9375rem !important; line-height: 1.5 !important; }
body #gk-wp-root .gk-cta__prompt .gk-btn { width: 100%; justify-content: center; }
@media (max-width: 999.98px) {
  body #gk-wp-root .gk-cta__prompt { grid-column: 1 / -1; max-width: 640px; }
}
