/* ---------- Підтримати (page-support.php) ---------- */

.main_support .ab_sec {
  --pad: 80px;
}

/* ---------- Навіщо ---------- */

.sp_why_grid {
  display: grid;
  grid-template-columns: minmax(0, 860fr) minmax(0, 804fr);
  gap: 56px;
  align-items: center;
}

.sp_why_txt {
  margin-top: 56px;
  font-size: 20px;
  line-height: 32px;
  color: var(--palette-v2-t1);
}

.sp_why_txt p {
  margin: 0 0 12px;
}

.sp_why_txt p:last-child {
  margin-bottom: 0;
}

.sp_why_txt a {
  color: var(--palette-v2-br);
}

.sp_why_txt a:hover {
  color: var(--palette-v2-t1);
}

.sp_why_img {
  overflow: hidden;
  aspect-ratio: 804 / 452;
  border-radius: 24px;
  background: var(--palette-v2-d2);
}

.sp_why_img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Як підтримати ---------- */

.sp_how .sh_title {
  color: var(--palette-v2-bg);
}

.sp_how_head {
  margin-bottom: 40px;
}

.sp_stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sp_panel {
  border-radius: 28px;
  background: var(--palette-v2-d1);
  color: var(--palette-v2-t2);
}

.sp_pane[hidden] {
  display: none;
}

.sp_tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 36px;
}

.sp_chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--palette-v2-d2);
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: var(--palette-v2-t2);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}

.sp_chip:hover {
  background: var(--palette-v2-d3);
  color: var(--palette-v2-white);
}

.sp_chip.is-active,
.sp_chip.is-active:hover {
  background: var(--palette-v2-br);
  color: var(--palette-v2-bg);
}

.sp_chip:focus-visible,
.sp_copy:focus-visible {
  outline: 3px solid var(--palette-v2-white);
  outline-offset: 2px;
}

/* ---------- Card: donor form ---------- */

.sp_card {
  padding: 40px 44px 44px;
}

.sp_form_lead {
  margin: 0;
  font-size: 16px; /* designer review 24.11: 16 on desktop and tablet, 14 on mobile */
  line-height: 26px;
}

.sp_form_lead a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}

.sp_form_lead a:hover {
  color: var(--palette-v2-br);
}

.sp_amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.sp_fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 16px;
  margin-top: 18px;
}

.sp_field--full {
  grid-column: 1 / -1;
}

.sp_field[hidden] {
  display: none;
}

.sp_label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 13px;
  line-height: 16px;
  color: var(--palette-v2-t2);
}

.sp_input {
  display: block;
  width: 100%;
  height: 56px;
  padding: 0 20px;
  border: 1.5px solid var(--palette-v2-d3); /* same as the join form (designer review 01.12) */
  border-radius: 14px;
  background: var(--palette-v2-d2);
  font: inherit;
  font-size: 16px;
  line-height: 24px;
  color: var(--palette-v2-t1);
  transition: border-color var(--transition);
}

.sp_input::placeholder {
  color: var(--palette-v2-t3-tint);
  opacity: 1;
}

.sp_input:hover {
  border-color: var(--palette-v2-blue-700);
}

.sp_input:focus {
  border-color: var(--palette-v2-br);
  outline: none;
}

.sp_field.is-error .sp_input {
  border-color: var(--palette-v2-red-accent);
}

.sp_error {
  display: block;
  min-height: 16px;
  margin-top: 8px;
  font-weight: 600;
  font-size: 13px;
  line-height: 16px;
  color: #ff7a93;
}

.sp_submit {
  gap: 10px;
  margin-top: 4px;
}

/* ---------- Bank transfer ---------- */

.sp_bank {
  padding: 46px 44px;
}

.sp_pane_title {
  margin: 0 0 20px;
  font-weight: 800;
  font-size: 28px;
  line-height: 36px;
  color: var(--palette-v2-t2);
}

.sp_req {
  margin: 0;
}

.sp_req_row {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 67px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(155, 221, 238, 0.12);
}

.sp_req_row--purpose {
  border-bottom: 0;
}

.sp_req_label {
  font-weight: 500;
  font-size: 16px;
  line-height: 24px;
  color: var(--palette-v2-t3-tint);
}

.sp_req_value {
  margin: 0;
  font-size: 18px;
  line-height: 26px;
  color: var(--palette-v2-t1);
  overflow-wrap: anywhere;
}

.sp_req_copy {
  margin: 0;
}

.sp_copy {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--palette-v2-br);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  color: var(--palette-v2-bg);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--transition);
}

.sp_copy {
  position: relative;
}

.sp_copy:hover {
  background: #8febff;
}

/* copied: white button with a check mark (as on the home page), width unchanged */
.sp_copy.is-done {
  background: var(--palette-v2-white);
}

.sp_copy_icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  opacity: 0;
  transform: translate(-50%, -50%);
}

.sp_copy.is-done .sp_copy_txt {
  visibility: hidden;
}

.sp_copy.is-done .sp_copy_icon {
  opacity: 1;
}

.sp_copy_done {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- PayPal ---------- */

.sp_paypal {
  position: relative;
  overflow: hidden;
  padding: 88px 44px;
}

.sp_paypal_content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 76px;
  max-width: 1000px;
}

.sp_paypal_title {
  margin: 0;
  font-weight: 800;
  font-size: 36px;
  line-height: 44px;
  color: var(--palette-v2-white);
}

.sp_paypal_txt {
  max-width: 791px;
  margin: 0;
  font-size: 20px;
  line-height: 32px;
  color: var(--palette-v2-white);
}

.sp_paypal_decor {
  position: absolute;
  right: 0;
  bottom: -70px;
  width: 424px;
  pointer-events: none;
}

/* ---------- Часом, енергією і руками ---------- */

.sp_vol {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 44px;
}

.sp_vol_title {
  margin: 0;
  font-weight: 800;
  font-size: 28px;
  line-height: 36px;
  color: var(--palette-v2-white);
}

.sp_vol_txt {
  margin: 10px 0 0;
  font-size: 18px;
  line-height: 28px;
  color: var(--palette-v2-white);
}

.sp_vol_btn {
  flex-shrink: 0;
  margin-right: 50px;
}

/* ---------- Важливо знати ---------- */

.sp_law {
  position: relative;
  overflow: hidden;
}

.sp_law_box {
  position: relative;
  z-index: 1;
  max-width: 572px;
  margin: 0 auto;
}

.sp_law .sh_subtitle {
  font-size: 18px;
  line-height: 28px;
}

.sp_law_btn {
  margin-top: 32px;
}

.sp_law_decor {
  position: absolute;
  top: 0;
  pointer-events: none;
}

.sp_law_decor--l {
  left: 0;
  width: 448px;
}

.sp_law_decor--r {
  right: 0;
  width: 484px;
}

/* ---------- Laptop ---------- */

@media (max-width: 1600px) {
  .sp_law_decor--l {
    width: 340px;
  }

  .sp_law_decor--r {
    width: 368px;
  }
}

@media (max-width: 1280px) {
  .sp_why_grid {
    gap: 40px;
  }

  .sp_law_decor--l {
    width: 260px;
  }

  .sp_law_decor--r {
    width: 280px;
  }

  .sp_vol_btn {
    margin-right: 0;
  }

  /* «Важливо знати»: left pattern in the top left corner, right one in the bottom right corner (designer review) */
  .sp_law_decor--r {
    top: auto;
    bottom: 0;
  }
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
  .main_support .ab_sec {
    --pad: 40px;
  }

  .sp_why_grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .sp_why_txt {
    margin-top: 20px;
    font-size: 18px;
    line-height: 28px;
  }

  .sp_how_head {
    margin-bottom: 32px;
  }

  .sp_tabs {
    padding: 28px;
  }

  .sp_card {
    padding: 32px;
  }

  .sp_bank {
    padding: 32px;
  }

  .sp_req_row {
    grid-template-columns: 200px minmax(0, 1fr) auto;
  }

  .sp_paypal {
    padding: 48px 32px;
  }

  .sp_paypal_content {
    gap: 32px;
    max-width: 560px;
  }

  .sp_paypal_title {
    font-size: 32px;
    line-height: 40px;
  }

  .sp_paypal_txt {
    font-size: 18px;
    line-height: 28px;
  }

  .sp_paypal_decor {
    width: 300px;
    bottom: -50px;
  }

  .sp_vol {
    padding: 32px;
  }

  .sp_vol_text {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
  }

  .sp_vol_txt {
    margin: 0;
    font-size: 16px;
    line-height: 26px;
  }

  .sp_law_box {
    max-width: 520px;
  }

  .sp_law_decor--l {
    width: 200px;
  }

  .sp_law_decor--r {
    width: 216px;
  }
}

@media (max-width: 820px) {
  /* iPad mini: title in one line, the text under it, the button on the right (designer review) */
  .sp_vol_text {
    display: block;
  }

  .sp_vol_txt {
    margin-top: 8px;
  }

  .sp_law_box {
    max-width: 460px;
  }

  .sp_law_decor--l {
    width: 150px;
  }

  .sp_law_decor--r {
    width: 160px;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 600px) {
  .sp_why_txt {
    font-size: 18px;
    line-height: 28px;
  }

  .sp_why_grid {
    gap: 24px;
  }

  .sp_how_head {
    margin-bottom: 24px;
  }

  .sp_stack {
    gap: 12px;
  }

  .sp_tabs {
    flex-direction: column;
    padding: 20px;
  }

  .sp_tabs .sp_chip {
    width: 100%;
  }

  .sp_card {
    padding: 24px 20px;
  }

  .sp_form_lead {
    font-size: 14px;
    line-height: 22px;
  }

  .sp_amounts {
    gap: 8px;
    margin-top: 16px;
  }

  .sp_fields {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 16px;
  }

  .sp_submit {
    width: 100%;
    padding: 0 24px;
  }

  .sp_bank {
    padding: 24px 20px;
  }

  .sp_pane_title {
    font-size: 24px;
    line-height: 32px;
  }

  .sp_req_row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
  }

  .sp_req_label {
    grid-column: 1 / -1;
  }

  .sp_req_value {
    font-size: 16px;
    line-height: 24px;
  }

  .sp_paypal {
    padding: 24px 20px 120px;
  }

  .sp_paypal_content {
    gap: 24px;
  }

  .sp_paypal_title {
    font-size: 26px;
    line-height: 34px;
  }

  .sp_paypal_txt {
    font-size: 16px;
    line-height: 26px;
  }

  .sp_paypal_btn {
    width: 100%;
  }

  .sp_paypal_decor {
    width: 200px;
    bottom: -40px;
  }

  .sp_vol {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 20px;
  }

  .sp_vol_text {
    display: block;
  }

  .sp_vol_title {
    font-size: 24px;
    line-height: 32px;
  }

  .sp_vol_txt {
    margin-top: 12px;
    font-size: 16px;
    line-height: 26px;
  }

  .sp_vol_btn {
    width: 100%;
  }

  .main_support .sp_law {
    padding: 122px 0 50px;
  }

  .sp_law_box {
    padding: 0;
  }

  .sp_law .sh_subtitle {
    font-size: 16px;
    line-height: 26px;
  }

  .sp_law_btn {
    margin-top: 24px;
  }

  .sp_law_decor--l {
    display: block;
    top: 0;
    left: -25px;
    width: 150px;
  }

  .sp_law_decor--r {
    top: auto;
    bottom: 0;
    width: 150px;
  }
}

/* browser autofill: keep the field colors of the design instead of the white fill (designer review 23.11) */
.sp_input:-webkit-autofill,
.sp_input:-webkit-autofill:hover,
.sp_input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--palette-v2-d2) inset;
  box-shadow: 0 0 0 1000px var(--palette-v2-d2) inset;
  -webkit-text-fill-color: var(--palette-v2-t1);
  caret-color: var(--palette-v2-t1);
  transition: background-color 600000s 0s, color 600000s 0s;
}
