/*
  !! DEVELOPER NOTE
  This file contains all styles for all pages.

  - Section #1 contains generic styles that are relevant to all pages, like
    typography, header, footer, etc.
  - Section #2 contains page-specific styles that are relevant to specific
    pages, like the donate page.

  This is because the same template is used by all pages, and EN does not
  allow per-instance loading of CSS files. We could duplicate the main template
  to resolve this, though this would make maintenance more difficult.
*/


/***************************************************************************
  SECTION #1: GENERIC STYLES
  Styles that are relevant to all pages - e.g. typography, header, footer, etc.
**************************************************************************** */

.wwfi-hidden {
  display: none !important; 
}

/* -------------------------------------------------------------------------
    Variables
---------------------------------------------------------------------------- */

:root {
  --color-white: #ffffff;
  --color-grey: #c7c7c7;
  --color-grey-dark: #808080;
  --color-grey-light: #FAFAFA;
  --color-border: #010101;

  --color-black: #111111;
  --color-black-hover: color-mix(in srgb, var(--color-black) 70%, var(--color-white));

  --color-primary: #f5d200;
  --color-primary-hover: color-mix(in srgb, var(--color-primary) 60%, var(--color-white));

  --color-secondary: #a0396e;
  --color-secondary-hover: color-mix(in srgb, var(--color-secondary) 70%, var(--color-white));

  --font-wwf: "WWF", Arial, Helvetica, sans-serif;
  --font-open-sans: "Open Sans", Arial, Helvetica, sans-serif;

  --component-width: 1280px;
  --content-width: 800px;

  --size-h1: 5.25rem;
  --size-h2: 3rem;
  --size-h3: 2.5rem;
  --size-h4: 2rem;
  --size-h5: 1.5rem;
  --size-h6: 1.25rem;
  --size-p: 1.1rem;
}

/* Font Families */
@font-face {
  font-family: "Open Sans";
  src: url(https://fonts.gstatic.com/s/opensans/v40/mem8YaGs126MiZpBA-UFWJ0bbck.woff2) format('woff2');
  font-display: swap;
}

@font-face {
  font-family: "WWF";
  src: url("https://aaf1a18515da0e792f78-c27fdabe952dfc357fe25ebf5c8897ee.ssl.cf5.rackcdn.com/2451/WWF.woff2?v=1755614290000") format("woff2");
  font-display: swap;
}


/* -------------------------------------------------------------------------
    Reset
---------------------------------------------------------------------------- */

.wwfi img,
.wwfi picture,
.wwfi video,
.wwfi canvas,
.wwfi svg {
  display: block;
  max-width: 100%;
}

.wwfi input,
.wwfi button,
.wwfi textarea,
.wwfi select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

.wwfi ul,
.wwfi ol {
  list-style: none;
}

/* -------------------------------------------------------------------------
    Typography
---------------------------------------------------------------------------- */

.wwfi * {
  font-family: var(--font-open-sans);
  font-weight: 400;
  color: var(--color-black);
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.wwfi strong,
.wwfi b {
  font-weight: 600;
}


.wwfi a {
  color: var(--color-secondary);

  &:hover,
  &:focus,
  &:active {
    color: var(--color-black);
  }
}

.wwfi p {
  line-height: 1.6;
}
@media (min-width: 1025px) {
  .wwfi p {
    font-size: var(--size-p);
  }
}

.wwfi p + p {
  margin-top: 1.2rem;
}


.wwfi h1,
.wwfi h2,
.wwfi h3,
.wwfi h4,
.wwfi h5 {
  color: var(--color-black);
  letter-spacing: 1px;
}

.wwfi h1 {
  font-family: var(--font-wwf);
  text-transform: uppercase;
  font-size: var(--size-h1);
}
.wwfi h2 {
  font-family: var(--font-wwf);
  text-transform: uppercase;
  font-size: var(--size-h2);
}
.wwfi h3 {
  font-family: var(--font-wwf);
  font-size: var(--size-h3);
}
.wwfi h4 {
  font-family: var(--font-wwf);
  font-size: var(--size-h4);
}
.wwfi h5 {
  font-family: var(--font-open-sans);
  font-size: var(--size-h5);
}

.highlight {
  border-bottom: 3px solid var(--color-primary);
}

/* -------------------------------------------------------------------------
    Elements
---------------------------------------------------------------------------- */

/* --------------------------
    Buttons
-------------------------- */


.wwfi a.button {
  text-decoration: none !important;
}

.wwfi .en__submit button,
.wwfi .en__submit button span,
.wwfi a.button {
  font-family: var(--font-wwf); /* span includes the .amount-total on step #3 */
}

.wwfi .en__submit button,
.wwfi a.button {
  background: var(--color-primary);
  color: var(--color-black);
  padding: 0.75rem 2rem;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  font-size: var(--size-h5);
  width: 100%;
  transition: background-color 0.2s ease;
}
.wwfi .en__submit button:hover,
.wwfi .en__submit button:focus,
.wwfi .en__submit button:active,
.wwfi a.button:hover,
.wwfi a.button:focus,
.wwfi a.button:active{
  background-color: var(--color-primary-hover);
}


/* -------------------------------------------------------------------------
    Main scaffolding
---------------------------------------------------------------------------- */

html.wwfi,
body.wwfi {
  height: 100%;
  line-height: 1.3;
  background: var(--color-white);
}

.wwfi main {
  color: var(--color-black);
}

/* --------------------------
    Site Header
-------------------------- */

.wwfi .site-header {
  background: var(--color-white);
  border-bottom: 0.2rem solid var(--color-border);
  padding: 1rem 0;
  position: relative;
}

.wwfi .site-header__container {
  max-width: var(--component-width);
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wwfi .site-header__logo {
  display: flex;
  align-items: center;
}

.wwfi .site-header__logo-link span {
  color: var(--color-black);
  font-family: var(--font-wwf);
  letter-spacing: 1px;
  font-size: var(--size-p);
}
@media (min-width: 1025px) {
  .wwfi .site-header__logo-link span {
    font-size: var(--size-h6);
  }
}
.wwfi .site-header__logo-link {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.wwfi .site-header__logo-link:hover span,
.wwfi .site-header__logo-link:focus span,
.wwfi .site-header__logo-link:active span {
  color: var(--color-secondary);
}

.wwfi .site-header__logo-image {
  height: auto;
  border-radius: 4px;
  max-width: 40px;
}
@media (min-width: 1025px) {
  .wwfi .site-header__logo-image {
    max-width: 50px;
  }
}


/* --------------------------
    Site Footer
-------------------------- */

.wwfi .site-footer {
  padding: 4rem 0 2rem;
  margin-top: 3rem;
}
@media (min-width: 1025px) {
  .wwfi .site-footer {
    margin-top: 6rem;
  }
}

.wwfi .site-footer__container {
  max-width: var(--component-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.wwfi .site-footer__brand {
  text-align: center;
  margin-bottom: 2rem;
}
@media (min-width: 1025px) {
  .wwfi .site-footer__brand {
    margin-bottom: 4rem;
  }
}

.wwfi .site-footer__logo {
  width: 60px;
  height: auto;
  margin-bottom: 2rem;
  background-color: var(--color-border);
  display: inline-block;
}

.wwfi .site-footer__tagline {
  font-style: italic;
  font-size: var(--size-p);
  color: var(--color-black);
  margin: 0;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.4;
}

.wwfi .site-footer__bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

.wwfi .site-footer__bottom-links {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  text-align: center;
  justify-content: center;
  margin-bottom: 2rem;
  list-style: none;
  padding: 0;
}

.wwfi .site-footer__bottom-link {
  color: var(--color-black);
  font-size: 0.9rem;
}

.wwfi .site-footer__bottom-link:hover,
.wwfi .site-footer__bottom-link:focus,
.wwfi .site-footer__bottom-link:active{
  color: var(--color-black-hover);
}

.wwfi .site-footer__copyright {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-black);
  line-height: 1.4;
  margin: 0;
}

/* Desktop layout */
@media (min-width: 1025px) {
  .wwfi .site-footer__bottom-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    text-align: left;
  }
}

/* -------------------------------------------------------------------------
    Components
---------------------------------------------------------------------------- */

/* -----------------------
    Error List Component
-------------------------- */

.wwfi .en__errorList .en__error {
  display: block;
  width: var(--content-width);
  padding: 0.5rem 0.75rem;
  background-color: var(--color-secondary);
  color: var(--color-white);
  margin: 0.75rem auto 0 auto;
}

/* -----------------------
    Hero Component
-------------------------- */

.wwfi .hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: var(--color-black);
  min-height: 500px;
  position: relative;
  padding: 4rem 1rem;
}

@media (min-width: 1025px) {
  .wwfi .hero {
    min-height: 720px;
  }
}

.wwfi .hero__container {
  max-width: var(--component-width);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.wwfi .hero__container .hero__content {
  margin: 0 auto;
}
@media (min-width: 1025px) {
  .wwfi .hero__container .hero__content {
    max-width: 50%;
    float: left;
  }
}

.wwfi .hero__container .hero__content .hero__title {
  color: var(--color-white);
  font-size: var(--size-h2);
  text-align: left;
  margin: 0;
  line-height: 1.2;
  font-family: var(--font-wwf);
  background: var(--color-black);
  display: inline;
  padding: 0 1rem;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
@media (min-width: 1025px) {
  .wwfi .hero__container .hero__content .hero__title {
    font-size: var(--size-h1);
  }
}

/* -----------------------
    Accordion Component
-------------------------- */

.wwfi .editable-accordion {
  max-width: var(--component-width);
  margin: 0 auto;
  overflow: hidden;
  padding: 0 1rem;
}

.wwfi .editable-accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem;
  text-align: left;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-top: 1px solid var(--color-grey);

  &:nth-last-child(2) {
    border-bottom: 1px solid var(--color-grey);

    &.is-open {
      border-bottom: none;
    }
  }
}

.wwfi .editable-accordion-trigger:hover,
.wwfi .editable-accordion-trigger:focus {
  color: var(--color-secondary-hover) !important;
  background-color: var(--color-grey-light) !important;
}


.wwfi .editable-accordion-trigger p {
  font-size: var(--size-h4);
  font-family: var(--font-wwf);
  color: var(--color-black);
}

.wwfi .editable-accordion-trigger::after {
  content: "";
  width: 0.6em;
  height: 0.6em;
  border-right: 3px solid var(--color-black);
  border-bottom: 3px solid var(--color-black);
  transform: rotate(45deg);
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
}

.wwfi .editable-accordion-trigger.is-open::after {
  transform: rotate(225deg);
}

.wwfi .editable-accordion-content {
  padding: 1rem;
  color: var(--color-black);
  background: #fff;

  &:last-of-type {
    border-bottom: 1px solid var(--color-grey);
  }
}

/* --------------------------
    Heading Block Component
-------------------------- */

.wwfi .editable-heading-block {
  text-align: center;
  margin: 3rem auto 3rem auto;
  padding: 0 1rem;
}
@media (min-width: 1025px) {
  .wwfi .editable-heading-block {
    margin: 6rem auto 3rem auto;
  }
}

.wwfi .editable-heading-block h2 {
  margin: 0;
  position: relative;
  display: inline-block;
}

.wwfi .editable-heading-block h2::after {
  content: '';
  width: 60px;
  height: 4px;
  background-color: var(--color-primary);
  margin: 1rem auto 0;
  display: block;
}

/* --------------------------
    Centered Text Block Component
-------------------------- */

.wwfi .centered-text-block__content,
.wwfi .editable-centered-text-block {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* --------------------------
    Text with Image Component
-------------------------- */

.wwfi .text-with-image {
  max-width: var(--component-width);
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

.wwfi .text-with-image__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.wwfi .text-with-image__image-wrapper {
  flex: 1;
  background-color: var(--color-border);
  aspect-ratio: 4/3;
}

.wwfi .text-with-image__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wwfi .text-with-image__content {
  flex: 1;
}

.wwfi .text-with-image__title {
  font-size: 2rem;
  margin: 0 0 1.5rem;
  color: var(--color-black);
}

.wwfi .text-with-image__text {
  line-height: 1.6;
  color: var(--color-black);
  margin: 0 0 2rem;
}

.wwfi .text-with-image__button {
  font-family: var(--font-wwf);
  font-size: var(--size-h5);
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 0.75rem 2rem;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.wwfi .text-with-image__button:hover,
.wwfi .text-with-image__button:focus,
.wwfi .text-with-image__button:active{
  color: var(--color-white);
  background-color: var(--color-black-hover);
}

/* Modifier for reversed layout (image on right) */
.wwfi .text-with-image--reverse .text-with-image__container {
  flex-direction: column;
}

/* Tablet and Desktop layout */
@media (min-width: 640px) {
  .wwfi .text-with-image__container {
    flex-direction: row;
    gap: 3rem;
  }

  .wwfi .text-with-image--reverse .text-with-image__container {
    flex-direction: row-reverse;
  }

  .wwfi .text-with-image__title {
    font-size: 2.5rem;
  }
}

/* --------------------------
    Editable Text with Images Component
-------------------------- */

.wwfi .editable-text-with-images {
  max-width: var(--component-width);
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

.wwfi .editable-text-with-images.en__component--advrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.wwfi .editable-text-with-images .en__component--advcolumn {
  flex: 1 !important;
  flex-grow: 1 !important;
  flex-shrink: 1 !important;
  width: 100%;
}

.wwfi .editable-text-with-images .en__component--advcolumn:has(.en__component--imageblock) {
  background-color: var(--color-border);
  aspect-ratio: 4/3;
  order: -1; /* Mobile: ensure image column stacks before text */
}

.wwfi .editable-text-with-images .en__component--imageblock {
  width: 100%;
  height: 100%;
}

.wwfi .editable-text-with-images .pageImage {
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.wwfi .editable-text-with-images .en__component--advcolumn:not(:has(.en__component--imageblock)) {
  flex: 1;
}

.wwfi .editable-text-with-images-subheading h3 {
  margin: 0 0 1.5rem;
}

.wwfi .editable-text-with-images-text p {
  line-height: 1.6;
  color: var(--color-black);
  margin: 0 0 2rem;
  font-size: var(--size-p);
}

.wwfi .editable-text-with-images-link {
  margin: 0;
}

.wwfi .editable-text-with-images-link p {
  margin: 0;
}

.wwfi .editable-text-with-images-link a {
  font-family: var(--font-wwf);
  font-size: var(--size-h5);
  background-color: var(--color-black);
  color: var(--color-white);
  padding: 0.75rem 2rem;
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
  display: inline-block;
}

.wwfi .editable-text-with-images-link a:hover,
.wwfi .editable-text-with-images-link a:focus,
.wwfi .editable-text-with-images-link a:active{
  color: var(--color-white);
  background-color: var(--color-black-hover);
}

/* Tablet and Desktop layout */
@media (min-width: 640px) {
  .wwfi .editable-text-with-images.en__component--advrow {
    flex-direction: row;
    gap: 3rem;
  }

  /* Reset order on tablet/desktop so original column order is preserved */
  .wwfi .editable-text-with-images .en__component--advcolumn:has(.en__component--imageblock) {
    order: 0;
  }
}

/* --------------------------
    Sticky Donate Bar
-------------------------- */

.wwfi .sticky-donate-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  z-index: 2000;
  background: var(--color-black);
  padding: 0.75rem 0;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.wwfi .sticky-donate-bar[hidden] {
  display: block;
  transform: translateY(-100%);
}

.wwfi .sticky-donate-bar.is-visible {
  transform: translateY(0);
}

.wwfi .sticky-donate-bar__container {
  width: 100%;
  max-width: var(--component-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 1rem;
}

.wwfi .sticky-donate-bar__text {
  font-size: var(--size-h5);
  color: var(--color-white);
  margin: 0;
  font-family: var(--font-wwf);
  text-transform: uppercase;
}

.wwfi .sticky-donate-bar__button {
  background: var(--color-primary);
  color: var(--color-black);
  border: none;
  border-radius: 4px;
  padding: 0.75rem 2rem;
  font-size: var(--size-p);
  cursor: pointer;
  transition: background 0.2s;
  font-family: var(--font-wwf);
  text-transform: uppercase;
  letter-spacing: 1px;
  width: fit-content;
  text-wrap-mode: nowrap;
}

.wwfi .sticky-donate-bar__button:hover,
.wwfi .sticky-donate-bar__button:focus,
.wwfi .sticky-donate-bar__button:active{
  background: var(--color-primary-hover);
}

@media (min-width: 640px) {
  .wwfi .sticky-donate-bar__text {
    display: block;
    font-size: var(--size-h4);
  }

  .wwfi .sticky-donate-bar__button {
    width: fit-content;
  }
}


/***************************************************************************
  SECTION #2: PAGE-SPECIFIC STYLES
  Styles that are relevant to specific pages - e.g. the donate page.
**************************************************************************** */

/* -------------------------------------------------------------------------
    Page: Donate Page - step #1 (landing)
---------------------------------------------------------------------------- */

/* --------------------------
    Amount and Frequency
-------------------------- */

.wwfi .amount-and-frequency {
  max-width: 100%;
  padding: 1.5rem;
  background-color: var(--color-black);
  color: var(--color-white);
  margin: 0 auto;
}

/* Desktop styles */
@media (min-width: 1025px) {
  .wwfi .amount-and-frequency.en__component {
    max-width: 460px;
    position: absolute;
    top: 4rem;
    right: max(calc((100vw - var(--component-width)) / 2), 16px);
  }
}


.wwfi .amount-and-frequency .en__field__label,
.wwfi .amount-and-frequency .en__field__label--item,
.wwfi .amount-and-frequency .en__field__input--select {
  color: var(--color-white);
  width: unset;
  min-width: unset;
  display: inline-block;
  padding-bottom: 6px;
}

.wwfi .amount-and-frequency .en__field__item {
  padding: 0;
}

.wwfi .amount-and-frequency .en__field__label--item {
  text-align: center;
}

.wwfi .amount-and-frequency .en__field__label:not(.en__field__label--item) {
  font-family: var(--font-wwf);
  letter-spacing: 1px;
  font-size: var(--size-h5);
}

.wwfi .amount-and-frequency .en__field__error {
  color: var(--color-primary);
}

.wwfi .amount-and-frequency .en__field--recurrpay .en__field__element--radio,
.wwfi .amount-and-frequency .en__field--donationAmt .en__field__element--radio {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 6px;
}

.wwfi .amount-and-frequency .en__field--recurrpay .en__field__element--radio > .en__field__item,
.wwfi .amount-and-frequency .en__field--donationAmt .en__field__element--radio > .en__field__item {
  flex: 0 0 calc(50% - 0.25rem); /* 0.5rem is the gap */
}

.wwfi .amount-and-frequency .en__field--donationAmt .en__field__element--radio > .en__field__item.en__field__item--other {
  flex: 0 0 100%;
}

.wwfi .amount-and-frequency .en__field__input--other {
  width: 100%;
  color: var(--color-white);
  border: 2px solid var(--color-white);
  padding: 0.75rem 1rem;
  margin: 0;
  cursor: auto;
}
.wwfi .amount-and-frequency .en__field__input--other:hover,
.wwfi .amount-and-frequency .en__field__input--other:focus,
.wwfi .amount-and-frequency .en__field__input--other:active {
  background-color: var(--color-black-hover);
}

.wwfi .amount-and-frequency .en__field--recurrpay .en__field__input--radio,
.wwfi .amount-and-frequency .en__field--donationAmt .en__field__input--radio {
  position: absolute;
  z-index: -1;
}

.wwfi .amount-and-frequency .en__field--recurrpay .en__field__label--item,
.wwfi .amount-and-frequency .en__field--donationAmt .en__field__label--item {
  width: 100%;
  border: 2px solid var(--color-white);
  padding: 0.75rem 1rem;
  margin-right: 1.2rem;
  cursor: pointer;
}
.wwfi .amount-and-frequency .en__field--recurrpay .en__field__label--item:hover,
.wwfi .amount-and-frequency .en__field--recurrpay .en__field__label--item:focus,
.wwfi .amount-and-frequency .en__field--recurrpay .en__field__label--item:active,
.wwfi .amount-and-frequency .en__field--donationAmt .en__field__label--item:hover,
.wwfi .amount-and-frequency .en__field--donationAmt .en__field__label--item:focus,
.wwfi .amount-and-frequency .en__field--donationAmt .en__field__label--item:active {
  background-color: var(--color-black-hover);
}

.wwfi .amount-and-frequency .en__field--recurrpay .en__field__input--radio:checked + .en__field__label--item,
.wwfi .amount-and-frequency .en__field--donationAmt .en__field__input--radio:checked + .en__field__label--item {
  border-color: var(--color-white);
  background: var(--color-white);
  color: var(--color-black);
}

.wwfi .amount-and-frequency .en__field__element--select {
  vertical-align: middle;
  min-width: unset;
  margin-left: 10px;
  padding-top: 6px;
}

.wwfi .amount-and-frequency .en__field--paycurrency {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.wwfi .amount-and-frequency .en__field--paycurrency .en__field__element--select {
  flex: 1;
}

.wwfi .amount-and-frequency .en__field--paycurrency .en__field__element--select select {
  width: 100%;
  border: 2px solid var(--color-white);
  padding: 0.75rem 2.5rem 0.75rem 1rem; /* extra right padding for arrow space */
  background-color: var(--color-black);
  color: var(--color-white);
  cursor: pointer;

  /* Force consistent arrow style across browsers */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* Add custom arrow */
  background-image: url('data:image/svg+xml;utf8,<svg fill="%23fff" height="12" viewBox="0 0 20 20" width="12" xmlns="http://www.w3.org/2000/svg"><path d="M5 7l5 5 5-5z"/></svg>');
  background-repeat: no-repeat;
  background-position: calc(100% - 1rem) center;
  background-size: 1rem;
}
.wwfi .amount-and-frequency .en__field--paycurrency .en__field__element--select select:hover,
.wwfi .amount-and-frequency .en__field--paycurrency .en__field__element--select select:focus,
  .wwfi .amount-and-frequency .en__field--paycurrency .en__field__element--select select:active {
  background-color: var(--color-black-hover);
}

.wwfi .amount-and-frequency .en__submit button {
  background-image: url(https://aaf1a18515da0e792f78-c27fdabe952dfc357fe25ebf5c8897ee.ssl.cf5.rackcdn.com/2451/padlock.svg?v=1758642759000);
  background-repeat: no-repeat;
  background-position: calc(100% - 16px) center;
  background-size: 23px 20px;
}

/* --------------------------
    Amount and Frequency - Payments Icons Block
-------------------------- */

.wwfi .donation-icons-wrapper {
  text-align: center;
  margin-top: 1.5rem;
}

.wwfi .donation-icons-wrapper .donation-icons-row {
  display: flex;
  justify-content: center;
  gap: 12px;               /* even spacing between icons */
  flex-wrap: wrap;         /* wrap on narrow screens */
}

.wwfi .donation-icons-wrapper .donation-icons-row .donation-icon {
  width: 40px;
  display: inline-block;
}

/* --------------------------
    Amount and Frequency - Reminder Block
-------------------------- */

.wwfi .amount-and-frequency-reminder {
  background-color: var(--color-black);
  max-width: 600px;
  margin: 0.5rem auto 0;
  padding: 1rem 1.5rem;
}

.wwfi .amount-and-frequency-reminder p,
.wwfi .amount-and-frequency-reminder p span {
  font-size: var(--size-h5);
  color: var(--color-white);
}

/* --------------------------
    Editable Donation Impact Text Component
-------------------------- */

.wwfi .editable-donation-impact {
  max-width: var(--component-width);
  margin: 3rem auto;
  padding: 0 1rem;
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 3rem;
  flex-wrap: wrap;
}

.wwfi .editable-donation-impact-column {
  text-align: center;
  flex-basis: auto !important;
  flex-grow: 1 !important;
  flex-shrink: 1 !important;
  width: 100%;
}

.wwfi .editable-donation-impact-column .en__component--imageblock {
  width: 90px;
  height: 75px;
  margin: 0 auto 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wwfi .editable-donation-impact-column .pageImage {
  width: 90px !important;
  height: 75px !important;
  max-width: 90px;
  max-height: 75px;
  object-fit: contain;
  margin: 0 auto;
}

.wwfi .editable-donation-impact-text h3 {
  margin: 0;
}

/* Desktop layout */
@media (min-width: 1025px) {
  .wwfi .editable-donation-impact.en__component--advrow {
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem 3rem;
  }

  .wwfi .editable-donation-impact-column .en__component--imageblock {
    width: 160px;
    height: 136px;
  }

  .wwfi .editable-donation-impact-column .pageImage {
    width: 160px !important;
    height: 136px !important;
    max-width: 160px;
    max-height: 136px;
  }
}

/* -------------------------------------------------------------------------
    Page: Donate Page - step #2 (personal and payment details)
---------------------------------------------------------------------------- */

/* --------------------------
    Personal Details and Payment Info
-------------------------- */

.wwfi .payment-page-title {
  max-width: 600px;
  margin: 3rem auto 0 auto;
  padding: 0 1.5rem;
}
/* Tablet and Desktop styles */
@media (min-width: 640px) {
  .wwfi .payment-page-title {
    margin: 4rem auto 0 auto;
    padding: 0;
  }
}

.wwfi .personal-details,
.wwfi .payment-info,
.wwfi .donation-help {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.5rem;
  background: var(--color-white);
}

/* Tablet and Desktop styles */
@media (min-width: 640px) {
  .wwfi .personal-details,
  .wwfi .payment-info,
  .wwfi .donation-help {
    border: 1px solid var(--color-grey);
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
}

.wwfi .personal-details input,
.wwfi .personal-details select,
.wwfi .personal-details textarea,
.wwfi .payment-info input,
.wwfi .payment-info select,
.wwfi .payment-info textarea {
  border: 2px solid var(--color-black);
  padding: 0.75rem 1rem;
  margin-bottom: 1.2rem;
  background: var(--color-white);
  color: var(--color-black);
  box-sizing: border-box;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.wwfi .payment-info .en__iban .en__field__input--text {
  margin-bottom: 0;
}

.wwfi .personal-details input:not([type="radio"]):not([type="checkbox"]),
.wwfi .personal-details select,
.wwfi .personal-details textarea,
.wwfi .payment-info input:not([type="radio"]):not([type="checkbox"]),
.wwfi .payment-info select,
.wwfi .payment-info textarea {
  width: 100%;
}

.wwfi .personal-details .en__field,
.wwfi .payment-info .en__field {
  padding-bottom: 18px;
}

.wwfi .personal-details .en__field__label,
.wwfi .payment-info .en__field__label {
  width: unset;
  display: block;
  padding-bottom: 6px;
}

.wwfi .personal-details .en__field--radio .en__field__item .en__field__label {
  display: inline-block; /* Show label alongside radio */
  padding-bottom: 0; /* Remove padding as .en__field__item will add this */
}

.wwfi .payment-info .en__field--splitselect .en__field__label {
  padding-bottom: 0;  /* Remove padding as .en__field__item will add this */
}

.wwfi .personal-details .en__field__error, 
.wwfi .payment-info .en__field__error {
  color: var(--color-secondary);
}

.wwfi .personal-details .en__field--email-consent input {
  margin-bottom: 0;
  vertical-align: unset;
}

.wwfi .payment-info .en__field__label {
  margin-right: 10px;
}

.wwfi .payment-info .en__field--paymenttype .en__field__element--radio {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.wwfi .payment-info
  .en__field--paymenttype
  .en__field__element--radio
  > .en__field__item {
  flex: 0 0 calc(50% - 0.25rem); /* 0.5rem is the gap */
  margin-bottom: 0;
  padding: 0;
}

.wwfi .payment-info .en__field--paymenttype .en__field__input--radio {
  position: absolute;
  z-index: -1;
}

.wwfi .payment-info .en__field--paymenttype .en__field__label--item {
  width: 100%;
  border: 2px solid var(--color-black);
  padding: 0.75rem 1rem;
  margin-right: 1.2rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.wwfi .payment-info .en__field--paymenttype .en__field__label--item:hover,
.wwfi .payment-info .en__field--paymenttype .en__field__label--item:focus {
  background-color: var(--color-primary-hover);
}

.wwfi .payment-info
  .en__field--paymenttype
  .en__field__input--radio:checked
  + .en__field__label--item {
  border-color: var(--color-black);
  background: var(--color-black);
  color: var(--color-white);
}

.wwfi .payment-info .en__field__element--vgs {
  width: 100%;
}

.wwfi .payment-info .en__field--ccexpire {
  padding-bottom: 0;
}

.wwfi .payment-info .en__field--ccexpire .en__field__input--splitselect {
  margin-bottom: 0.8rem;
}

.wwfi .payment-info .en__field_transaction_feeCover {
  display: inline;
}

.wwfi .payment-info .en__field__item {
  margin-bottom: 10px;
}

.wwfi .payment-info .en__field__element--text,
.wwfi .personal-details .en__field__element--calendar,
.wwfi .personal-details .en__field__element--checkbox,
.wwfi .personal-details .en__field__element--email,
.wwfi .personal-details .en__field__element--number,
.wwfi .personal-details .en__field__element--password,
.wwfi .personal-details .en__field__element--radio,
.wwfi .personal-details .en__field__element--range,
.wwfi .personal-details .en__field__element--rating,
.wwfi .personal-details .en__field__element--select,
.wwfi .personal-details .en__field__element--splitselect,
.wwfi .personal-details .en__field__element--splittext,
.wwfi .personal-details .en__field__element--telephone,
.wwfi .personal-details .en__field__element--text,
.wwfi .personal-details .en__field__element--textarea,
.wwfi .personal-details .en__field__element--tripleselect,
.wwfi .personal-details .en__field__element--tripletext,
.wwfi .personal-details .en__field__element--vgs,
.wwfi .personal-details .en__field__item {
  display: block;
}

.wwfi .payment-info .en__field--feeCover .en__field__label--item {
  display: inline;
}

.wwfi .personal-details .en__field__input--radio,
.wwfi .payment-info .en__field__input--radio,
.wwfi .personal-details .en__field__input--checkbox,
.wwfi .payment-info .en__field__input--checkbox {
  margin-right: 6px;
  vertical-align: unset;
}

.wwfi .personal-details .en__mandatory > .en__field__label:first-of-type::after,
.wwfi .payment-info .en__mandatory > .en__field__label:first-of-type::after {
  content: "*";
  margin-left: 0.25em;
  font-size: 0.75em;
  line-height: 1;
  color: var(--color-black);
}

.wwfi #privacy-and-tcs {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
/* Tablet and Desktop styles */
@media (min-width: 640px) {
  .wwfi #privacy-and-tcs {
    padding: 0;
  }
}

.wwfi #privacy-and-tcs p,
.wwfi #privacy-and-tcs a {
  color: var(--color-grey-dark);
}
.wwfi #privacy-and-tcs a:hover,
.wwfi #privacy-and-tcs a:focus,
.wwfi #privacy-and-tcs a:active {
  color: var(--color-secondary);
}

/* -------------------------------------------------------------------------
    Page: Donate Page - step #3 (thank you)
---------------------------------------------------------------------------- */

/* --------------------------
    Hero - thank you page
-------------------------- */
 
.thank-you-hero {
  background-image: url("https://aaf1a18515da0e792f78-c27fdabe952dfc357fe25ebf5c8897ee.ssl.cf5.rackcdn.com/2451/thank-you-hero.webp?v=1757498582000");  background-size: cover;
  background-position: left;
  background-repeat: no-repeat;
  background-color: var(--color-black);
  min-height: 500px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center;
}

@media (min-width: 1025px) {
  .thank-you-hero {
    min-height: 720px;
    background-position: center;
  }
}

.thank-you-hero-container {
  max-width: var(--component-width);
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem;
}

.thank-you-hero-container .en__component--copyblock h1 {
  color: var(--color-white);
  font-size: var(--size-h2);
  font-family: var(--font-wwf);
  background: var(--color-black);
  display: inline;
  padding: 0 1rem;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

@media (min-width: 1025px) {
  .thank-you-hero-container .en__component--copyblock h1 {
    font-size: var(--size-h1);
  }
}


/* --------------------------
    Thank You Page Text Blocks
-------------------------- */

.wwfi .thank-you-page-title {
  margin: 2rem 0 2rem;
  margin-left: max(calc((100vw - var(--component-width)) / 2), 16px);
}

.wwfi .thank-you-page-text {
  margin-left: max(calc((100vw - var(--component-width)) / 2), 16px);
}
.wwfi .thank-you-page-text p:first-child,
.wwfi .thank-you-page-text p:first-child span {
  font-family: var(--font-wwf);
  font-size: var(--size-h4);
}

/* --------------------------
    Feedback Request
-------------------------- */

.wwfi .feedback-request {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  gap: 2rem;
}
/* EN tablet breakpoint for 2 columns */
@media (min-width: 601px) {
  .wwfi .feedback-request  {
    display: block;
    margin: 5rem 2rem 0;
    margin-right: max(calc((100vw - var(--component-width)) / 2), 16px);
  }
}
/* Desktop styles */
@media (min-width: 1025px) {
  .wwfi .feedback-request {
    margin-left: 6rem;
  }
}

.wwfi .feedback-request__content {
  max-width: 400px;
  padding: 1.5rem;
  margin-top: 2rem;
  border: 2px solid black;
  align-self: flex-start;
}

.wwfi .feedback-request__content .en__component--formblock .en__field--question > label {
  display: block;
  width: 100%;
}

.wwfi .feedback-request__content .en__component--formblock .en__field--question .en__field__item {
  display: block;
}