/* =========================================================
   NATIONAL COALITION — AcyMailing theme layer
   Civic editorial design system (see template.css)
   Targets mod_acym subscription forms and com_acym front pages.
   ========================================================= */

/* ---------- Module card ---------- */

.acym_fulldiv {
  width: min(720px, 100%);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.acym_module_form .acym_introtext {
  margin: 0 0 18px;
  color: var(--navy);
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
}

/* ---------- Fields ---------- */

.acym_module_form .acym_form .onefield,
.acym_fulldiv .acym_form .onefield {
  margin-bottom: 14px;
}

.acym_module_form .acym_form .onefield label,
.acym_fulldiv .acym_form .onefield label {
  display: block;
  width: 100%;
}

.acym_module_form .acym__users__creation__fields__title,
.acym_fulldiv .acym__users__creation__fields__title {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.acym_module_form .acym_form input[type="text"],
.acym_module_form .acym_form input[type="email"],
.acym_fulldiv .acym_form input[type="text"],
.acym_fulldiv .acym_form input[type="email"],
.acym_fulldiv .acym_form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.acym_module_form .acym_form input:focus,
.acym_fulldiv .acym_form input:focus,
.acym_fulldiv .acym_form select:focus {
  border-color: var(--navy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(7, 27, 49, 0.12);
}

/* Email suggestion dropdown */
.acym_email_suggestions {
  border: 1px solid var(--line-dark) !important;
  border-radius: 4px;
  background: var(--white);
  box-shadow: var(--shadow-md);
  font-family: var(--font-sans);
}

.acym_email_suggestions li:hover,
.acym_email_suggestions li.selected {
  background: var(--mist-blue);
  color: var(--navy);
}

/* Field error messages */
.acym__field__error__block {
  color: var(--red);
  font-family: var(--font-sans);
  font-size: 13px;
}

/* ---------- Submit button ---------- */

.acysubbuttons {
  margin: 6px 0 0;
  text-align: inherit;
}

.acysubbuttons .subbutton,
.acym_fulldiv .subbutton,
form[id^="formAcym"] .subbutton {
  display: inline-block;
  padding: 12px 26px;
  border: none;
  border-radius: 3px;
  background: var(--red) !important;
  color: #fff !important;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.acysubbuttons .subbutton:hover,
.acym_fulldiv .subbutton:hover,
form[id^="formAcym"] .subbutton:hover {
  background: var(--red-deep) !important;
  transform: translateY(-1px);
}

/* ---------- Success / error messages ---------- */

.acym_message,
.acym__subscription__response,
.acym_success,
.acym_error {
  padding: 14px 18px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
}

.acym_success,
.acym_message.acym__color__green,
.acym__subscription__response {
  border: 1px solid #2e7d46;
  background: #f0f7f2;
  color: #205c33;
}

.acym_error {
  border: 1px solid var(--red);
  background: #fdf2f3;
  color: var(--red-deep);
}

/* ---------- Home page join-band variant (dark navy band) ---------- */

.join-band .join-newsletter .acym_fulldiv {
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.join-band .join-newsletter .acym_module_form .acym_introtext {
  margin: 0 0 12px;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.join-band .join-newsletter .acym_form .onefield {
  width: min(320px, 100%);
  margin-bottom: 10px;
}

.join-band .join-newsletter .acym_form .onefield label {
  margin-top: 0;
}

.join-band .join-newsletter .acym__users__creation__fields__title {
  color: rgba(255, 255, 255, 0.75);
}

.join-band .join-newsletter .acym_form input[type="text"],
.join-band .join-newsletter .acym_form input[type="email"] {
  width: 100%;
  height: 26.4px;
  min-height: 0;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
  line-height: 24px;
}

.join-band .join-newsletter .acym_form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.join-band .join-newsletter .acym_form input:focus {
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

.join-band .join-newsletter .acysubbuttons .subbutton {
  background: var(--red-bright) !important;
}

.join-band .join-newsletter .acysubbuttons .subbutton:hover {
  background: var(--red) !important;
}

.join-band .join-newsletter .acym__field__error__block {
  color: #ffb3bd;
}

/* ---------- com_acym front pages (profile, unsubscribe, archive) ---------- */

#acym_wrapper {
  width: min(760px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(36px, 5vw, 64px) 0 clamp(56px, 7vw, 96px);
  color: var(--ink);
  font-family: var(--font-sans);
}

#acym_wrapper h1,
#acym_wrapper h2,
#acym_wrapper .acym__title {
  color: var(--navy);
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: 1.15;
}

#acym_wrapper input[type="text"],
#acym_wrapper input[type="email"],
#acym_wrapper input[type="password"],
#acym_wrapper select,
#acym_wrapper textarea {
  padding: 12px 14px;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

#acym_wrapper input:focus,
#acym_wrapper select:focus,
#acym_wrapper textarea:focus {
  border-color: var(--navy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(7, 27, 49, 0.12);
}

#acym_wrapper .acym_button,
#acym_wrapper button[type="submit"],
#acym_wrapper input[type="submit"],
#acym_wrapper .button-primary {
  padding: 12px 26px;
  border: none;
  border-radius: 3px;
  background: var(--red) !important;
  color: #fff !important;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s var(--ease);
}

#acym_wrapper .acym_button:hover,
#acym_wrapper button[type="submit"]:hover,
#acym_wrapper input[type="submit"]:hover,
#acym_wrapper .button-primary:hover {
  background: var(--red-deep) !important;
}

#acym_wrapper a {
  color: var(--red);
  text-decoration: none;
}

#acym_wrapper a:hover {
  color: var(--red-deep);
  text-decoration: underline;
}
