/**
 * Musical Chaos Foundation inner pages
 * About, donation campaigns, news, and contact page layouts.
 */

.inner-hero {
  position: relative;
  background-color: #fafafa;
  background-image: radial-gradient(circle, rgba(47, 47, 47, 0.07) 1px, transparent 1.4px);
  background-size: 22px 22px;
  padding-block: clamp(2.5rem, 6vw, 6.5rem) clamp(3rem, 7vw, 7rem);
}

.inner-hero--flush {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

/* Closes an inner page with the same gap above the footer that .inner-hero
   leaves, so every page ends on the same rhythm. Owns padding-bottom on its
   own because Bootstrap's py-* utilities are !important. */
.section-end {
  padding-bottom: clamp(3rem, 7vw, 7rem);
}

.page-title {
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--mcf-text);
  text-transform: capitalize;
}

.page-lead {
  font-size: 1.125rem;
  line-height: 1.67;
  color: var(--mcf-text);
  max-width: 82rem;
}

.page-lead p + p {
  margin-top: 1.15rem;
}

.about-video-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.about-video-frame img {
  width: 100%;
  height: auto;
  aspect-ratio: 1320 / 743;
  object-fit: cover;
  display: block;
}

.about-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.about-play-disc {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--mcf-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(108, 203, 207, 0.35);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.about-play-disc img {
  width: 36px;
  height: 36px;
  display: block;
}

.about-play:hover .about-play-disc,
.about-play:focus-visible .about-play-disc {
  background: var(--mcf-orange);
  transform: scale(1.06);
}

.section-kicker {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  text-transform: capitalize;
  color: var(--mcf-text);
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem 1.5rem;
  justify-items: center;
}

.team-card {
  width: 100%;
  max-width: 17.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s ease;
}

.team-card:focus-visible {
  outline: 2px solid var(--mcf-orange);
  outline-offset: 6px;
  border-radius: 8px;
}

.team-card-photo {
  position: relative;
  width: min(100%, 240px);
  aspect-ratio: 1;
  margin-inline: auto;
}

.team-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.25s ease;
}

.team-card-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 9;
  width: 64px;
  height: 64px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--mcf-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.82);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.team-card-badge img {
  width: 32px;
  height: 32px;
}

/* Card state owns name colors, overriding inline and ID colors saved by the editor. */
.team-card-name {
  margin: 1.1rem 0 0.45rem;
  /* font-size: clamp(1.25rem, 2.4vw, 1.875rem); */
  font-size: clamp(1.25rem, 2.4vw, 1.575rem);
  font-weight: 400;
  line-height: 1.25;
  color: #000 !important;
  transition: color 0.2s ease;
}

/* Rich-text names may contain spans with their own saved inline colors. */
.team-card-name * {
  color: inherit !important;
}

.team-card-role {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.35;
  color: #999;
}

.team-card:hover .team-card-badge,
.team-card:focus-visible .team-card-badge {
  opacity: 1;
  transform: scale(1);
}

.team-card:hover .team-card-name,
.team-card:focus-visible .team-card-name {
  color: var(--mcf-orange) !important;
}

.team-card:hover,
.team-card:focus-visible {
  transform: translateY(-6px);
}

.team-card:hover .team-card-photo > img,
.team-card:focus-visible .team-card-photo > img {
  transform: scale(1.04);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.campaign-grid,
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.campaign-card,
.news-card {
  background: #fff;
  border-radius: 20px;
  border: 2px solid transparent;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  display: flex;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.campaign-card {
  flex-direction: column;
  padding: 1.15rem;
  gap: 1rem;
  height: 100%;
}

.news-card {
  flex-direction: column;
  padding: 1.15rem;
  height: 100%;
}

.campaign-card:hover,
.campaign-card:focus-visible,
.news-card:hover,
.news-card:focus-visible {
  border-color: var(--mcf-orange);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.1);
  transform: translateY(-6px);
}

.campaign-card:hover .btn-details,
.campaign-card:focus-visible .btn-details,
.news-card:hover .btn-details,
.news-card:focus-visible .btn-details {
  background: var(--mcf-orange);
  color: #fff;
  filter: brightness(1.03);
}

.campaign-card-media,
.news-card-media {
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  background: #fafafa;
}

.campaign-card-media {
  width: 100%;
}

.campaign-card-media img,
.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.campaign-card-media img {
  aspect-ratio: 264 / 374;
}

.news-card-media img {
  aspect-ratio: 384 / 544;
}

.campaign-card-body,
.news-card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 1rem;
}

.campaign-card-title,
.news-card-title {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--mcf-text);
  margin: 0 0 1.15rem;
  transition: color 0.2s ease;
}

.campaign-card:hover .campaign-card-media img,
.campaign-card:focus-visible .campaign-card-media img,
.news-card:hover .news-card-media img,
.news-card:focus-visible .news-card-media img {
  transform: scale(1.035);
}

.campaign-card:hover .campaign-card-title,
.campaign-card:focus-visible .campaign-card-title,
.news-card:hover .news-card-title,
.news-card:focus-visible .news-card-title {
  color: var(--mcf-orange);
}

.news-card-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--mcf-text);
  margin-bottom: 0.9rem;
}

.news-card-meta img {
  width: 16px;
  height: 16px;
}

.progress-mcf {
  margin-top: auto;
}

.progress-mcf-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.35rem;
}

.progress-mcf-pct {
  font-size: 1rem;
  color: #000;
}

.progress-mcf-track {
  height: 6px;
  border-radius: 10px;
  background: #ededed;
  overflow: hidden;
}

.progress-mcf-fill {
  display: block;
  height: 100%;
  border-radius: 10px;
  background: var(--mcf-orange);
}

.campaign-stat {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.95rem;
  margin-top: 0.85rem;
}

.campaign-stat-label {
  color: var(--mcf-text);
  min-width: 3.4rem;
}

.campaign-stat-value {
  color: var(--mcf-text);
}

.campaign-card .btn-details,
.news-card .btn-details {
  margin-top: 1.35rem;
  max-width: none;
  width: 100%;
}

.news-card-title {
  margin-bottom: 1.6rem;
}

.news-card .btn-details {
  height: 45px;
  margin-top: auto;
}

.pager-mcf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  margin-top: 2.5rem;
  list-style: none;
  padding: 0;
}

.pager-mcf a,
.pager-mcf span {
  min-width: 36px;
  height: 36px;
  padding: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  color: #4e5969;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
}

.pager-mcf a:hover,
.pager-mcf a:focus-visible {
  color: var(--mcf-orange);
}

.pager-mcf .is-active {
  background: #fdf0de;
  color: var(--mcf-orange);
  border-radius: 100px;
}

.campaign-detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.campaign-detail-poster {
  border-radius: 20px;
  overflow: hidden;
}

.campaign-detail-poster img {
  width: 100%;
  height: auto;
  aspect-ratio: 490 / 704;
  object-fit: cover;
  display: block;
}

.campaign-detail-progress-label {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.campaign-detail-amounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.campaign-amount {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.campaign-amount--teal {
  color: var(--mcf-teal);
}

.campaign-amount--orange {
  color: var(--mcf-orange);
}

.campaign-amount-label {
  margin: 0.35rem 0 0;
  font-size: 1.25rem;
}

.campaign-desc-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: capitalize;
  margin: 2rem 0 1rem;
}

.btn-details--lg {
  max-width: 384px;
  height: 56px;
  font-size: 1.5rem;
  margin-top: 2.25rem;
}

/* Hover is the only state change on this button. :active is pinned back to the
   resting look to cancel three things: the shared .btn-details press scale, its
   brightness dim, and Bootstrap's .btn:active recolour (whose
   --bs-btn-active-bg is undefined on un-themed buttons, so it would blank the
   fill on a touch tap). :hover:active outranks it, so a mouse click keeps the
   hover colour steady. */
.btn.btn-details--lg:active {
  transform: none;
  filter: none;
  background: var(--mcf-teal);
  color: #fff;
}

.btn.btn-details--lg:hover,
.btn.btn-details--lg:hover:active {
  background: var(--mcf-orange);
  color: #fff;
  filter: brightness(1.03);
}

.btn-details--back {
  max-width: 188px;
  height: 56px;
  font-size: 1.5rem;
  text-transform: capitalize;
}

.news-article-wrap {
  max-width: 1131px;
  margin-inline: auto;
}

.news-article-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.touch-panel {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  padding: clamp(1rem, 3vw, 2.5rem);
}

.touch-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  padding: 1.5rem 1.5rem 1.75rem;
  height: 100%;
  min-height: 14rem;
}

.touch-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.touch-icon img {
  width: 22px;
  height: 22px;
}

.touch-icon--email {
  background: #fde8c4;
}

.touch-icon--phone {
  background: #d7f3f4;
}

.touch-icon--address {
  background: #ececec;
}

.touch-card-label {
  font-size: 1.25rem;
  font-weight: 500;
  text-transform: capitalize;
  margin-bottom: 0.35rem;
}

.touch-card a,
.touch-card p {
  color: #666;
  font-size: 0.9375rem;
  text-underline-offset: 0.15em;
}

.form-section-kicker {
  color: var(--mcf-teal);
  letter-spacing: 0.04em;
  font-size: 1rem;
  text-transform: uppercase;
}

.form-section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 600;
  text-transform: capitalize;
}

.contact-form-narrow {
  max-width: 820px;
  margin-inline: auto;
}

.btn-submit-mcf--teal {
  background: var(--mcf-teal);
}

.btn-submit-mcf--teal:hover {
  background: var(--mcf-orange);
}

@media (min-width: 576px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .campaign-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 412px;
  }

  .campaign-card-media {
    width: 264px;
    max-width: 42%;
  }

  .campaign-card-media img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 374px;
  }

  .campaign-card .btn-details {
    max-width: 284px;
    height: 40px;
  }
}

@media (min-width: 768px) {
  .campaign-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

@media (min-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem 1.25rem;
  }

  .campaign-detail {
    grid-template-columns: minmax(0, 1fr) 490px;
    gap: 3.5rem;
  }
}
@media (min-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem 1.5rem;
  }
}
@media (min-width: 1100px) {
  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-card-badge,
  .about-play-disc,
  .campaign-card,
  .news-card,
  .btn-details {
    transition: none;
  }
}

/* ==========================================================================
   Application & donation forms
   Figma: 1227:1387 (Ambassador), 1227:1557 (Teaching Assistant),
          1227:1747 (Donate), 1227:1897 (Campaign form)
   Shared by join-ambassador, join-teaching-assistant, donate and
   donation-campaign-form.
   ========================================================================== */

/* The Figma frames run the dotted hero band behind only the first 600px, so it
   stops partway down the form panel rather than covering the whole page.
   Pattern values match .inner-hero. */
.form-page {
  position: relative;
  padding-block: clamp(2.5rem, 6vw, 6.5rem) clamp(3rem, 7vw, 7rem);
}

.form-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 600px;
  background-color: #fafafa;
  background-image: radial-gradient(circle, rgba(47, 47, 47, 0.07) 1px, transparent 1.4px);
  background-size: 22px 22px;
  pointer-events: none;
}

.form-panel {
  --form-panel-bg: #fdf5e9;
  position: relative;
  background: var(--form-panel-bg);
  border-radius: 20px;
  padding: clamp(1.5rem, 5.2vw, 6.25rem);
}

.form-panel--teal {
  --form-panel-bg: #e4f1f2;
}

/* The campaign form sits straight on white with the poster beside it. */
.form-panel--plain {
  --form-panel-bg: transparent;
  padding: 0;
}

.form-intro {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--mcf-text);
  margin: 0 0 clamp(1.75rem, 4vw, 2.75rem);
}

.mcf-form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--mcf-text);
  text-transform: capitalize;
  margin: 0 0 1.5rem;
}

.form-question {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--mcf-text);
  margin: 0 0 1rem;
}

.form-note {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--mcf-text);
  margin: 0 0 1rem;
}

.form-block {
  margin-top: clamp(2rem, 4.5vw, 3.5rem);
}

.mcf-field-label {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  color: var(--mcf-text);
  margin-bottom: 0.6rem;
}

/* ---------- Fields ---------- */
.mcf-field {
  width: 100%;
  height: 56px;
  padding: 0 1.125rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: #fff;
  font-size: 1rem;
  color: var(--mcf-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea.mcf-field {
  height: auto;
  min-height: 84px;
  padding: 0.9rem 1.125rem;
  line-height: 1.5;
  resize: vertical;
}

.mcf-field::placeholder {
  color: #999;
}

.mcf-field:focus {
  outline: none;
  border-color: var(--mcf-teal);
  box-shadow: 0 0 0 0.2rem rgba(108, 203, 207, 0.25);
}

.form-panel--teal .mcf-field:focus {
  border-color: var(--mcf-orange);
  box-shadow: 0 0 0 0.2rem rgba(250, 176, 68, 0.25);
}

/* ---------- Checkboxes and radios ---------- */
.form-check-mcf {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.form-check-mcf .form-check-input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0.28rem 0 0;
  float: none;
  background-color: #fff;
  border: 1px solid var(--mcf-orange);
  cursor: pointer;
}

.form-check-mcf .form-check-input[type="checkbox"] {
  border-radius: 5px;
}

.form-check-mcf .form-check-input:checked {
  background-color: var(--mcf-orange);
  border-color: var(--mcf-orange);
}

.form-check-mcf .form-check-input:focus {
  border-color: var(--mcf-orange);
  box-shadow: 0 0 0 0.2rem rgba(250, 176, 68, 0.3);
}

.form-check-mcf .form-check-label {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--mcf-text);
  cursor: pointer;
}

.form-check-mcf .form-check-label--plain {
  font-weight: 400;
  text-transform: capitalize;
}

/* The teal panel flips the control accent to match its Submit button. */
.form-panel--teal .form-check-mcf .form-check-input {
  border-color: var(--mcf-teal);
}

.form-panel--teal .form-check-mcf .form-check-input:checked {
  background-color: var(--mcf-teal);
  border-color: var(--mcf-teal);
}

.form-panel--teal .form-check-mcf .form-check-input:focus {
  border-color: var(--mcf-teal);
  box-shadow: 0 0 0 0.2rem rgba(108, 203, 207, 0.3);
}

/* Consent rows get their own line and roomier spacing. */
.form-consent {
  display: grid;
  gap: 1.35rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

/* ---------- Payment ---------- */
.payment-note {
  border: 1px dashed rgba(0, 0, 0, 0.35);
  border-radius: 20px;
  background: #fff;
  padding: 1.25rem 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--mcf-text);
}
@media (min-width: 576px) {
  .payment-note {
    padding: 1.25rem 1.75rem;
  }
}
.payment-note img{
  max-width: 100%;
  height: auto;
}
.payment-note[hidden] {
  display: none;
}

.payment-note__row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.payment-note__cards {
  height: 20px;
  width: auto;
}

/* ---------- Donation amounts ---------- */
.donation-amounts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.donation-amount {
  height: 56px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: #fff;
  font-size: 1.125rem;
  color: var(--mcf-text);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.donation-amount:hover {
  border-color: var(--mcf-orange);
}

.donation-amount.is-selected {
  background: var(--mcf-orange);
  border-color: var(--mcf-orange);
  color: #fff;
}

.donation-custom-label {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--mcf-text);
  text-transform: capitalize;
  margin-bottom: 0.6rem;
}

/* ---------- Upload ---------- */
.upload-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 56px;
  padding: 0 1.25rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: #fff;
  font-size: 1rem;
  font-weight: 500;
  color: var(--mcf-text);
  text-transform: capitalize;
}

.upload-btn:hover {
  border-color: var(--mcf-orange);
}

.upload-remove {
  height: 56px;
  padding: 0 1.4rem;
  border: none;
  border-radius: 10px;
  background: var(--mcf-orange);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.upload-remove--teal {
  background: var(--mcf-teal);
}

.upload-name {
  font-size: 0.9375rem;
  color: #666;
  word-break: break-all;
}

/* ---------- Captcha placeholder ----------
   Static stand-in for the Cloudflare widget in the designs. Replace with the
   real Turnstile embed once a site key is available. */
.captcha-stub {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 276px;
  height: 66px;
  padding: 0 0.9rem;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  background: #fafafa;
  font-size: 0.875rem;
  color: #222;
}

.captcha-stub__tick {
  flex: 0 0 22px;
}

.captcha-stub__brand {
  margin-left: auto;
  font-size: 0.5rem;
  line-height: 1.25;
  text-align: right;
  color: #666;
  letter-spacing: 0.04em;
}

/* ---------- Submit row ---------- */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: clamp(2rem, 4vw, 3.25rem);
}

.btn-form-submit {
  min-width: 300px;
  height: 56px;
  padding: 0 2rem;
  border: none;
  border-radius: 100px;
  background: var(--mcf-orange);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: capitalize;
  transition: filter 0.2s ease;
}

/* The two application forms hover to each other's accent, matching how
   .btn-submit-mcf behaves elsewhere on the site. */
.btn-form-submit:hover,
.btn-form-submit:focus-visible {
  background: var(--mcf-teal);
  filter: brightness(1.04);
}

.btn-form-submit--teal {
  background: var(--mcf-teal);
}

.btn-form-submit--teal:hover,
.btn-form-submit--teal:focus-visible {
  background: var(--mcf-orange);
}

/* "Donate now" uses a squarer pill and larger type in the Donate frame. */
.btn-form-submit--donate {
  border-radius: 30px;
  font-size: 1.5rem;
}

/* ---------- Campaign form: poster beside the fields ---------- */
.campaign-form-poster {
  border-radius: 20px;
  overflow: hidden;
  background: #fafafa;
}

.campaign-form-poster img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 576px) {
  .donation-amounts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .donation-amounts--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Payment methods are a single choice but the designs draw them as squares, so
   they stay radios (correct semantics) with the checkbox shape. */
.form-check-mcf .form-check-input--square {
  border-radius: 5px;
}

/* .mcf-field is not Bootstrap's .form-control, so it needs its own
   invalid state for the .was-validated pass. */
.was-validated .mcf-field:invalid,
.was-validated .form-check-mcf .form-check-input:invalid {
  border-color: #d9534f;
}

.was-validated .mcf-field:invalid:focus {
  box-shadow: 0 0 0 0.2rem rgba(217, 83, 79, 0.25);
}

/* Statement bullets under "Personal Information Collection Statement". */
.form-statement {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--mcf-text);
}

@media (max-width: 575.98px) {
  .btn-form-submit {
    min-width: 100%;
  }

  .form-actions {
    justify-content: flex-start;
  }
}

/* The code-of-conduct policy URL is a single unbreakable token and pushed the
   consent row past the viewport on narrow screens. */
.form-check-mcf .form-check-label a {
  overflow-wrap: anywhere;
}

/* Links inside a panel's checkbox labels are body text, not Bootstrap blue. */
.form-panel .form-check-mcf .form-check-label a {
  color: var(--mcf-text);
}

.form-panel .form-check-mcf .form-check-label a:hover,
.form-panel .form-check-mcf .form-check-label a:focus-visible {
  color: var(--mcf-orange);
}

.form-panel--teal .form-check-mcf .form-check-label a:hover,
.form-panel--teal .form-check-mcf .form-check-label a:focus-visible {
  color: var(--mcf-teal);
}
