/* Lead forms. Layout and field styling come from the carried-over Gravity Forms rules
   (public/theme-base/) plus each page's own "Gravity Forms skin" block. This file only
   covers what the new form script adds: error messages, the busy state, the confirmation. */
.gform_wrapper .gform_validation_container { display: none !important; }
.gform_wrapper .gform_validation_errors { margin: 0 0 20px; padding: 12px 14px; border: 1px solid #d98f6a; font-size: 14px; color: #d98f6a; }
.gform_wrapper .gfield_validation_message { margin-top: 6px; font-size: 13px; color: #d98f6a; }
.gform_wrapper .gfield_error input, .gform_wrapper .gfield_error textarea { border-color: #d98f6a !important; }
.gform_wrapper .gform_button[disabled] { opacity: 0.6; cursor: default; }
.gform_confirmation_message { font-size: 17px; line-height: 1.7; padding: 8px 0; }

/* Submit button (Omer, 2026-11-13: "fix the button"). The old theme pinned it at 39px tall while
   the page styles gave it 15px of padding above and below, so the label was shoved to the bottom
   edge and cut off; it also inherited left alignment, which showed on the full-width homepage
   button. Let the button size itself around the label and centre the label. The id is repeated
   only to outrank the page-level rules. */
#gform_submit_button_1#gform_submit_button_1#gform_submit_button_1,
#gform_submit_button_2#gform_submit_button_2#gform_submit_button_2 {
  height: auto !important;
  min-height: 48px !important;
  line-height: 1.4 !important;
  text-align: center !important;
  cursor: pointer;
}

/* The reCAPTCHA box only loads on amramigroup.com addresses (the key is tied to the domain).
   Anywhere else (previews, local) the script marks the form so the empty "CAPTCHA" label is hidden. */
form.amrami-no-captcha .gfield--type-captcha { display: none !important; }
/* Breathing room above the button: it sat flush against the reCAPTCHA box (or the last field). */
form[data-form] .gform_footer { margin-top: 24px !important; padding-top: 0 !important; }

/* Homepage consultation form: a page rule stretched every input to the full row, checkboxes
   included, so each box floated alone mid-row with its label on the line below (same on WordPress).
   Checkboxes keep their own size and sit beside their label, as on the consultation page. */
form[data-form] .gchoice input[type="checkbox"]:not(#_):not(#_),
form[data-form] .gchoice input[type="radio"]:not(#_):not(#_) { width: auto !important; min-width: 0 !important; margin-right: 6px !important; }
/* Phones: 16px text in form fields, so iPhones do not zoom the page in when a field is tapped.
   (Page styles set 14-15px with !important, hence the ids.) */
@media (max-width: 767px) {
  html body #amrami-home form[data-form] :is(input[type=text], input[type=email], input[type=tel], select, textarea),
  html body #amrami-contact form[data-form] :is(input[type=text], input[type=email], input[type=tel], select, textarea),
  html body #amrami-consult form[data-form] :is(input[type=text], input[type=email], input[type=tel], select, textarea) { font-size: 16px !important; }
}

/* After a form is sent (2026-11-23): takes the colour of the section it sits in. */
html body .gform_confirmation_message .am-done-title { font-family: Marcellus, serif; font-size: 26px; line-height: 1.25; margin: 0 0 14px !important; color: inherit; }
html body .gform_confirmation_message .am-done-text { font-size: 16px; line-height: 1.7; margin: 0 0 10px !important; color: inherit; opacity: .9; }
html body .gform_confirmation_message .am-done-tel { color: inherit !important; font-weight: 600; text-decoration: none; white-space: nowrap; }
html body .gform_confirmation_message .am-done-more { font-size: 15px; margin: 18px 0 0 !important; color: inherit; }
html body .gform_confirmation_message .am-done-more a { color: inherit !important; text-decoration: underline; text-underline-offset: 3px; }
