/*
 * Footer ActiveCampaign signup form.
 *
 * These rules duplicate the `._form-content` block in
 * resources/styles/layouts/_footer.scss. They exist as a plain stylesheet because the theme is
 * missing package.json, vite.config.js and node_modules, so the SCSS cannot currently be
 * compiled. Delete this file and drop its entry from the stand-in list in app/setup.php once the
 * build chain is restored and app.css is rebuilt.
 *
 * Selectors carry one extra class (.form-code) so they outrank the compiled rules, which already
 * reach #footer .copy-social-container ._form-content, regardless of stylesheet order.
 *
 * Widths match Foundation's breakpoints: medium 48em/768px, large 64em/1024px.
 */

/*
 * Without a flex-grow the column takes its width from the heading text, which capped the signup
 * form at roughly 316px however wide the footer was.
 */
#footer .copy-social-container .copy {
  flex: 1 1 100%;
  min-width: 0;
}

#footer .copy-social-container .form-code ._form-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  margin-top: 1rem;
}

#footer .copy-social-container .form-code ._form-content label {
  display: none;
}

#footer .copy-social-container .form-code ._form-content ._form_element {
  width: 100%;
  margin-bottom: 0;
}

/* Wrappers carrying only a hidden input still claimed a flex slot and a bottom margin. */
#footer .copy-social-container .form-code ._form-content ._form_element:not(:has(._field-wrapper)) {
  display: none;
}

#footer .copy-social-container .form-code ._form-content ._field-wrapper {
  width: 100%;
}

#footer .copy-social-container .form-code ._form-content ._clear-element {
  display: none;
}

/*
 * ActiveCampaign renders the email field as type="text", so both fields have to be matched rather
 * than relying on a type="email" selector that never applied.
 */
#footer .copy-social-container .form-code ._form-content input[type="text"],
#footer .copy-social-container .form-code ._form-content input[type="email"] {
  width: 100% !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem !important;
  background: #ffffff !important;
  border: 1px solid #ffffff !important;
  border-radius: 4px !important;
  outline: none !important;
  margin-bottom: 0 !important;
  color: #000 !important;
}

#footer .copy-social-container .form-code ._form-content input[type="text"]::placeholder,
#footer .copy-social-container .form-code ._form-content input[type="email"]::placeholder {
  color: #000;
}

#footer .copy-social-container .form-code ._form-content ._error-inner {
  color: red;
  text-align: left;
  font-size: 12px;
  margin-top: 0.5rem;
}

#footer .copy-social-container .form-code ._form-content ._button-wrapper {
  width: 100%;
}

#footer .copy-social-container .form-code ._form-content ._submit,
#footer .copy-social-container .form-code ._form-content button {
  left: initial;
  top: initial;
  width: 100% !important;
  height: 2.6625rem;
  margin-top: 0;
  font-size: 80%;
  font-weight: bold;
  color: #000;
  background-color: #cca76c;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: -5px 0px 16px 0px rgba(0, 0, 0, 0.25);
  transition: background-color 0.3s;
}

#footer .copy-social-container .form-code ._form-content ._submit:hover,
#footer .copy-social-container .form-code ._form-content button:hover {
  background-color: #bf9046;
}

@media print, screen and (min-width: 48em) {
  #footer .copy-social-container .copy {
    flex: 1 1 auto;
  }

  #footer .copy-social-container .form-code ._form-content {
    flex-direction: row;
    align-items: stretch;
    max-width: 560px;
  }

  #footer .copy-social-container .form-code ._form-content ._form_element {
    flex: 1 1 0;
    min-width: 0;
  }

  #footer .copy-social-container .form-code ._form-content ._button-wrapper {
    flex: 0 0 auto;
    width: auto;
  }

  #footer .copy-social-container .form-code ._form-content ._submit,
  #footer .copy-social-container .form-code ._form-content button {
    width: auto !important;
    font-size: 100%;
  }
}

@media print, screen and (min-width: 64em) {
  #footer .copy-social-container .form-code ._form-content {
    max-width: 720px;
  }
}
