/* general */
.grecaptcha-badge { 
    visibility: hidden!important;
}

.gfield_label {
    display: none!important;
}

/* gf 1 */

/* Only affect placeholders inside .general-contact-form */
.general-contact-form input::placeholder,
.general-contact-form textarea::placeholder,
.general-contact-form select::placeholder {
  color: var(--color-jet);
  opacity: 0.7; /* consistent across all */
  font-style: italic; /* optional */
}

.general-contact-form select {
  color: var(--color-jet);
  opacity: 0.9;
}

.general-contact-form [id^="input_"][id$="_1"] {
    display: flex!important;
    align-items: center!important;
    justify-content: center!important;
}

@media (max-width: 600px) {
    .general-contact-form [id^="input_"][id$="_1"] {
        flex-direction: column!important;
    }
}

.general-contact-form fieldset[id^="field_"][id$="_1"] {
    margin-bottom: 0!important;
}

.general-contact-form [id^="input_"][id$="_1"] span {
    width: 100%!important;
    padding: 0.3rem!important;
}

.general-contact-form [id^="field_"][id$="_3"],
.general-contact-form [id^="field_"][id$="_4"],
.general-contact-form [id^="field_"][id$="_5"],
.general-contact-form [id^="field_"][id$="_6"] {
    padding: 0.3rem!important;
    width: 100%!important;
}

.general-contact-form input[type=submit]:not(.w-btn) {
    margin: 0.3rem!important;
}

/* Error text under fields */
.gform_wrapper .validation_message,
.gform_wrapper .gfield_error .gfield_description {
  color: var(--color-error, #d9534f);
  font-size: 0.9rem;
  margin-top: 0rem;
  line-height: 1.3;
  margin-left: 0.5rem;
  font-weight: 700;
}

/* Highlight invalid field borders */
.gform_wrapper .gfield_error input,
.gform_wrapper .gfield_error textarea,
.gform_wrapper .gfield_error select {
  border: 1px solid var(--color-error, #d9534f);
  background-color: #fff8f8; /* subtle red tint */
}

/* General form-level error (top message) */
.gform_wrapper .validation_error {
  color: var(--color-error, #d9534f);
  background: #fff8f8;
  border: 1px solid var(--color-error, #d9534f);
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-align: center;
  border-radius: 4px;
}

/* Top form error message */
.gform_validation_errors {
  background: #fff8f8; /* light red background */
  border: 1px solid #d9534f; /* soft red border */
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-top: 1.2rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

.gform_validation_errors h2.gform_submission_error {
  margin: 0;
  font-size: 1rem; /* smaller than a headline */
  font-weight: 500;
  color: #d9534f;
  line-height: 1.4;
}

.gform_validation_errors .gform-icon {
  display: none; /* optional: hide the default close icon */
}

/* GENERAL CONTACT FORM – SUCCESS MESSAGE
   Scope everything to this wrapper so other forms are unaffected */
.general-contact-form .gform_confirmation_wrapper{
  margin: 1rem 0 1.5rem;
}

/* Success "card" */
.general-contact-form .gform_confirmation_message{
  position: relative;
  background: rgba(74, 120, 86, 0.08);          /* fern green tint */
  border: 1px solid var(--color-fern-green);     /* #4A7856 */
  color: var(--color-fern-green);
  padding: .75rem 1rem .75rem 2.5rem;            /* extra left for icon */
  border-radius: 6px;
  font-size: 1rem;
  line-height: 1.45;
  text-align: left;
  margin-top: 1.8rem;
}

/* Check icon (no external assets needed) */
.general-contact-form .gform_confirmation_message::before{
  content: "";
  position: absolute;
  left: 0.75rem; top: 50%;
  transform: translateY(-50%);
  width: 1.1rem; height: 1.1rem;
  border-radius: 50%;
  background: var(--color-fern-green);
  /* white check using mask */
  -webkit-mask: url('data:image/svg+xml;utf8,\
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">\
    <path fill="%23fff" d="M7.6 13.2 3.9 9.5 2.5 10.9l5.1 5.1L17.5 6.1 16.1 4.7z"/>\
  </svg>') no-repeat center/70% 70%;
  mask: url('data:image/svg+xml;utf8,\
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">\
    <path fill="%23fff" d="M7.6 13.2 3.9 9.5 2.5 10.9l5.1 5.1L17.5 6.1 16.1 4.7z"/>\
  </svg>') no-repeat center/70% 70%;
}

/* If the GF theme prints a dark primary color, keep ours */
.general-contact-form.gform-theme{
  --gf-color-primary: var(--color-fern-green);
  --gf-color-primary-contrast: #fff;
}

/* Reduced motion: no subtle wiggles if you later add them */
@media (prefers-reduced-motion: reduce){
  .general-contact-form *{ transition: none !important; }
}

.general-contact-form .gform_confirmation_message{ text-align:center; padding-left:1rem; }
.general-contact-form .gform_confirmation_message::before{ display:none; }