/* ==========================================================================
   2027 Conscious Giving Commitment — Contact Form 7 Scoped Stylesheet
   Target site: pdspiritualcenter.org (Blocksy + BoldGrid + Contact Form 7)
   Crisp Black & White edition matching the 2027 printed commitment card
   ========================================================================== */

.pdsc-giving-wrap {
  --pdsc-g-ink: #111111;
  --pdsc-g-muted: #4a4a4a;
  --pdsc-g-line: #222222;
  --pdsc-g-soft: #f5f5f5;
  --pdsc-g-border: #cccccc;
  --pdsc-g-serif: "Times New Roman", Times, Georgia, serif;
  --pdsc-g-sans: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  width: 100%;
  max-width: 680px;
  margin: 24px auto 44px;
  padding: 0 8px;
  box-sizing: border-box;
  font-family: var(--pdsc-g-sans);
  color: var(--pdsc-g-ink);
}

.pdsc-giving-wrap *,
.pdsc-giving-wrap *::before,
.pdsc-giving-wrap *::after {
  box-sizing: border-box;
}

/* Neutralize WordPress / Contact Form 7 v6 wpautop & Blocksy spacing side-effects */
.pdsc-giving-card br:not(.pdsc-br) {
  display: none !important;
}

.pdsc-giving-card p:empty {
  display: none !important;
}

.pdsc-giving-card p::after {
  display: none !important;
  content: none !important;
}

/* Unwrap CF7 v6 <p> tags inside structural flex/grid rows */
.pdsc-giving-header > p:not(.pdsc-giving-subtitle),
.pdsc-commit-calc > p,
.pdsc-commit-left > p,
.pdsc-commit-right > p,
.pdsc-amount-wrap > p,
.pdsc-freq-wrap > p,
.pdsc-annual-wrap > p,
.pdsc-renewal-row > p,
.pdsc-renewal-wrap > p,
.pdsc-autotithe-check > p,
.pdsc-g-row > p,
.pdsc-g-input-wrap > p,
.pdsc-g-pay-radios > p,
.pdsc-g-sunday-wrap > p,
.pdsc-g-submit-row > p {
  display: contents !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Crisp Black-Bordered Printed Card Frame */
.pdsc-giving-card {
  width: 100%;
  background-color: #ffffff;
  border: 2.5px solid var(--pdsc-g-ink);
  border-radius: 2px;
  padding: 26px 34px 30px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
}

/* Header: Monochrome Logo + Title + Heart Flourish + Subtitle */
.pdsc-giving-header {
  text-align: center;
  margin-bottom: 12px;
}

.pdsc-giving-logo {
  display: block;
  width: auto !important;
  max-width: 295px !important;
  height: auto !important;
  margin: 0 auto 10px !important;
  filter: grayscale(100%) contrast(185%) brightness(0.76);
}

.pdsc-giving-title {
  margin: 0 0 6px !important;
  padding: 0 !important;
  font-family: var(--pdsc-g-serif) !important;
  font-weight: 700 !important;
  font-size: clamp(22px, 4.4vw, 29px) !important;
  line-height: 1.15 !important;
  letter-spacing: 0.04em;
  color: var(--pdsc-g-ink) !important;
  text-align: center;
}

/* Curved Tapered Flourish + Open Heart Divider (inline SVG data URI) */
.pdsc-heart-divider {
  width: 100%;
  max-width: 340px;
  height: 22px;
  margin: 4px auto 8px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 24'%3E%3Cpath d='M6 13 C52 17, 108 7, 152 13' fill='none' stroke='%23111111' stroke-width='2.1' stroke-linecap='round'/%3E%3Cpath d='M188 13 C232 7, 288 17, 334 13' fill='none' stroke='%23111111' stroke-width='2.1' stroke-linecap='round'/%3E%3Cpath d='M170 21 C162 15.5, 158 10.5, 160 6.8 C161.6 3.8, 166.5 3.6, 170 7.6 C173.5 3.6, 178.4 3.8, 180 6.8 C182 10.5, 178 15.5, 170 21 Z' fill='none' stroke='%23111111' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.pdsc-giving-subtitle {
  margin: 0 !important;
  font-family: var(--pdsc-g-sans);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(21px, 4vw, 26px);
  line-height: 1.2;
  color: var(--pdsc-g-ink);
  text-align: center;
}

/* Pledge Copy */
.pdsc-giving-pledge {
  text-align: center;
  margin-bottom: 16px;
}

.pdsc-giving-pledge p {
  margin: 0 0 8px !important;
  font-size: 14.5px;
  line-height: 1.42;
  color: var(--pdsc-g-ink);
}

.pdsc-pledge-italic {
  font-style: italic;
}

.pdsc-pledge-lead {
  font-weight: 500;
  margin-bottom: 0 !important;
}

/* Commitment Amount + Interval = Annual Total Line */
.pdsc-commit-calc {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 10px 10px;
  margin: 0 0 16px;
  padding: 10px 12px;
  background-color: var(--pdsc-g-soft);
  border: 1px solid #d9d9d9;
  border-radius: 3px;
}

.pdsc-commit-left,
.pdsc-commit-right {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}

.pdsc-dollar,
.pdsc-equals,
.pdsc-per-word,
.pdsc-annually-word {
  font-size: 15px;
  font-weight: 700;
  color: var(--pdsc-g-ink);
  white-space: nowrap;
}

.pdsc-amount-wrap {
  width: 88px;
}

.pdsc-annual-wrap {
  width: 104px;
}

/* Interval Radio Pills inside the Commitment Line */
.pdsc-freq-wrap .wpcf7-radio {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.wpcf7 .pdsc-giving-card .pdsc-freq-wrap .wpcf7-list-item {
  margin: 0 !important;
}

.wpcf7 .pdsc-giving-card .pdsc-freq-wrap label {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  margin: 0 !important;
  padding: 3px 9px;
  border: 1.5px solid var(--pdsc-g-ink);
  border-radius: 3px;
  background-color: #ffffff;
  font-size: 13px !important;
  font-weight: 700 !important;
  color: var(--pdsc-g-ink) !important;
  cursor: pointer;
  line-height: 1.25;
  transition: background-color 0.14s ease, color 0.14s ease;
}

.wpcf7 .pdsc-giving-card .pdsc-freq-wrap label:has(input:checked) {
  background-color: var(--pdsc-g-ink);
  color: #ffffff !important;
}

.wpcf7 .pdsc-giving-card .pdsc-freq-wrap input[type="radio"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 11px !important;
  height: 11px !important;
  min-height: 11px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1.5px solid currentColor !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  cursor: pointer;
}

.wpcf7 .pdsc-giving-card .pdsc-freq-wrap input[type="radio"]:checked {
  background-color: #ffffff !important;
  box-shadow: inset 0 0 0 2px var(--pdsc-g-ink) !important;
}

/* New / Renewal Centered Row */
.pdsc-renewal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  margin: 0 0 14px;
}

.pdsc-select-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--pdsc-g-ink);
}

.pdsc-renewal-wrap .wpcf7-radio,
.pdsc-g-sunday-wrap .wpcf7-checkbox {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.wpcf7 .pdsc-giving-card .pdsc-renewal-wrap .wpcf7-list-item,
.wpcf7 .pdsc-giving-card .pdsc-g-sunday-wrap .wpcf7-list-item,
.wpcf7 .pdsc-giving-card .pdsc-autotithe-check .wpcf7-list-item,
.wpcf7 .pdsc-giving-card .pdsc-g-pay-radios .wpcf7-list-item {
  margin: 0 !important;
}

.wpcf7 .pdsc-giving-card .pdsc-renewal-wrap label,
.wpcf7 .pdsc-giving-card .pdsc-g-sunday-wrap label {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: var(--pdsc-g-ink) !important;
  cursor: pointer;
}

/* Auto Tithe Continuation Italic Checkbox */
.pdsc-autotithe-check {
  text-align: center;
  margin: 0 0 22px;
}

.wpcf7 .pdsc-giving-card .pdsc-autotithe-check label {
  display: inline-flex !important;
  align-items: flex-start;
  justify-content: center;
  gap: 9px;
  margin: 0 !important;
  font-size: 14.5px !important;
  font-style: italic;
  font-weight: 600 !important;
  line-height: 1.38;
  color: var(--pdsc-g-ink) !important;
  cursor: pointer;
  text-align: left;
  max-width: 500px;
}

/* Unified Crisp Black Square Checkboxes & Radios */
.wpcf7 .pdsc-giving-card .pdsc-renewal-wrap input[type="radio"],
.wpcf7 .pdsc-giving-card .pdsc-g-pay-radios input[type="radio"],
.wpcf7 .pdsc-giving-card .pdsc-autotithe-check input[type="checkbox"],
.wpcf7 .pdsc-giving-card .pdsc-g-sunday-wrap input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  flex: 0 0 17px;
  width: 17px !important;
  height: 17px !important;
  min-height: 17px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  border: 1.8px solid var(--pdsc-g-ink) !important;
  border-radius: 2px !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.wpcf7 .pdsc-giving-card .pdsc-renewal-wrap input[type="radio"]:checked,
.wpcf7 .pdsc-giving-card .pdsc-g-pay-radios input[type="radio"]:checked,
.wpcf7 .pdsc-giving-card .pdsc-autotithe-check input[type="checkbox"]:checked,
.wpcf7 .pdsc-giving-card .pdsc-g-sunday-wrap input[type="checkbox"]:checked {
  background-color: var(--pdsc-g-ink) !important;
  border-color: var(--pdsc-g-ink) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' d='M3.2 8.4L6.5 11.7L12.8 4.6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 13px 13px !important;
}

.wpcf7 .pdsc-giving-card input[type="radio"]:focus-visible,
.wpcf7 .pdsc-giving-card input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--pdsc-g-ink) !important;
  outline-offset: 2px;
}

/* Fill-in-the-Blank Underline Fields */
.pdsc-g-fields {
  margin-bottom: 22px;
}

.pdsc-g-grid-name {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: 16px;
}

.pdsc-g-grid-city,
.pdsc-g-grid-city3 {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.7fr) minmax(0, 1fr);
  gap: 14px;
}

.pdsc-g-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 13px;
  min-width: 0;
}

.pdsc-g-row--sub {
  margin-top: -4px;
}

.pdsc-g-row--compact {
  margin-top: 8px;
  margin-bottom: 0;
}

.wpcf7 .pdsc-giving-card label.pdsc-g-label,
.pdsc-giving-card label.pdsc-g-label {
  display: inline-block !important;
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--pdsc-g-sans);
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: var(--pdsc-g-ink) !important;
  white-space: nowrap;
}

.wpcf7 .pdsc-giving-card label.pdsc-g-label--sub,
.pdsc-giving-card label.pdsc-g-label--sub {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--pdsc-g-muted) !important;
}

.pdsc-g-input-wrap {
  flex: 1 1 auto;
  min-width: 0;
}

.pdsc-g-input-wrap .wpcf7-form-control-wrap,
.pdsc-amount-wrap .wpcf7-form-control-wrap,
.pdsc-annual-wrap .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
  min-width: 0;
}

/* Override Blocksy & BoldGrid Input Defaults */
.wpcf7 .pdsc-giving-card input.pdsc-g-line,
.pdsc-giving-card input.pdsc-g-line {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 27px !important;
  margin: 0 !important;
  padding: 2px 6px 2px !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1.5px solid var(--pdsc-g-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--pdsc-g-sans) !important;
  font-size: 14.5px !important;
  line-height: 1.35 !important;
  color: var(--pdsc-g-ink) !important;
  transition: background-color 0.14s ease, border-bottom-width 0.14s ease;
}

.wpcf7 .pdsc-giving-card input.pdsc-g-line::placeholder,
.pdsc-giving-card input.pdsc-g-line::placeholder {
  color: #777777;
  font-size: 13px;
}

.wpcf7 .pdsc-giving-card input.pdsc-g-line:focus,
.pdsc-giving-card input.pdsc-g-line:focus {
  outline: none !important;
  border-bottom: 2px solid var(--pdsc-g-ink) !important;
  background-color: rgba(0, 0, 0, 0.04) !important;
}

.wpcf7 .pdsc-giving-card input.pdsc-g-num,
.wpcf7 .pdsc-giving-card input.pdsc-g-annual {
  text-align: center;
  font-weight: 700 !important;
  font-size: 15px !important;
}

.pdsc-g-section-head {
  margin: 16px 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--pdsc-g-ink);
}

/* PCI-Safe Auto Tithe & Giving Method Box (Crisp Monochrome) */
.pdsc-g-paybox {
  margin: 18px 0 24px;
  padding: 16px 18px;
  background-color: var(--pdsc-g-soft);
  border: 1.5px solid var(--pdsc-g-ink);
  border-radius: 3px;
}

.pdsc-g-paybox-title {
  margin: 0 0 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--pdsc-g-border);
  font-family: var(--pdsc-g-sans);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--pdsc-g-ink);
  text-align: center;
  text-transform: uppercase;
}

.pdsc-g-paybox-intro {
  margin: 0 0 12px !important;
  font-size: 13.5px;
  font-style: italic;
  line-height: 1.42;
  color: var(--pdsc-g-ink);
  text-align: center;
}

.pdsc-g-pay-radios .wpcf7-radio {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.wpcf7 .pdsc-giving-card .pdsc-g-pay-radios label {
  display: inline-flex !important;
  align-items: flex-start;
  gap: 9px;
  margin: 0 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.4;
  color: var(--pdsc-g-ink) !important;
  cursor: pointer;
}

.pdsc-g-sundays {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #bdbdbd;
}

.pdsc-g-sundays[hidden],
.pdsc-g-note-box[hidden] {
  display: none !important;
}

.pdsc-g-subhead {
  margin: 0 0 8px !important;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--pdsc-g-ink);
}

.pdsc-g-note-box {
  margin-top: 12px;
  padding: 11px 14px;
  background-color: #ffffff;
  border: 1px solid #b5b5b5;
  border-left: 3.5px solid var(--pdsc-g-ink);
  border-radius: 2px;
}

.pdsc-g-note {
  margin: 0 !important;
  font-size: 13px;
  line-height: 1.48;
  color: var(--pdsc-g-ink);
}

.pdsc-g-link {
  color: var(--pdsc-g-ink) !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Submit Button (Overrides Blocksy float: left) */
.pdsc-g-submit-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 6px 0 0;
  text-align: center;
}

.wpcf7 .pdsc-giving-card .pdsc-g-submit-btn,
.wpcf7 .pdsc-giving-card input.wpcf7-submit.pdsc-g-submit-btn,
.pdsc-giving-card .pdsc-g-submit-btn {
  float: none !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 260px;
  min-height: 46px !important;
  padding: 12px 28px !important;
  margin: 0 !important;
  background-color: var(--pdsc-g-ink) !important;
  color: #ffffff !important;
  border: 2px solid var(--pdsc-g-ink) !important;
  border-radius: 3px !important;
  font-family: var(--pdsc-g-sans) !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: none !important;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.wpcf7 .pdsc-giving-card .pdsc-g-submit-btn:hover,
.wpcf7 .pdsc-giving-card input.wpcf7-submit.pdsc-g-submit-btn:hover {
  background-color: #ffffff !important;
  color: var(--pdsc-g-ink) !important;
}

.wpcf7 .pdsc-giving-card .wpcf7-spinner {
  float: none !important;
  margin: 6px auto 0 !important;
}

/* Validation & Response Output */
.wpcf7 .pdsc-giving-card .wpcf7-not-valid-tip {
  color: #8b0000 !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 600;
  margin-top: 4px;
}

.wpcf7 .pdsc-giving-card .wpcf7-response-output {
  margin: 14px 0 0 !important;
  padding: 10px 14px !important;
  border-radius: 3px !important;
  font-size: 13.5px !important;
  font-style: normal !important;
  text-align: center;
}

.pdsc-g-card-footer {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #d5d5d5;
  text-align: center;
}

.pdsc-g-card-footer p {
  margin: 0 !important;
  font-size: 13px;
  line-height: 1.48;
  color: var(--pdsc-g-ink);
}

/* Mobile Responsive */
@media (max-width: 580px) {
  .pdsc-giving-wrap {
    padding: 0;
  }

  .pdsc-giving-card {
    padding: 18px 16px 22px;
  }

  .pdsc-giving-logo {
    max-width: 230px !important;
  }

  .pdsc-g-grid-name,
  .pdsc-g-grid-city,
  .pdsc-g-grid-city3 {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .pdsc-commit-calc {
    flex-direction: column;
    align-items: center;
    padding: 12px 10px;
  }

  .pdsc-g-row--compact {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .wpcf7 .pdsc-giving-card .pdsc-g-submit-btn,
  .pdsc-giving-card .pdsc-g-submit-btn {
    width: 100%;
    min-width: 0;
  }
}
