/* AAUW Buffalo New Member Application — complete stylesheet.
   Replace assets/css/new-member-shared-css-additions.css.
   Layout spacing and kicker styling are consolidated here.
   The Page Editor HTML does not need a style block. */

.anm-wrap {
  box-sizing: border-box;
  --anm-blue: var(--aauw-blue-dark,#052a4f);
  --anm-green: var(--aauw-green,#67873a);
  --anm-light: #f5f7f8;
  color: var(--anm-blue);
  font: 15px/1.6 Arial,Helvetica,sans-serif;
  width: 100%;
  max-width: 1260px;
  margin: 18px auto 36px;
  padding: 0 24px;
}

.anm-wrap * {
  box-sizing: border-box;
}

.anm-wrap .anm-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #d6e0e7;
  border-radius: 8px;
  padding: 26px 30px 42px;
  background: radial-gradient(ellipse at 0 18%,#edf3edb3 0,transparent 38%),radial-gradient(ellipse at 100% 78%,#eaf0f6b3 0,transparent 38%),linear-gradient(180deg,#fff 0%,#fbfcfd 43%,#f3f6f5 100%);
}

.anm-panel::before,.anm-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  background-image: url('/wp-content/themes/aauw-buffalo-complete/assets/images/backgrounds/membership-floral.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: .075;
  width: 540px;
  height: 300px;
  filter: saturate(.65);
}

.anm-panel::before {
  left: -220px;
  top: 520px;
  transform: rotate(-38deg);
}

.anm-panel::after {
  right: -230px;
  top: 62%;
  transform: rotate(145deg);
}

.anm-wrap .anm-heading {
  position: relative;
  display: block;
  text-align: center;
  max-width: 920px;
  margin: 0 auto 24px;
  padding: 0 12px;
  overflow: visible;
  background: none;
  border: 0;
}

.anm-wrap .anm-heading .anm-floral {
  position: static!important;
  display: block!important;
  width: 300px!important;
  max-width: 80%!important;
  height: 50px!important;
  object-fit: contain;
  margin: 0 auto 16px!important;
  opacity: 1!important;
  transform: none!important;
  pointer-events: none;
}

.anm-intro {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: auto;
}

.anm-wrap .anm-heading .anm-kicker {
  font-family: Arial,Helvetica,sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  color: var(--anm-green);
  margin: 0 0 10px;
}

.anm-wrap .anm-heading h2 {
  font: bold clamp(28px,3.5vw,34px)/1.2 Georgia,'Times New Roman',serif;
  color: var(--anm-blue);
  margin: 0 0 14px;
}

.anm-wrap .anm-heading p:last-child {
  color: #657382;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

.anm-wrap .anm-card {
  position: relative;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  border: 1px solid #d5dfe7;
  border-radius: 7px;
  padding: 30px;
  background: #fffffff5;
  box-shadow: 0 8px 24px #052a4f0a;
}

.anm-note {
  font-size: 13px;
  color: #637080;
  line-height: 1.55;
}

.anm-about {
  border: 1px solid #d6e0e7;
  background: linear-gradient(135deg,#f5f7f8,#fbfcf9);
  border-radius: 6px;
  margin-bottom: 24px;
}

.anm-about summary {
  cursor: pointer;
  padding: 13px 16px;
  font-weight: bold;
}

.anm-about>div {
  padding: 0 16px 16px;
}

.anm-about h3 {
  font: bold 19px/1.3 Georgia,'Times New Roman',serif;
  color: var(--anm-blue);
  margin-top: 20px;
}

.anm-about li {
  margin: 6px 0;
}

.anm-wrap a {
  color: var(--anm-blue);
  text-decoration: underline;
}

.aauw-new-member-page .anm-grid > br,
.aauw-new-member-page .anm-field > br,
.aauw-new-member-page .anm-choice > br,
.aauw-new-member-page .anm-checks > br,
.aauw-new-member-page .anm-checks > label > br,
.aauw-new-member-page .anm-section > br,
.aauw-new-member-page .anm-school > br,
.aauw-new-member-page .anm-interests > br,
.aauw-new-member-page form > br,
.aauw-new-member-page .anm-inline > br,
.aauw-new-member-page .anm-section > p:empty,
.aauw-new-member-page .anm-school > p:empty {
  display: none!important;
}

.aauw-new-member-page .anm-grid > p,.aauw-new-member-page .anm-checks > p {
  display: contents!important;
}

.anm-section {
  border: 1px solid #d6e0e7;
  border-radius: 6px;
  background: linear-gradient(135deg,#f6f8f9,#fbfcfc);
  padding: 18px;
  margin: 0 0 28px;
  min-width: 0;
}

.anm-section>legend {
  display: table;
  width: auto;
  max-width: 100%;
  background: transparent;
  color: var(--anm-blue);
  font: bold 21px/1.3 Georgia,'Times New Roman',serif;
  border: 0;
  padding: 0 7px;
  margin: 0 0 2px;
}

.aauw-new-member-page .anm-grid {
  display: grid!important;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr)!important;
  align-items: start!important;
  gap: 0 18px!important;
  margin: 0!important;
  padding: 0!important;
}

.aauw-new-member-page .anm-grid-3 {
  grid-template-columns: minmax(0,2fr) minmax(0,1fr) minmax(0,1fr)!important;
}

.aauw-new-member-page .anm-grid-date {
  grid-template-columns: minmax(0,2fr) minmax(0,1fr)!important;
}

.aauw-new-member-page .anm-field {
  display: flex!important;
  flex-direction: column!important;
  gap: 5px!important;
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 16px!important;
  padding: 0!important;
  min-width: 0!important;
}

.anm-field small {
  font-weight: normal;
}

.anm-wrap input:not([type=radio]):not([type=checkbox]),.anm-wrap textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #adbfcd;
  border-radius: 5px;
  background: #fff;
  color: #17374e;
  font: 16px Arial,sans-serif;
  padding: 10px 12px;
  box-shadow: none;
}

.anm-wrap textarea {
  resize: vertical;
}

.anm-wrap input:focus-visible,.anm-wrap textarea:focus-visible,.anm-wrap button:focus-visible,.anm-wrap summary:focus-visible {
  outline: 3px solid #738f51;
  outline-offset: 3px;
}

.anm-label {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 10px;
}

.anm-inline {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0 20px 18px 0;
}

.anm-wrap input[type=radio],.anm-wrap input[type=checkbox] {
  accent-color: var(--anm-green);
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin: 2px 0;
  vertical-align: middle;
}

.anm-choice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid #dce5e8;
  border-radius: 7px;
  padding: 15px;
  margin-bottom: 10px;
  cursor: pointer;
}

.anm-choice:has(input:checked) {
  background: #f1f6ed;
  border-color: var(--anm-green);
}

.anm-choice span {
  flex: 1;
}

.anm-choice strong {
  font-size: 15px;
}

.anm-choice small {
  display: block;
  color: #506474;
  font-size: 13px;
}

.anm-choice>b {
  font-size: 17px;
  white-space: nowrap;
}

.anm-school {
  border-bottom: 1px solid #e3e9ec;
  margin-bottom: 18px;
}

.anm-school h3 {
  font-size: 14px;
  margin: 0 0 10px;
}

.anm-interests {
  border: 0;
  padding: 0;
  margin: 0 0 22px;
  min-width: 0;
}

.anm-interests legend {
  font-size: 15px;
  font-weight: bold;
  padding: 0;
  margin-bottom: 10px;
}

.anm-checks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
}

.anm-checks label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
}

.anm-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.anm-total {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: #f0f5ec;
  border-radius: 6px;
  padding: 16px 18px;
  font-size: 18px;
}

.anm-total strong {
  color: var(--anm-green);
}

.anm-wrap address {
  font-style: normal;
  margin: 16px 0;
  padding-left: 18px;
  border-left: 3px solid #b7cba4;
}

.anm-submit {
  display: block;
  width: auto;
  max-width: 100%;
  margin: 26px auto 12px;
  border: 0;
  border-radius: 6px;
  background: var(--anm-green);
  color: #fff;
  font: bold 16px Arial,sans-serif;
  padding: 15px 25px;
  cursor: pointer;
  text-align: center;
}

.anm-submit:hover {
  background: #3d602c;
}

.anm-footer {
  border-top: 1px solid #e0e7e9;
  padding-top: 20px;
  margin-top: 24px;
  font-size: 12px;
  text-align: center;
  color: #4b6071;
}

.anm-receipt dl {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
}

.anm-receipt dt,.anm-receipt dd {
  margin: 0;
  padding: 9px;
  border-bottom: 1px solid #e1e7ea;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.anm-receipt dt {
  font-weight: bold;
}

.anm-status {
  padding: 16px;
  background: #edf5fa;
  border-radius: 6px;
}

.anm-error {
  background: #fff3e6;
  padding: 14px;
  border: 1px solid #d3a26c;
}

.anm-print {
  margin: 24px auto;
}

@media(max-width:640px) {
  .anm-wrap {
    padding: 0 10px;
    margin: 12px auto 24px;
  }

  .anm-heading {
    padding: 28px 12px;
  }

  .anm-floral {
    width: 160px;
    opacity: .18;
  }

  .anm-card {
    padding: 20px 16px;
  }

  .aauw-new-member-page .anm-grid {
    grid-template-columns: minmax(0,1fr)!important;
  }

  .anm-checks {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .anm-choice {
    padding: 12px;
    gap: 9px;
  }

  .anm-choice>b {
    font-size: 15px;
  }

  .anm-section>legend {
    font-size: 19px;
  }

  .anm-total {
    font-size: 16px;
  }

  .anm-receipt dl {
    grid-template-columns: 1fr;
  }

  .anm-receipt dt {
    border: 0;
    padding-bottom: 0;
  }

  .anm-submit {
    width: 100%;
  }

  .anm-wrap .anm-panel {
    padding: 24px 12px;
  }

  .anm-wrap .anm-heading {
    padding: 0 4px;
    margin-bottom: 22px;
  }

  .anm-wrap .anm-heading .anm-floral {
    width: 250px!important;
    height: 46px!important;
    margin-bottom: 14px!important;
  }

  .anm-wrap .anm-card {
    padding: 20px 14px;
  }

  .anm-section {
    padding: 14px 10px;
  }

  .anm-wrap .anm-heading p:last-child {
    font-size: 15px;
  }

  .anm-panel::before,.anm-panel::after {
    opacity: .045;
  }

}

@media print {
  .anm-wrap {
    max-width: none;
    margin: 0;
    padding: 0;
    color: #000;
    font-size: 10pt;
  }

  .anm-card {
    box-shadow: none;
    border: 0;
    padding: 0;
  }

  .anm-heading {
    padding: 0 0 18px;
  }

  .anm-floral,.anm-print,.anm-back {
    display: none!important;
  }

  .anm-receipt dt,.anm-receipt dd {
    padding: 5px;
    break-inside: avoid;
  }

  .anm-receipt dl {
    font-size: 9pt;
    grid-template-columns: 1fr 2fr;
  }

  .anm-footer {
    font-size: 8pt;
  }

  .anm-heading h2 {
    font-size: 22pt;
  }

  .anm-total,.anm-status {
    border: 1px solid #aaa;
  }

  .anm-receipt h3 {
    break-after: avoid;
  }

  .anm-wrap .anm-panel {
    border: 0;
    background: white;
    padding: 0;
    overflow: visible;
  }

  .anm-panel::before,.anm-panel::after {
    display: none;
  }

  .anm-wrap .anm-card {
    max-width: none;
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .anm-wrap .anm-heading {
    padding: 0 0 16px;
  }

  .anm-wrap .anm-heading .anm-floral {
    display: none!important;
  }

}


