/* Shared-footer compatibility for plugin-native Gravity Forms markup. */
.site-footer__brand img:not(.site-footer__logo) {
  width: auto;
  margin: 0;
}

.site-footer__logo-link {
  display: table;
  max-width: 100%;
}

.site-footer__bottom p .site-footer__copyright-link {
  font-size: inherit;
}

.social-links a {
  transition:
    color 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  color: var(--color-navy);
  background-color: var(--color-gold-end);
  border-color: var(--color-gold-end);
  box-shadow: 0 8px 20px rgba(213, 169, 73, 0.28);
  transform: translateY(-3px);
}

.social-links a:focus-visible {
  outline: 2px solid var(--color-white);
  outline-offset: 3px;
}

.social-links svg {
  transition: transform 220ms ease;
}

.social-links a:hover svg,
.social-links a:focus-visible svg {
  transform: scale(1.1);
}

.site-footer__newsletter .gform_wrapper,
.site-footer__newsletter .newsletter-form,
.site-footer__newsletter .newsletter-form__controls,
.site-footer__newsletter .newsletter-form__body,
.site-footer__newsletter .newsletter-form__footer,
.site-footer__newsletter .newsletter-form__field,
.site-footer__newsletter .ginput_container_email,
.site-footer__newsletter .newsletter-form__submit {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.site-footer__newsletter .newsletter-form > .newsletter-form__controls {
  display: flex;
  align-items: stretch;
  flex-direction: column;
  gap: 18px;
}

.site-footer__newsletter .newsletter-form__body,
.site-footer__newsletter .newsletter-form__footer {
  margin: 0;
  padding: 0 !important;
}

.site-footer__newsletter .newsletter-form__body .gform_fields {
  display: block;
}

.site-footer__newsletter {
  .newsletter-form {
    .newsletter-form__field {
      .ginput_container_email {
        input[type="email"] {
          width: 100%;
          min-width: 0;
          max-width: none;
          height: 54px;
          padding: 0 20px;
          color: var(--color-white);
          background: rgba(255, 255, 255, 0.06);
          border: 1px solid rgba(190, 213, 233, 0.16);
          border-radius: var(--radius-pill);
          outline: 0;
          box-sizing: border-box;
          font-family: Inter, Arial, sans-serif;
          font-size: 13px;
          line-height: 19px;
        }

        input[type="email"]::placeholder {
          color: rgba(255, 255, 255, 0.65);
        }
      }
    }
  }
}

.site-footer__newsletter .newsletter-form__field,
.site-footer__newsletter .newsletter-form__field .ginput_container {
  margin: 0;
}

.site-footer__newsletter .newsletter-form__footer {
  display: block;
}

.site-footer__newsletter .newsletter-form__submit {
  margin: 0;
}

.site-footer__newsletter {
  .gform_wrapper.gravity-theme {
    .gform_validation_errors {
      width: 100%;
      margin: 0 0 12px;
      padding: 12px 14px;
      color: #dfe9f3;
      background: rgba(16, 38, 61, 0.92);
      border: 1px solid rgba(224, 189, 111, 0.45);
      border-left: 3px solid var(--color-gold);
      border-radius: 10px;
      box-shadow: none;
      box-sizing: border-box;

      &:focus {
        outline: 2px solid rgba(224, 189, 111, 0.72);
        outline-offset: 2px;
      }

      .gform_submission_error {
        display: block;
        margin: 0;
        padding: 0;
        color: #f4ce78;
        font-family: Inter, Arial, sans-serif;
        font-size: 12px;
        font-weight: 600;
        line-height: 1.45;
        letter-spacing: 0;
        text-transform: none;
        white-space: normal;

        .gform-icon {
          display: none;
        }
      }

      ol {
        margin: 6px 0 0;
        padding: 0 0 0 18px;

        li {
          margin: 0;
          color: #dfe9f3;
          font-size: 11px;
          line-height: 1.45;

          .gform_validation_error_link {
            color: inherit;
            font-size: inherit;
            font-weight: 500;
            line-height: inherit;
            text-decoration: underline;
            text-decoration-color: rgba(224, 189, 111, 0.65);
            text-underline-offset: 2px;
          }
        }
      }
    }
  }

  .newsletter-form {
    .newsletter-form__field.gfield_error {
      .gfield_validation_message {
        width: auto;
        min-height: 0;
        margin: 0 8px 6px;
        padding: 0;
        color: #f4ce78;
        background: transparent;
        border: 0;
        font-family: Inter, Arial, sans-serif;
        font-size: 11px;
        line-height: 1.4;
      }

      .ginput_container_email input[type="email"] {
        border-color: rgba(224, 189, 111, 0.8);
        box-shadow: 0 0 0 2px rgba(224, 189, 111, 0.1);
      }
    }
  }
}

.site-footer__newsletter .gform_ajax_spinner {
  width: 16px;
  height: 16px;
  margin: 8px auto 0;
}

.site-footer__newsletter {
  .gform_confirmation_wrapper.newsletter-form__status,
  .gform_confirmation_message.newsletter-form__status {
    position: relative;
    display: block;
    min-height: 0;
    margin: 0;
    padding: 22px 22px 22px 62px;
    overflow: hidden;
    color: var(--color-white);
    background:
      linear-gradient(135deg, rgba(224, 189, 111, 0.18), rgba(255, 255, 255, 0.035)),
      rgba(16, 38, 61, 0.94);
    border: 1px solid rgba(224, 189, 111, 0.62);
    border-radius: 14px;
    box-shadow:
      0 16px 36px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    font-family: Inter, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.6;

    &::before {
      position: absolute;
      top: 20px;
      left: 20px;
      width: 26px;
      height: 26px;
      background: linear-gradient(180deg, var(--color-gold), var(--color-gold-end));
      border-radius: 50%;
      box-shadow: 0 6px 16px rgba(213, 169, 73, 0.3);
      content: "";
    }

    &::after {
      position: absolute;
      top: 33px;
      left: 33px;
      width: 6px;
      height: 10px;
      border-right: 2px solid var(--color-navy);
      border-bottom: 2px solid var(--color-navy);
      content: "";
      transform: translate(-50%, -57%) rotate(45deg);
      transform-origin: center;
    }

    .gform_confirmation_message {
      margin: 0;
      color: inherit;
      font: inherit;
      letter-spacing: 0.01em;
    }
  }
}

@media (max-width: 767px) {
  .site-footer__newsletter .newsletter-form > .newsletter-form__controls {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-links a,
  .social-links svg {
    transition: none;
  }

  .social-links a:hover,
  .social-links a:focus-visible,
  .social-links a:hover svg,
  .social-links a:focus-visible svg {
    transform: none;
  }
}
