/* ── Page wrapper: dark maroon background, full viewport width breakout ──────── */
.wam-zs-page-wrapper {
  background: #6b0f1a;
  padding: 3rem 1.5rem 4rem;
  box-sizing: border-box;
  /* break out of any parent max-width container */
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* ── Page header ────────────────────────────────────────────────────────────── */
.wam-zs-page-header {
  text-align: center;
  margin-bottom: 1.75rem;
}
.wam-zs-page-title {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0 0 0.4rem;
  font-family: Georgia, 'Times New Roman', serif;
  letter-spacing: 0.01em;
}
.wam-zs-tagline {
  font-size: 1.15rem;
  color: #e8c96a;
  font-style: italic;
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
}

/* ── Quote card ─────────────────────────────────────────────────────────────── */
.wam-zs-quote-card {
  max-width: 1020px;
  margin: 0 auto 2rem;
  background: #f5e9cc;
  border: 3px solid #c8a84b;
  border-radius: 3px;
  display: flex;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.wam-zs-quote-card::before,
.wam-zs-quote-card::after {
  content: '✦';
  position: absolute;
  color: #c8a84b;
  font-size: 0.9rem;
  line-height: 1;
  z-index: 1;
}
.wam-zs-quote-card::before { top: 6px; left: 6px; }
.wam-zs-quote-card::after  { bottom: 6px; right: 6px; }

.wam-zs-quote-photo {
  flex: 0 0 200px;
  position: relative;
  overflow: hidden;
}
.wam-zs-quote-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wam-zs-photo-credit {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.55);
  color: #f5e9cc;
  font-size: 0.6rem;
  text-align: center;
  padding: 3px 4px;
}

.wam-zs-quote-text {
  flex: 1;
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.wam-zs-quote-body {
  font-size: 0.97rem;
  line-height: 1.65;
  color: #3a2a0a;
  font-style: italic;
  margin: 0 0 0.85rem;
  font-family: Georgia, 'Times New Roman', serif;
}
.wam-zs-quote-cite {
  font-size: 0.82rem;
  color: #5a3e12;
  font-style: normal;
  line-height: 1.5;
  margin-bottom: 0.75rem;
  display: block;
  font-family: Georgia, 'Times New Roman', serif;
}
.wam-zs-emblem {
  font-size: 1.6rem;
  color: #7d1020;
  opacity: 0.75;
  line-height: 1;
}

/* ── Form container ──────────────────────────────────────────────────────────── */
.wam-zs-form-container {
  max-width: 1020px;
  margin: 0 auto;
  background: #f5e9cc;
  border: 4px solid #c8a84b;
  border-radius: 4px;
  padding: 2rem 2.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.35);
}

/* ── Inner wrapper reset ─────────────────────────────────────────────────────── */
.wam-zs-wrapper {
  max-width: 100%;
  margin: 0;
  font-family: inherit;
}

/* ── Form fields ─────────────────────────────────────────────────────────────── */
.wam-zs-section-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.75rem 0 .75rem;
  padding-bottom: .3rem;
  border-bottom: 2px solid #c8a84b;
  color: #4b0c0c;
}
.wam-zs-optional { font-weight: 400; font-size: .82rem; color: #888; }
.req { color: #c00; }
.wam-zs-field { margin-bottom: 1rem; }
.wam-zs-field label:not(.wam-zs-check-label) {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: .3rem;
  color: #3a2a0a;
}
.wam-zs-field input[type=text],
.wam-zs-field input[type=email],
.wam-zs-field input[type=tel],
.wam-zs-field input[type=password],
.wam-zs-field input[type=number],
.wam-zs-field select,
.wam-zs-field textarea,
.wam-zs-sub-input {
  width: 100%;
  padding: .6rem .8rem;
  border: 1px solid #c8a84b;
  border-radius: 5px;
  font-size: .95rem;
  box-sizing: border-box;
  background: #fffdf5;
  transition: border-color .15s, box-shadow .15s;
}
.wam-zs-field input:focus,
.wam-zs-field select:focus,
.wam-zs-field textarea:focus {
  outline: none;
  border-color: #4a7fcb;
  box-shadow: 0 0 0 3px rgba(74,127,203,.18);
}
.wam-zs-row { display: flex; gap: 1rem; }
.wam-zs-row .wam-zs-field { flex: 1; }
.wam-zs-check-label {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  cursor: pointer;
  font-size: .92rem;
  line-height: 1.45;
  color: #3a2a0a;
}
.wam-zs-check-label input[type=checkbox] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.wam-zs-sub-input { width: auto !important; }

/* ── Plan selector ───────────────────────────────────────────────────────────── */
.wam-zs-plan-group { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.wam-zs-plan-option { flex: 1; min-width: 190px; cursor: pointer; }
.wam-zs-plan-option input[type=radio] { position: absolute; opacity: 0; width: 0; height: 0; }
.wam-zs-plan-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.1rem .75rem;
  border: 2px solid #c8a84b;
  border-radius: 8px;
  text-align: center;
  min-height: 75px;
  background: #fffdf5;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.wam-zs-plan-box strong { font-size: 1.05rem; display: block; margin-bottom: .2rem; color: #3a1a05; }
.wam-zs-plan-box small { color: #7a5a30; font-size: .78rem; }
.wam-zs-plan-option input[type=radio]:checked + .wam-zs-plan-box {
  border-color: #4a7fcb;
  background: #eef3fb;
  box-shadow: 0 0 0 3px rgba(74,127,203,.2);
}
.wam-zs-plan-option:hover .wam-zs-plan-box { border-color: #9b7c2e; }
.wam-zs-inline-check { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }

/* ── Agreements ──────────────────────────────────────────────────────────────── */
.wam-zs-agreement {
  background: #fdf5e0;
  border: 1px solid #c8a84b;
  border-radius: 6px;
  padding: .85rem;
}
.wam-zs-agreement .wam-zs-check-label span { color: #3a2a0a; }

/* ── Total display ───────────────────────────────────────────────────────────── */
#wam-zs-total-wrap {
  text-align: center;
  padding: 1rem;
  background: #fdf5e0;
  border: 1px solid #c8a84b;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #4b0c0c;
}

/* ── Submit button ───────────────────────────────────────────────────────────── */
#wam-zs-submit {
  background: #7d1020;
  color: #fff;
  border: none;
  padding: .9rem 2.25rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  transition: background .2s, transform .1s;
  margin-top: .5rem;
}
#wam-zs-submit:hover { background: #5c0a15; }
#wam-zs-submit:active { transform: scale(.98); }
#wam-zs-submit:disabled { opacity: .65; cursor: not-allowed; }

/* ── Spinner ─────────────────────────────────────────────────────────────────── */
.wam-zs-spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: wamZsSpin .65s linear infinite;
  display: inline-block;
}
@keyframes wamZsSpin { to { transform: rotate(360deg); } }

/* ── Error box ───────────────────────────────────────────────────────────────── */
.wam-zs-error {
  background: #fff2f2;
  border: 1px solid #e88;
  border-radius: 5px;
  padding: .75rem 1rem;
  color: #b00;
  margin-bottom: 1.25rem;
  font-size: .93rem;
}

/* ── Payment step ────────────────────────────────────────────────────────────── */
.wam-zs-payment-header { margin-bottom: 1rem; }
.wam-zs-payment-header h3 { margin: 0 0 .3rem; color: #4b0c0c; }
.wam-zs-payment-header p  { margin: 0; color: #555; }

/* ── Stripe element ──────────────────────────────────────────────────────────── */
#wam-zs-stripe-element {
  background: #fff;
  border: 1px solid #c8a84b;
  border-radius: 8px;
  padding: 16px;
}
.wam-zs-pay-btn {
  background: #7d1020;
  color: #fff;
  border: none;
  padding: .9rem 2.5rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 7px;
  cursor: pointer;
  transition: background .2s, transform .1s;
  display: inline-block;
}
.wam-zs-pay-btn:hover { background: #5c0a15; }
.wam-zs-pay-btn:disabled { opacity: .65; cursor: not-allowed; }

/* ── Success box ─────────────────────────────────────────────────────────────── */
.wam-zs-success-box {
  background: #fdf5e0;
  border: 1px solid #c8a84b;
  border-radius: 10px;
  padding: 2.5rem;
  text-align: center;
}
.wam-zs-success-icon { font-size: 2.5rem; color: #2c8a2c; margin-bottom: .5rem; }
.wam-zs-success-box h3 { color: #4b0c0c; margin: 0 0 .5rem; }
.wam-zs-success-box p  { color: #444; margin: 0; }

/* ── Misc ────────────────────────────────────────────────────────────────────── */
.wam-zs-notice { background: #fff8e1; border: 1px solid #ffc107; padding: .75rem 1rem; border-radius: 5px; }
.wam-zs-confirm-btn {
  display: block;
  margin: 1.25rem auto 0;
  background: #f59e0b;
  color: #fff;
  border: none;
  padding: .8rem 1.75rem;
  font-size: .95rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background .2s;
}
.wam-zs-confirm-btn:hover { background: #d97706; }
.wam-zs-confirm-btn:disabled { opacity: .65; cursor: not-allowed; }
.wam-zs-cta-btn {
  display: inline-block;
  padding: .75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: .95rem;
  background: #7d1020;
  color: #fff;
  transition: background .2s;
}
.wam-zs-cta-btn:hover { background: #5c0a15; color: #fff; }
.wam-zs-cta-vendor { background: #4a7fcb; }
.wam-zs-cta-vendor:hover { background: #3a6ab0; }

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 620px) {
  .wam-zs-quote-card { flex-direction: column; }
  .wam-zs-quote-photo { flex: 0 0 200px; height: 200px; }
  .wam-zs-form-container { padding: 1.25rem 1rem; }
  .wam-zs-page-title { font-size: 1.5rem; }
}
@media (max-width: 580px) {
  .wam-zs-row { flex-direction: column; gap: 0; }
  .wam-zs-plan-group { flex-direction: column; }
  .wam-zs-plan-option { min-width: unset; }
}

/* ── Login form ──────────────────────────────────────────────────────────────── */
.wam-login-container { max-width: 460px; }
.wam-login-inner { padding: 2.5rem 2rem; }
.wam-login-btn {
  background: #7d1020;
  color: #fff;
  border: none;
  padding: .9rem 2.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  transition: background .2s;
}
.wam-login-btn:hover { background: #5c0a15; }
.wam-login-btn:active { transform: scale(.98); }
.wam-login-btn:disabled { opacity: .65; cursor: not-allowed; }
.wam-login-success {
  background: #f0fbf0;
  border: 1px solid #5a5;
  border-radius: 5px;
  padding: .75rem 1rem;
  margin-bottom: 1.25rem;
  color: #2a5a2a;
  font-size: .92rem;
}
