/* Container */
.container {
  background: var(--cream);
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem 1rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Header */
header h1 {
  font-size: 2.25rem;
  color: var(--espresso);
  & select{
    width: 80%;
    max-width: 400px;
    display: block;
    margin: .5rem auto;
    border-radius: 6px;
    padding: 5px .5rem;
    height: 36px;
    border: solid 1px #999998;
    box-shadow: 1px 1px 2px #99999899;
    outline: none;
    background: var(--white);
    color: #333;
  }
}
header p {
  font-size: 1.1rem;
  color: var(--bean);
  padding: 0 2.5vw;
}

header h3, header h4{
  padding: 0 2.5vw;
  color: var(--espresso);
}

header .section {
  margin-bottom: 2rem;
  font-size: var(--font-size-body);
  padding: 0 1.5vw;

  & h4{
    margin: 1rem 0 .5rem 0;
  }

  & ul{
    font-size: var(--font-size-body-smaller);
    max-width: unset;
    padding: 0 2.5vw;
  }
}

/* Tier grid */
.tiers {
  display: flex;
  gap: var(--gap);
  margin-top: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 2vw;
  padding: 15px 0;
  position: relative;
  width: 100%;

    & img{
      position: absolute;
      top: 1rem;
      right: 1rem;
      height: 33px;
    }
}

/* Card */
.tier {
  position: relative;
  background: var(--foam);
  min-width: 87%;
  max-width: 400px;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  scroll-snap-align: start;
}
.tier:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* Bean accent in corner */
.tier::before {
  content: "";
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  background: var(--bean);
  border-radius: 50% 0 50% 0;
  opacity: 0.15;
  transform: rotate(45deg);
}

/* SVG icons color transition */
.tier svg {
  width: 48px; height: 48px;
  fill: var(--accent);
  transition: fill var(--transition);
}
.tier:hover svg {
  fill: var(--bean);
}

/* Tier title */
.tier h2 {
  margin-top: 0.75rem;
  color: var(--espresso);
  font-size: 1.4rem;
}

/* Benefit list */
.tier ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.tier ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
}
.tier ul li::before {
  content: "☕";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1rem;
  color: var(--accent);
}

/* Buttons */
.btn-donate {
  background: var(--espresso);
  color: var(--cream);
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  cursor: pointer;
  margin-top: 5vh;
  display: inline-block;
  transition: background var(--transition), transform var(--transition);
}
.btn-donate:hover {
  background: var(--bean);
  transform: scale(1.03);
}

/* Back link */
.btn-back {
  color: var(--espresso);
  font-size: 0.95rem;
  text-decoration: none;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
}
.btn-back::before {
  content: "←";
  margin-right: 0.5rem;
}

.buttons{
    margin-top: 3vh;
}

/* Animations for headings */
header h1, .tier h2 {
  animation: fadeInUp 0.6s ease both;
}

.container h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}

.container ul {
  list-style: disc inside;
  max-width: 600px;
  margin: 1rem auto;
  padding-left: 0;
}

.container ul li {
  margin-bottom: 0.75rem;
  position: relative;
  padding-left: 1.75rem;
  list-style: none;
}
.container ul li::before {
  content: "☕";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

.container .btn-donate {
  display: flex;
  align-items: center;
  margin: 2rem auto 0;
  justify-content: space-between;
}

.container .btn-back {
  margin-left: 1rem;
}
/* remove arrow from CSS so only the single “←” in HTML shows */
.container .btn-back::before {
  content: none;
}

.thank-you-msg {
    margin-top: 1em;
    padding: 1em;
    background-color: #eaf5ff;
    border-left: 4px solid #0078d7;
    font-weight: 600;
    font-size: 1.1em;
    color: #004a9f;
}

@media only screen and (min-width: 1030px) {
  .tier {
    min-width: unset;
    width: 87%;
    overflow: clip;
  }
  header h1, .tier h2 {
    min-width: 300px;
  }

}