.wa-hero {
  background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 40%, #a7f3d0 100%);
  border-bottom: 1px solid #6ee7b7;
}

.wa-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #065f46;
  font-weight: 600;
}

.wa-title {
  margin-top: 0.5rem;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
}

.wa-intro {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.6;
}

.wa-page {
  padding-bottom: 5rem;
  background: #f8fafc;
  min-height: 60vh;
}

.wa-body,
.wa-body-narrow {
  padding-top: 2rem;
  padding-bottom: 4rem;
  max-width: 44rem;
}

.wa-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding-top: 1.25rem;
  padding-bottom: 2rem;
  max-width: 72rem;
}

.wa-layout-full {
  grid-column: 1 / -1;
}

@media (min-width: 1024px) {
  .wa-layout {
    grid-template-columns: minmax(0, 1fr) 24rem;
    gap: 2.5rem;
    align-items: start;
    padding-top: 2rem;
    padding-bottom: 4rem;
  }

  .wa-page {
    padding-bottom: 2rem;
  }
}

.wa-story {
  min-width: 0;
}

.wa-banner {
  margin: 0 0 1.25rem;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #e2e8f0;
  border: 1px solid #e2e8f0;
}

.wa-banner-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 22rem;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

.wa-story-title {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.2;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 1rem;
}

.wa-mobile-count {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}

.wa-send-col {
  min-width: 0;
}

.wa-send-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

@media (min-width: 1024px) {
  .wa-send-card {
    position: sticky;
    top: 5.5rem;
  }
}

.wa-send-card-head {
  padding: 1.25rem 1.25rem 0;
}

.wa-send-fields {
  padding: 1.25rem;
}

.wa-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.wa-thanks {
  text-align: center;
  padding: 3rem 1.5rem;
}

.wa-count {
  font-size: 2rem;
  font-weight: 700;
  color: #047857;
  line-height: 1;
}

.wa-count-label {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: #64748b;
}

.wa-test-banner {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
}

.wa-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.wa-intro-text {
  color: #334155;
  line-height: 1.7;
  font-size: 1.05rem;
}

.wa-intro-text img {
  max-width: 100%;
  height: auto;
}

.wa-intro-text p {
  margin: 0 0 1em;
}

.wa-recipients {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
}

.wa-recipients-title {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

.wa-recipient-list {
  margin: 0;
  padding-left: 1.25rem;
  color: #334155;
  line-height: 1.6;
}

.wa-variation-option {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
}

.wa-variation-option:has(input:checked) {
  border-color: #059669;
  background: #ecfdf5;
}

.wa-mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
}

.wa-mobile-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 72rem;
  margin: 0 auto;
}

.wa-mobile-bar-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: #047857;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wa-mobile-bar-title {
  font-size: 0.875rem;
  color: #334155;
  font-weight: 500;
}

[x-cloak] {
  display: none !important;
}

.wa-related {
  max-width: 72rem;
  padding-top: 0.5rem;
  padding-bottom: 3rem;
}

.wa-related-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #0f172a;
  margin: 0 0 0.75rem;
}

.wa-related-list {
  margin: 0;
  padding-left: 1.25rem;
  color: #065f46;
  line-height: 1.7;
}

.wa-related-list a {
  color: #047857;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.wa-related-list a:hover {
  color: #065f46;
}

@media (prefers-reduced-motion: reduce) {
  .wa-loading-spinner {
    animation: none !important;
  }
}

/* Rich-text candidate email preview (take.php) */
.wa-email-preview {
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  background: #fff;
  padding: 0.75rem 1rem;
}
.wa-email-preview img {
  max-width: 100%;
  height: auto;
}

.wa-thanks-text p:last-child {
  margin-bottom: 0;
}

.wa-thanks-text ul,
.wa-thanks-text ol {
  display: inline-block;
  text-align: left;
}

/* Intro image lightbox (own code, no libraries) */
.wa-intro-text img.wa-zoomable {
  cursor: zoom-in;
}

.wa-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.85);
  cursor: zoom-out;
}

.wa-lightbox[hidden] {
  display: none;
}

.wa-lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  cursor: default;
}

.wa-lightbox-close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  font-size: 2.25rem;
  line-height: 1;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
}

html.wa-lightbox-open {
  overflow: hidden;
}
