:root {
  --gutter: clamp(16px, 3vw, 40px);
  --card-max: 560px;
  /* form/content max width */
  --scrim: rgba(0, 0, 0, .35);
  /* overlay dimmer for readability */
}

/* ===== Wrapper (mobile-first: overlay look) ===== */
.sw-d-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  /* fallback */
  min-height: 100svh;
  /* mobile browser UI safe */
  overflow: hidden;
}

/* Background image container */
.sw-d-media {
  position: absolute;
  inset: 0;
}

.sw-d-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content area / centered card */
.sw-d-content {
  position: relative;
  z-index: 1;
  padding: var(--gutter);
  width: 100%;

}

.sw-d-inner {
  margin-inline: auto;
  width: min(100%, var(--card-max));
  display: grid;
  gap: 20px;
  color: #fff;

  /* "glass" card for overlay/mobile */
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 30px 30px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  margin-bottom: 30px;
  background-color: var(--form-color);
}

.sw-d-btn {
  margin-inline: auto;
  width: min(100%, var(--card-max));
  display: grid;
  gap: 20px;
  color: #fff;
  padding: 0px 30px 0;
}

.sw-d-logo {
  display: flex;
  align-items: center;
  justify-content: left;
  margin-bottom: 20px;
}

.sw-d-logo img {
  max-height: 15px;
  width: auto;
  margin: 10px 15px 20px 0;
}

.sw-d-logo svg {
  max-height: 25px;
  width: 120px;
  margin: 10px 15px 20px 0;
}

/* ===== Desktop/tablet split layouts (≥900px) ===== */
@media (min-width: 900px) {

  /* form left / form right share the same split behavior */
  .layout--form-left,
  .layout--form-right {
    align-items: stretch;
    justify-content: stretch;
  }

  .layout--form-left {
    flex-direction: row;
  }

  .layout--form-right {
    flex-direction: row-reverse;
  }

  /* Make the media/content occupy 50/50 columns */
  .layout--form-left .sw-d-media,
  .layout--form-right .sw-d-media {
    position: relative;
    /* stop covering entire viewport */
    flex: 0 0 50%;
    min-width: 0;
    overflow: hidden;
  }

  .layout--form-left .sw-d-media::after,
  .layout--form-right .sw-d-media::after {
    content: none;
    /* remove dimmer on split layouts */
  }

  .layout--form-left .sw-d-content,
  .layout--form-right .sw-d-content {
    position: relative;
    flex: 0 0 50%;
    min-width: 0;
    display: flex;
    align-items: center;
    /* vertically center the form */
    justify-content: center;
    padding: var(--gutter);

    /* background behind form column (matches your design) */
    /* background: radial-gradient(120% 120% at 10% 10%, #0b3a4b, #09212c); */
    background-color:  var(--bg-color);
    color: #fff;
  }

  /* On split layouts, the inner element is just a width limiter (no glass) */
  .layout--form-left .sw-d-inner,
  .layout--form-right .sw-d-inner {
    background: none;
    backdrop-filter: none;
    border-radius: 0;
    box-shadow: none;
    width: min(100%, var(--card-max));
  }

  .layout--form-left .sw-d-btn,
  .layout--form-right .sw-d-btn {
    background: none;
    backdrop-filter: none;
    border-radius: 0;
    box-shadow: none;
    width: min(100%, var(--card-max));
  }

  .sw-d-logo {
    margin-bottom: 10px;
  }

  .sw-d-logo img {
    max-height: 20px;
    width: auto;
    margin: 10px 30px 20px 0;
  }

  .sw-d-logo svg {
    width: 120px;
    height: auto;
    display: block;
}

}

/* inputs and buttons */
.swish-donation-form h3 {
  margin-bottom: 15px;
}

.swish-donation-form form input,
.swish-donation-form form select {
  width: 100%;
  margin-bottom: 20px;
  padding-left: 20px;
  appearance: textfield;
  height: 58px;
}

.swish-donation-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  flex-direction: column;
  align-items: center;
}

.swish-donation-amount-btn {
  cursor: pointer;
  border-radius: 64px !important;
  font-size: 18px;
  padding: 20px 2px;
  justify-self: center;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: white;
  background-color: #fa6900;
  border: none;
  color: #fff;
  width: 100%;
  max-width: 300px;
}

#swish-donation-response, #swish-cancel-message {
  margin-bottom: 40px;
  text-align: center;
  font-size: 20px;
  font-weight: 600;
}

.layout-btn-inline .swish-donation-buttons {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.layout-btn-inline .swish-donation-buttons .swish-donation-amount-btn {
  width: auto;
  flex-grow: 1;
}

.layout-btn-inline .swish-donation-buttons>* {
  flex: 0 0 calc(50% - 10px)
}

@media (max-width: 900px) {
  .swish-donation-amount-btn {
    cursor: pointer;
    border-radius: 64px !important;
    font-size: 16px;
    padding: 20px 2px;
  }

  .swish-donation-buttons {
    gap: 15px;
  }
}

.swish-donation-amount-btn:hover,
.swish-donation-amount-btn.selected {
  opacity: 0.8;
}

/* Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

#custom_amount{
  margin-top: -10px;
  margin-bottom: 5px;
}

#go-to-step-2{
  margin-top: 20px;
}

.sw-d-inner h1 {
  font-size: 39px;
  line-height: 49px;
  font-weight: 500;
  margin-bottom: 10px;
}

.sw-d-inner,
.sw-d-btn {
  font-size: 18px;
  line-height: 27px;
  font-weight: 400;
}

@media (max-width: 900px) {
  .sw-d-inner h1 {
    font-size: 26px;
    line-height: 36px;
    margin-bottom: 0;
  }

  .sw-d-inner,
  .sw-d-btn {
    font-size: 16px;
    line-height: 24px;
  }
}

.sw-d-custom-amount-holder {
  max-width: 300px;
  margin: 0 auto;
}

.sw-d-custom-amount,
.sw-d-custom-amount-holder label {
  font-size: 16px;
  display: block;
  padding: 0 0 10px 0;
  color: white;
}

.sw-d-copy {
  margin: 30px 0;
  color: #fff;
  text-align: center;
}

.sw-d-copy p {
  font-size: 14px;
}

.swish-donation-form p {
  /* font-size: 14px;
  text-align: center;*/
  margin-bottom: 5px;
  color: #fff;
}

.swish-donation-form a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.sw-d-back-link {
  padding-bottom: 30px;
  text-align: center;
}

.sw-d-back-link a {
  font-weight: 300;
}

/* for review */
/* Mobile-first overlay keeps working the same */
.sw-d-media {
  position: absolute;
  inset: 0;
}

.sw-d-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dimmer only for overlay/mobile readability */
.sw-d-media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* background: rgba(0,0,0,.35); */
}

/* Split layouts on ≥900px */
@media (min-width:900px) {

  .layout--form-left,
  .layout--form-right {
    align-items: stretch;
    justify-content: stretch;
  }

  .layout--form-left {
    flex-direction: row;
  }

  .layout--form-right {
    flex-direction: row-reverse;
  }

  .layout--form-left .sw-d-media,
  .layout--form-right .sw-d-media {
    position: relative;
    /* IMPORTANT so the img fills just the column */
    flex: 0 0 50%;
    min-width: 0;
    overflow: hidden;
  }

  .layout--form-left .sw-d-media::after,
  .layout--form-right .sw-d-media::after {
    content: none;
  }

  /* no scrim on split */

  .layout--form-left .sw-d-content,
  .layout--form-right .sw-d-content {
    flex: 0 0 50%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--gutter);
    /*background: radial-gradient(120% 120% at 10% 10%, #0b3a4b, #09212c);*/
    background-color:  var(--bg-color);
  }

  .layout--form-left .sw-d-inner,
  .layout--form-right .sw-d-inner {
    background: none;
    backdrop-filter: none;
    border-radius: 0;
    box-shadow: none;
    width: min(100%, var(--card-max));

  }
}

/* Blur setting */
.sw-d-inner-blur--0 {
  background: none;
  backdrop-filter: blur(0px);
  box-shadow: none;
}

.sw-d-inner-blur--1 {
  backdrop-filter: blur(1px);
}

.sw-d-inner-blur--3 {
  backdrop-filter: blur(3px);
}

.sw-d-inner-blur--6 {
  backdrop-filter: blur(6px);
}

.sw-d-inner-blur--10 {
  backdrop-filter: blur(10px);
}

/*loader css*/
.swish-wait {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  text-align: center;
  color: #fff
}

.phone {
  width: 60px;
  height: auto
}

.frame {
  fill: none;
  stroke: currentColor;
  stroke-width: 6
}

.notch {
  fill: currentColor;
  opacity: .7
}

.pulse {
  fill: currentColor;
  opacity: .4;
  transform-origin: 60px 100px;
  animation: ring 1.8s ease-out infinite
}

.p2 {
  animation-delay: .4s
}

.p3 {
  animation-delay: .8s
}

@keyframes ring {
  0% {
    transform: scale(.6);
    opacity: .9
  }

  80% {
    transform: scale(1.9);
    opacity: 0
  }

  100% {
    opacity: 0
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse {
    animation: none;
    opacity: .25
  }
}

.list-disc li:before, .list-numbered li:before {
  left: -5px !important;
  position: relative !important;
}

 .sw-d-media--color {
    background-size: cover;
    background-position: center;
  }