:root {
  --accent: #C50712;
  --grey: #717171;
  --warning: #E26F65;
  --success: #7CB690;
}

body {
  line-height: 1.4;
}

h1 {
  font-size: 3.5rem;
}

h2 {
  text-align: center;
  font-size: 3.5rem;
}

.inner-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1rem;
}

body {
  text-align: center;
}

.card {
  display: block;
  margin-bottom: 1.5rem;
  text-align: center;
}

.card img:hover {
  border: 3px solid var(--accent);
}

.card {
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid black;
  border-radius: 0.4rem;
  padding: 0.75rem;
}

.card img {
  width: 100px;
  height: auto;
  border-radius: 4px;
}

.card p {
  font-size: 1rem;
  font-weight: 500;
  color: black;
}


.scroll-wrapper {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: scroll;
}

.scroll-wrapper .card {
  flex: 0 0 14rem;
  display: block;
  border: none;
  text-align: left;
}

.scroll-wrapper .card img {
  height: auto;
  width: 200px;
  border-radius: 0.4rem;
}

.scroll-wrapper::-webkit-scrollbar {
  height: 8px;
  background-color: #eee;
}

.scroll-wrapper::-webkit-scrollbar-thumb {
  border-radius: 2rem;
  background-color: #444;

}

.scroll-wrapper {
  scrollbar-color: #444 #eee;
  scrollbar-width: thin;
}

.accordion-item {
  border: 1px solid black;
  margin-bottom: 1.5rem;
}


.toggle-btn {
  width: 100%;
  padding: 1rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid black;
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  cursor: pointer;
}

.toggle-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.accordion-content {
  max-height: 0;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  background: #fff;
}

.accordion-content.expanded {
  max-height: 600px;
  opacity: 1;
  visibility: visible;
  padding: 0.5rem 0;
}

.accordion-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  color: black;
}


.accordion-row img {
  width: 48px;
  height: 48px;
}

.accordion-row:hover {
  border: 1px solid black;
}

.card p:hover {
  color: red;
}


.overlay {
  background-color: rgba(0, 0, 0, 0.50);
  min-height: 100vh;
  min-width: 100%;
  position: fixed;
  top: 0;
}

.modal-box {
  background-color: rgb(203, 52, 22);
  color: white;
  border-radius: 30px;
  padding: 3rem 2rem;
  width: 70vw;
  max-width: 900px;
  min-width: 300px;
  height: 800px;
  position: fixed;
  left: 10vw;
  top: 4vh;

}

.modal-box .leaf {
  width: 50vw;
  max-width: 300px;
  margin: 0 auto 1.5rem auto;
}

.modal-box h2 {
  font-size: 2rem;
}

.modal-box p {
  font-size: 1rem;
  margin: 1.6rem;
  line-height: 1.5;
  text-align: left;
}

.modal-btn {
  background: black;
  width: 50vw;
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2rem;
  display: inline-block;
  margin-bottom: 0.5rem;
}



.close-btn {
  background: none;
  border: none;
  color: white;
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  cursor: pointer;
  gap: 5px;
}

.close-btn svg {
  width: 18px;
  height: 18px;
  fill: white;
  margin-top: 2px;
}


.membership {
  background: #f5f5f5;
  padding: 1rem;
}

.back-btn svg {
  width: 2.3px;
  height: 2.3rem;

}

.membership {
  background: white;
  padding: 0.5rem;
  text-align: left;
}

.back-btn svg {
  width: 4rem;
  fill: var(--accent);
  display: block;
}

.membership form {
  background: #fff;
  padding: 1rem;
}

.membership legend {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.membership .lead {
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  color: #444;
}

.membership input[type="text"],
.membership input[type="email"],
.membership input[type="password"],
.membership input[type="date"] {
  width: 100%;
  height: 2.2rem;
  border: 1.5px solid #000000;
  border-radius: 3px;
  padding: 0.25rem;
  font-size: 0.85rem;
  font-weight: bold;
}

.help {
  font-size: 0.75rem;
  color: #444;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

.password-rules {
  font-size: 0.75rem;
  padding-left: 1.2rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 0.2rem;
}


.info {
  font-size: 0.9rem;
  display: flex;
  gap: 0.5rem;
  line-height: 1.2rem;
  align-items: flex-start;
}

.info svg {
  width: 1.5rem;
  fill: black;

}

.create-btn {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 4px;
  width: 100%;
  height: 2.4rem;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 2rem;
}

.create-btn:hover {
  background: #8d0707;
}

.legal {
  font-size: 0.75rem;
  color: #555;
  margin: 1rem 0;
}

.leaf {
  width: 130px;
  display: block;
  margin: 1rem auto 0 auto;
}

.leaf-wrapper {
  margin-top: 2rem;
}

.leaf-wrapper svg {
  width: 15rem;
  display: block;
  margin: 1rem auto;
  fill: #b10909;
}

.leaf-2,
.leaf-3 {
  visibility: hidden;
}

a:hover {
  text-decoration: none;
  font-weight: bold;
  color: var(--accent);
}

.toggle-btn:has(+ .expanded) svg {
  transform: rotate(90deg);
}

.toggle-btn:hover {
  fill: var(--accent);
}

.thank-you-page {
  background: #f5f5f5;
  font-family: "Noto Sans", sans-serif;
  padding: 2rem 1rem;
}

.ty-container {
  max-width: 420px;
  margin: 3rem auto;
  background: white;
  padding: 2.5rem 1.5rem;
  border-radius: 12px;
  text-align: center;
}

.ty-leaf {
  width: 90px;
  display: block;
  margin: 0 auto 1.5rem auto;
}

.ty-title {
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #b10909;
}

.ty-text {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
  margin-bottom: 2.5rem;
}

.ty-btn {
  background: #b10909;
  color: white;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
}

.ty-btn:hover {
  background: #8d0707;
}


fieldset {
  border: none;
  padding: 0;
  margin: 2rem 0;
}

.checkbox-row,
.info {
  width: 100%;
}

.leaf-wrapper svg {
  display: none;
}

.leaf-wrapper svg:nth-of-type(1) {
  display: block;
  width: 180px;
  margin: 2rem auto 0 auto;
}

.sr-only {
  position: absolute;
  left: -9999px;
}

form fieldset:nth-of-type(2) legend {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

body:has(.overlay:not([style*="display: none"])) {
    overflow: hidden;
    height: 100vh;
}

.overlay {
    display: none;
}


@media (min-width: 768px) and (max-width: 1024px) {
  .card-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .card {
    width: 48%;
  }

  .accordion-content {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .accordion-row {
    width: 48%;
    border-bottom: none;
  }

  .membership form {
    max-width: 90%;
    margin: 0 auto;
  }

  fieldset {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  fieldset>div {
    width: calc(50% - 0.5rem);
  }

  .ty-container {
    max-width: 600px;
    padding: 3rem 2.5rem;
  }

  .ty-leaf {
    width: 130px;
    margin-bottom: 2rem;
  }

  .ty-title {
    font-size: 2.4rem;
  }

  .ty-text {
    font-size: 1.1rem;
    margin-bottom: 3rem;
  }

  .ty-btn {
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
  }

  .leaf-wrapper {
    display: flex;
    justify-content: center;
    gap: 2rem;
  }

  /* Show first 2 leaves only */
  .leaf-wrapper svg {
    display: none;
    width: 180px;
  }

  .leaf-wrapper svg:nth-of-type(1),
  .leaf-wrapper svg:nth-of-type(2) {
    display: block;
  }

}

@media (min-width: 1024px) {

  h1 {
    text-align: center;
  }

  .card {
    flex-direction: column;
    text-align: center;
    border: none;
  }

  .card-group {
    display: flex;
    gap: 1rem;
  }

  .accordion {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
  }


  .accordion-item {
    width: 48%;
    align-self: start;
  }

  .modal-btn {
    margin-bottom: 13rem;
    width: 30vw;
  }

  .modal-box {
    display: flex;
  }

  .last {
    margin-top: 12rem;
    width: 65%;
  }

  .thank-you-page {
    padding-top: 5rem;
  }

  .ty-container {
    max-width: 700px;
    padding: 4rem 3rem;
  }

  .ty-leaf {
    width: 150px;
    margin-bottom: 2.5rem;
  }

  .ty-title {
    font-size: 3rem;
  }

  .ty-text {
    font-size: 1.2rem;
    margin-bottom: 3.5rem;
  }

  .ty-btn {
    font-size: 1.2rem;
    padding: 1rem
  }

  .leaf-wrapper {
    position: absolute;
    right: 3rem;
    top: 10rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
  }

  .leaf-wrapper svg {
    display: block;
    width: 200px;
  }

  .membership form {
    max-width: 75%;
    margin-left: 0;
  }
}