/**
 * Kampania Xmas 2026 (projekt w Canvie, październik 2026): czapki z kwotami, historia Jędrka,
 * przyciski ze strzałką, zdjęcia w "Jak pomagamy?", wybrana kwota w formularzu na czerwono.
 * Osobny plik – bez rekompilacji sass/style.css (jak css/donate-blik.css).
 * Kolory motywu: $primary #009de0, $secondary #1e3956, $red #CF364B.
 */

/* ============ Formularz: wybrana kwota w kolorze przycisku POMAGAM ============ */
/* pole "Dowolna kwota" ma też klasę .amount_tile - podczas wpisywania zostaje białe (styl :focus motywu) */
.c_form_section button.amount_tile.highlight,
.c_form_section input.amount_tile.highlight:not(:focus) {
  background: #cf364b;
  border-color: #cf364b;
  color: #fff;
}

/* ============ Przyciski ze strzałką ============ */
a.xmas_btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: #cf364b;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  text-transform: uppercase;
  border-radius: 2rem;
  padding: 0.55rem 0.55rem 0.55rem 1.6rem;
  transition: background 0.2s ease;
}

/* hover ciemniejszy, nie jaśniejszy - biały tekst na jaśniejszej czerwieni nie spełnia kontrastu WCAG AA */
a.xmas_btn:hover,
a.xmas_btn:focus {
  background: #b02a3e;
  color: #fff;
}

a.xmas_btn:focus-visible,
a.xmas_gift_btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

a.xmas_btn .fa-circle-arrow-right {
  font-size: 1.6em;
  color: #fff;
}

a.xmas_btn_navy {
  background: #1e3956;
}

a.xmas_btn_navy:hover,
a.xmas_btn_navy:focus {
  background: #2c5580;
}

a.xmas_btn_big {
  font-size: 1.4rem;
  padding: 0.6rem 0.6rem 0.6rem 2rem;
}

/* ============ Nagłówek z gwiazdką ============ */
.xmas_heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #fff;
  font-size: 2rem;
  font-weight: 500;
  margin: 0 0 1.2rem;
}

.xmas_heading .star_bg {
  flex: 0 0 auto;
  background-size: contain;
}

/* ============ "Jedno życzenie – Drogi Mikołaju..." ============ */
.xmas_wish .xmas_btn {
  margin-top: 0.8rem;
}

/* ============ Granatowe tło z płatkami: czapki + historia Jędrka ============ */
.xmas_night {
  background: #1e3956 url('../img/xmas26_bg.jpg') no-repeat center top;
  background-size: cover;
}

.xmas_horizon {
  display: block;
  width: 100%;
  height: auto;
}

/* Czapki z kwotami */
.xmas_wishes {
  padding: 0.5rem 0 1rem;
}

.xmas_wishes .row > div {
  display: flex;
}

.xmas_gift {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 300px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.xmas_hat {
  position: relative;
  width: 230px;
  height: 142px;
  margin: 120px auto 0.8rem;
  background: url('../img/xmas26_czapka.png') no-repeat center bottom;
  background-size: contain;
}

/* sznurek z kokardką, na którym wisi czapka */
.xmas_hat::before {
  content: '';
  position: absolute;
  left: 57%;
  bottom: 93%;
  width: 50px;
  height: 115px;
  margin-left: -25px;
  background: url('../img/xmas26_sznurek.svg') no-repeat center bottom;
  background-size: contain;
}

/* kwota w białym otoku czapki */
.xmas_hat_amount {
  position: absolute;
  left: 26%;
  right: 1%;
  top: 64%;
  bottom: 5%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1e3956;
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.xmas_gift_card {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 1.2rem;
  padding: 1.2rem 1.2rem 1.4rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.xmas_gift_img {
  display: block;
  width: 80%;
  max-width: 230px;
  height: auto;
  margin: 0 auto 0.6rem;
}

.xmas_gift_card p {
  color: #1e3956;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 1rem;
}

a.xmas_gift_btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: auto;
  background: #cf364b;
  color: #fff;
  border-radius: 2rem;
  padding: 0.55rem 1.6rem 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  transition: background 0.2s ease;
}

a.xmas_gift_btn:hover,
a.xmas_gift_btn:focus {
  background: #b02a3e;
  color: #fff;
}

/* Historia Jędrka */
.xmas_story {
  padding: 1.5rem 0 1rem;
}

.xmas_story_text p {
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
}

.xmas_story_toggle {
  background: none;
  border: none;
  padding: 0;
  margin-top: 0.6rem;
  color: #fff;
  font-size: 1.2rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.xmas_story_toggle:hover,
.xmas_story_toggle:focus {
  color: #6ecff6;
}

.xmas_story_photo {
  position: relative;
  max-width: 380px;
  margin: 0 auto 3rem;
}

.xmas_story_photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
}

.xmas_story_photo a.xmas_btn {
  position: absolute;
  left: 50%;
  bottom: -1.2rem;
  transform: translateX(-50%);
  white-space: nowrap;
  text-transform: none;
  font-size: 1.35rem;
}

/* popup z pełną historią (.popup_calendar_block z motywu, chowany przez left:-150%).
   visibility: zamknięty popup nie łapie fokusu Tabem; przy zamykaniu znika dopiero po wysunięciu (500 ms) */
.xmas_story_popup {
  visibility: hidden;
  transition: left 500ms, visibility 0s linear 500ms;
}

.xmas_story_popup.st_show {
  visibility: visible;
  transition: left 500ms, visibility 0s;
}

.xmas_story_popup .st_inner a {
  background: #cf364b;
  color: #fff;
  font-weight: 700;
  border-radius: 2rem;
}

.xmas_story_popup .st_inner a:hover,
.xmas_story_popup .st_inner a:focus {
  background: #b02a3e;
  color: #fff;
}

.xmas_story_popup .st_inner h3 {
  color: #1e3956;
  font-weight: 700;
  margin-bottom: 1rem;
}

.xmas_story_popup .st_inner p {
  font-size: 1rem;
  line-height: 1.6;
}

/* ============ "Zostań Mikołajem SOS" ============ */
.xmas_santa_logo {
  display: block;
  width: 320px;
  max-width: 80%;
  height: auto;
  margin: 0 auto 1.5rem;
}

/* ============ "Jak pomagamy?" ze zdjęciami ============ */
.number_img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============ Responsywność ============ */
@media all and (max-width: 991px) {
  .xmas_heading {
    font-size: 1.7rem;
    margin-top: 2rem;
  }

  .xmas_wishes .row > div {
    display: block;
  }

  .xmas_hat {
    margin-top: 100px;
  }

  .xmas_story_photo {
    max-width: 320px;
    margin-top: 2rem;
  }
}

@media all and (max-width: 420px) {
  a.xmas_btn {
    font-size: 0.95rem;
    padding-left: 1.2rem;
  }

  a.xmas_btn_big {
    font-size: 1.1rem;
  }

  .xmas_story_photo {
    max-width: 260px;
  }
}
