@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700&display=swap');

/* Donate page (webform donate_dedication), built from the client drafts:
   "Form first, then PayPal or Venmo", "For Her selected", "Honor a Caregiver selected". */
html:has(.cmf-hero) { scroll-behavior: smooth; }
body:has(.cmf-hero) { overflow-x: hidden; }
body:has(.cmf-hero) h1.page-header { display: none; }
body:has(.cmf-hero) .main-container + .footercontainer { margin-top: 0; }

/* One grid holds the body field's sections and the webform field:
   hero (full width) / story + form card (two columns) / other ways (full width) */
article .content:has(.cmf-hero) {
  display: grid;
  grid-template-columns:
    [full-start] minmax(15px, 1fr)
    [main-start] minmax(0, 600px)
    [story-end] 48px
    [form-start] minmax(0, 510px)
    [main-end] minmax(15px, 1fr)
    [full-end];
  width: 100vw;
  margin-left: calc(50% - 50vw);
  font-family: 'Source Sans 3', 'Lato', sans-serif;
  color: #2a2a2a;
}
article .content .field--name-body:has(.cmf-hero) { display: contents; }
article .content:has(.cmf-hero) h2,
article .content:has(.cmf-hero) h3,
article .content:has(.cmf-hero) h4 { font-family: inherit; letter-spacing: 0; color: #1b2f4e; text-transform: none; }

/* Hero */
.cmf-hero { grid-column: full-start / full-end; grid-row: 1; background: #1b3054; }
.cmf-hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: center;
  max-width: 1158px; margin: 0 auto; padding: 24px 15px;
}
.cmf-hero .cmf-eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: #f2a7bf; }
article .content .cmf-hero h2 { margin: 0 0 22px; font-size: 46px; line-height: 1.1; font-weight: 700; color: #fff; }
.cmf-hero p { margin: 0; }
article .cmf-hero a.cmf-btn-light {
  display: inline-block; padding: 14px 26px; border-radius: 4px; background: #fff; color: #1b3054;
  font-size: 17px; font-weight: 700; text-decoration: none;
}
.cmf-hero__photo {
  display: flex; align-items: center; justify-content: center; aspect-ratio: 508 / 245; overflow: hidden;
  border-radius: 4px; background: #4f79a8; color: #e8eef6; font-size: 14px; text-align: center;
}
/* Placeholder photo until the client supplies the stock image; crop the portrait shot to the faces */
article .content .cmf-hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; border: 0; }

/* Story column */
.cmf-story { grid-column: main-start / story-end; grid-row: 2; padding: 56px 0; }
article .content .cmf-story h2 { margin: 0 0 20px; font-size: 34px; line-height: 1.15; font-weight: 700; }
.cmf-story > p { margin: 0 0 18px; font-size: 18px; line-height: 1.6; }
article .content .cmf-story h3 { margin: 34px 0 14px; font-size: 23px; font-weight: 700; }
.cmf-fund { margin-bottom: 12px; padding: 18px 18px 16px; border: 1px solid #ece3c9; border-radius: 6px; background: #fff; }
.cmf-fund .cmf-fund__tag { margin: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #4e79a7; }
.cmf-fund .cmf-fund__tag--rose { color: #9b3a5c; }
article .content .cmf-fund h4 { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.cmf-fund p { margin: 0; font-size: 16px; }

/* Form card */
article .content:has(.cmf-hero) > .field--name-field-webform { grid-column: form-start / main-end; grid-row: 2; align-self: start; padding: 56px 0; margin: 0; }
.webform-submission-donate-dedication-form {
  padding: 26px 28px 22px; border-radius: 8px; background: #fff; box-shadow: 0 6px 24px rgba(27, 48, 84, .08);
  font-family: 'Source Sans 3', 'Lato', sans-serif; color: #2a2a2a;
}
.cmf-anchor { position: relative; top: -24px; }
.cmf-steps { display: flex; gap: 8px; }
.cmf-steps span { flex: 1; padding: 8px 6px; border-radius: 4px; background: #f6f1e6; color: #555; font-size: 13.5px; font-weight: 700; text-align: center; }
.cmf-steps span.is-active { background: #1b2f4e; color: #fff; }
.webform-submission-donate-dedication-form h2.cmf-form-title { margin: 22px 0 18px; font-family: inherit; font-size: 28px; font-weight: 700; letter-spacing: 0; color: #1b2f4e; }
.webform-submission-donate-dedication-form h3.cmf-sub { margin: 6px 0 10px; font-family: inherit; font-size: 16px; font-weight: 700; letter-spacing: 0; color: #2a2a2a; }
.webform-submission-donate-dedication-form .form-group { margin-bottom: 16px; }
.webform-submission-donate-dedication-form legend,
.webform-submission-donate-dedication-form label.control-label:not(.option) {
  width: auto; margin: 0 0 6px; padding: 0; border: 0; font-size: 15.5px; font-weight: 700; color: #2a2a2a;
}
.webform-submission-donate-dedication-form .form-required::after { display: none; }
.cmf-hint { display: block; margin-top: 2px; font-weight: 400; color: #777; font-size: 14px; }
.webform-submission-donate-dedication-form .form-control {
  height: 46px; padding: 10px 12px; border: 1px solid #c8cdd3; border-radius: 5px; box-shadow: none;
  font-family: inherit; font-size: 16px; color: #2a2a2a; background: #fff;
}
.webform-submission-donate-dedication-form textarea.form-control { height: auto; min-height: 90px; }
.webform-submission-donate-dedication-form .form-control::placeholder { color: #8a8a8a; }
.webform-submission-donate-dedication-form .form-control:focus { border-color: #1b2f4e; outline: 2px solid #1b2f4e; box-shadow: none; }

/* Gift choice cards */
.webform-submission-donate-dedication-form .cmf-choice-cards { margin-bottom: 22px; }
.webform-submission-donate-dedication-form .cmf-choice-cards legend { margin-bottom: 12px; }
.cmf-choice-cards .js-webform-radios { display: flex; flex-direction: column; gap: 12px; }
.cmf-choice-cards .radio { margin: 0; }
.cmf-choice-cards .radio label {
  display: block; position: relative; min-height: 0; padding: 14px 16px; cursor: pointer;
  border: 1.5px solid #c4cdd8; border-radius: 6px; background: #fff; color: #1b2f4e;
  font-size: 17px; font-weight: 700; line-height: 1.3;
}
.cmf-opt-desc { display: block; margin-top: 3px; font-size: 15px; font-weight: 400; line-height: 1.4; }
.cmf-choice-cards .radio label:has(input[value="for_her"]) { border-color: #e3b5c6; color: #9b3a5c; }
.cmf-choice-cards .radio label:has(input[value="caregiver"]) { border-color: #a9bfd9; }
.cmf-choice-cards .radio label:has(input[value="general"]:checked) { border-color: #1b2f4e; background: #1b2f4e; color: #fff; }
.cmf-choice-cards .radio label:has(input[value="for_her"]:checked) { border-color: #9b3a5c; background: #9b3a5c; color: #fff; }
.cmf-choice-cards .radio label:has(input[value="caregiver"]:checked) { border-color: #4e79a7; background: #4e79a7; color: #fff; }
.cmf-choice-cards .radio input[type=radio] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.cmf-choice-cards .radio label:has(input:focus-visible) { outline: 3px solid #1b2f4e; outline-offset: 2px; }

/* For Her / Honor a Caregiver panels */
.cmf-panel { margin: 0 0 22px; padding: 18px 18px 4px; border-radius: 6px; }
.cmf-panel--her { background: #f9e8ef; accent-color: #9b3a5c; }
.cmf-panel--cg { background: #eaf0f7; accent-color: #1b2f4e; }
.cmf-panel fieldset.radios--wrapper { margin-bottom: 16px; }
.cmf-panel .radio label.option,
.cmf-panel .checkbox label.option { font-size: 16px; font-weight: 400; color: #333; }
.cmf-panel .radio,
.cmf-panel .checkbox,
.cmf-consent .checkbox { margin-top: 4px; margin-bottom: 4px; }
.webform-submission-donate-dedication-form .webform-options-display-side-by-side { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.webform-submission-donate-dedication-form .webform-options-display-side-by-side > div { margin: 0; }
.webform-submission-donate-dedication-form input[type=checkbox] { accent-color: #1b2f4e; }

/* About you, consent, Venmo note */
.cmf-help { margin: 2px 0 18px; font-size: 14px; line-height: 1.45; color: #6b6b6b; }
.cmf-consent { margin: 0 0 22px; padding: 12px 16px 2px; border: 1px solid #ece3c9; border-radius: 6px; }
.webform-submission-donate-dedication-form .cmf-consent .checkbox label.option { font-weight: 700; color: #1b2f4e; font-size: 15.5px; }
.cmf-consent .cmf-help { margin: 0 0 10px; padding-left: 20px; }
.cmf-venmo-note { margin: 0 0 14px; padding: 12px 14px; border-radius: 6px; background: #f6f1e6; font-size: 15px; line-height: 1.45; }
.cmf-venmo-note strong { color: #1b2f4e; }

/* PayPal / Venmo */
.webform-submission-donate-dedication-form .webform-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.webform-submission-donate-dedication-form .cmf-pay-btn {
  width: 100%; height: 56px; margin: 0; border: 0; border-radius: 30px; box-shadow: none; text-shadow: none;
  font-family: inherit; font-size: 20px; font-weight: 700; font-style: normal;
}
.webform-submission-donate-dedication-form .cmf-paypal,
.webform-submission-donate-dedication-form .cmf-paypal:hover,
.webform-submission-donate-dedication-form .cmf-paypal:focus,
.webform-submission-donate-dedication-form .cmf-paypal:active { background: #f5c451; color: #1b2f4e; }
.webform-submission-donate-dedication-form .cmf-venmo,
.webform-submission-donate-dedication-form .cmf-venmo:hover,
.webform-submission-donate-dedication-form .cmf-venmo:focus,
.webform-submission-donate-dedication-form .cmf-venmo:active { background: #3d8bf2; color: #fff; }
.webform-submission-donate-dedication-form .cmf-pay-btn:focus-visible { outline: 3px solid #1b2f4e; outline-offset: 3px; }
.cmf-fineprint { margin: 14px 0 10px; font-size: 14px; line-height: 1.45; color: #666; text-align: center; }
.cmf-ein { margin: 0; font-size: 13.5px; color: #666; text-align: center; }
.cmf-ein::before {
  content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2.4'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Other ways to give */
.cmf-other { grid-column: full-start / full-end; grid-row: 3; background: #fff; border-top: 1px solid #ece3c9; }
.cmf-other__inner { max-width: 1158px; margin: 0 auto; padding: 44px 15px 28px; }
article .content .cmf-other h2 { margin: 0 0 24px; font-size: 32px; font-weight: 700; }
.cmf-ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.cmf-way { padding: 20px; border: 1px solid #ece3c9; border-radius: 6px; }
article .content .cmf-way h4 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.cmf-way p { margin: 0; font-size: 16px; line-height: 1.5; }
article .content:has(.cmf-hero) .cmf-story a,
article .content:has(.cmf-hero) .cmf-other a { color: #4e79a7; text-decoration: underline; }
.cmf-questions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; padding-top: 14px; border-top: 1px solid #ece3c9; }
.cmf-questions p { margin: 0; font-size: 15.5px; color: #444; }
article .content .cmf-questions img { width: 64px; height: auto; border: 0; }

@media (max-width: 991px) {
  article .content:has(.cmf-hero) {
    grid-template-columns: [full-start] 15px [main-start form-start] minmax(0, 1fr) [story-end main-end] 15px [full-end];
  }
  article .content:has(.cmf-hero) > .field--name-field-webform { grid-row: 3; padding: 0 0 40px; }
  .cmf-story { padding: 36px 0 28px; }
  .cmf-other { grid-row: 4; }
  .cmf-hero__inner { grid-template-columns: 1fr; padding: 28px 15px; }
  .cmf-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  article .content .cmf-hero h2 { font-size: 34px; }
  article .content .cmf-story h2 { font-size: 30px; }
  .webform-submission-donate-dedication-form { padding: 20px 16px 18px; }
  .cmf-steps span { font-size: 12px; padding: 7px 4px; }
  .cmf-ways { grid-template-columns: 1fr; }
  .cmf-questions { flex-direction: column; align-items: flex-start; }
}
