:root {
  --primary-color: #D60E0E;
  --text-color: #121212;
  --text-color-secondary: #A4A4A4;
  --background-color: #EAEAEA;


  /* Breakpoint Variables */
  --breakpoint-xs: 320px;
  --breakpoint-sm: 480px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1200px;
  --breakpoint-xxl: 1440px;
  --breakpoint-xxxl: 1860px;

  /* Container Variables */
  --container-xs: 100%;
  --container-sm: 100%;
  --container-md: 100%;
  --container-lg: 100%;
  --container-xl: 1200px;
  --container-xxl: 1440px;
  --container-xxxl: 1860px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  /* Custom viewport height for iOS fix */
  --vh: 1vh;
}

body {
  font-family: 'Noto Serif', serif;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1860px;
  margin: 0 auto;
  /* width: 100%; */
}

.root-img {
  position: absolute;
  max-width: 50rem;
}

.root-img img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}


.who {
  top: 0;
  left: 0;
}

.we {
  top: 0;
  right: 0;
}

.header {
  display: flex;
  justify-content: center;
  padding: 6rem 0;
}

.hero {
  text-align: center;
  /* height: calc(var(--vh, 1vh) * 100 - 5.5rem * 2); */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  
}

.hero__content {
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.2;
  font-weight: 500;
}

.arrow-down {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 5rem;
  margin-top: 11rem;
}

.arrow-down img {
  width: 1rem;
}

.arrow-down span {
  font-size: 0.75rem;
  color: var(--text-color-secondary);
}


.form-section {
  display: flex;
  flex-direction: column;
  position: relative;
}

.form-section__content {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  position: relative;
}

.form-section__dynamic-sticker {
  position: absolute;
  width: 23%;
  opacity: 0;
  scale: 2;
  transform: translateX(10vw);
  z-index: -1;
}

.maskot {
  top: 3%;
  right: -1%;
  width: 4rem;
}

.phone {
  top: 45%;
  right: 20%;
  width: 4rem;

}

.shoes {
  top: 50%;
  right: 55%;
  width: 4rem;
}

.form-section__title-wrapper {
  font-size: 2.5rem;
  position: relative;
}

.form-section__title-wrapper h1 {
  font-size: inherit;
  text-transform: uppercase;
  margin: 0
}

.form-section__title-wrapper h1 span {
  color: var(--background-color);
  position: relative;
}

.form-section__sticker-img {
  width: 12rem;
  position: absolute;
  left: -0.5rem;
  bottom: 0;
  cursor: pointer;
}

.form-section__info {
  margin-top: 3rem;
}

.form-section__member-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.form-section__member-count img {
  width: 5rem;
}

.form-section__info span {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 600;
}

.form-section__info-text {
  font-size: 0.75rem;
  font-weight: 500;
  margin-top: 1rem;
}

.form-section__form {
  flex: 1 1 0;
  margin-top: 3rem;
  background-color: #FAFAFA;
  border-radius: 0.5rem;
  padding: 1.25rem;
}

.form-wrapper {
  display: block;
}

.form-success {
  display: none;
  position: relative;
  height: 100%;
}

.form-success__content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
}

.form-success__content h4 {
  margin: 0;
  font-size: .75rem;
  font-weight: 700;
  color: var(--primary-color);
}

.form-success__content p {
  font-size: .5rem;
  margin-top: .25rem;
  font-weight: 500;
}

.form-success__footer {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.form-success__footer p {
  margin: 0;
  color: #AAAAAA;
  font-size: .5rem;
  font-weight: 500;
}

.form-success__footer img {
  display: inline-block;
  margin-top: 0.125rem;
  width: 3.5rem;
}

.form-section__form-title {
  font-size: .75rem;
  font-weight: 500;
  text-align: center;
  margin: 0;
}

.invite-form {
  margin-top: 1.25rem;
}

.invite-form fieldset legend {
  font-size: .5rem;
  font-weight: 500;
}

.invite-form .form-group {
  margin-top: 0.375rem;
}


.about-you {
  margin-top: 0.75rem;
}

.invite-form .form-group input {
  border: 1px solid #d6d6d6;
  border-radius: 0.375rem;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  width: 100%;
}

.invite-form .form-group input::placeholder {
  color: #AFAFAF;
  font-size: .75rem;
}

.invite-form .form-group input:focus {
  outline: 1px solid var(--text-color);
}


.invite-form .submit-button {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  border-radius: 0.5rem;
  padding: 0.75rem;
  font-weight: 700;
  width: 100%;
  margin-top: 1.25rem;
  font-size: .75rem;
  cursor: pointer;
  transition: all .2s ease;
}
  
.invite-form .submit-button:hover {
  background-color: var(--primary-color);
  color: #FAFAFA;
}

.footer {
  margin-top: 4rem;
  position: relative;
}

.footer-divider {
  display: none;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .5rem;
}

.footer__copyright {
  color: #afafaf;
  font-weight: 500;
}

.footer__links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
  text-transform: uppercase;
  font-weight: 600;
}

.link {
  color: var(--text-color);
}

.footer__img img {
  width: 100%;
  display: block;
}

.footer-lips {
  position: absolute;
  top: 0;
  left: 30%;
  width: 7rem;
  transform: translateY(-40%);
  opacity: 0.8;
}

.lips {
  position: absolute;
  display: none;
}

.lips._1 {
  top: 20rem;
  left: 0;
  width: 9rem;
}

.lips._2 {
  top: 17rem;
  right: -7rem;
  width: 16rem;
  transform: rotate(22deg)
}

.lips._3 {
  bottom: 0;
  left: -9rem;
  width: 16rem;
}

.lips._4 {
  bottom: 0;
  right: -1rem;
  width: 9rem;
  transform: rotate(22deg)
}

.form-group {
  position: relative;
  margin-bottom: 1rem;
}

.form-input.error {
  border-color: #dc3545 !important;
}

.error-message {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  color: #dc3545;
  font-size: 0.5rem;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  margin-top: 0.125rem;
  padding: 0 0.75rem;
  line-height: 1;
}

.error-message.show {
  opacity: 1;
}

/* Responsive container using breakpoint variables */

/* Extra Small devices (phones, 320px and up) */
@media (min-width: 320px) {
  .container {
    max-width: var(--container-xs);
    padding: 0 10px;
  }

  .root-img {
    max-width: 14rem;
  }

  .who {
    top: 13rem;
  }

  .we {
    top: 6rem;
  }
}

/* Small devices (landscape phones, 480px and up) */
@media (min-width: 480px) {
  .container {
    max-width: var(--container-sm);
    padding: 0 15px;
  }

  .footer-lips {
    width: 10rem;
  }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
  .container {
    max-width: var(--container-md);
    padding: 0 20px;
  }

  .root-img {
    max-width: 25rem;
  }

  .we {
    width: 16rem;
    top: -1rem;
  }

  .who {
    top: 4rem;
  }

  .header img {
    width: 5rem;
  }

  .hero {
    height: auto;
  }

  .hero__content {
    font-size: 1.5rem;
    max-width: 40rem;
  }

  .arrow-down {
    display: none;
  }

  .form-section {
    margin-top: 11rem;
  }

  .maskot {
    width: 6rem;
    right: 5%;
  }

  .phone {
    width: 6rem;
    right: 25%;
    top: 35%;
  }

  .shoes {
    width: 6rem;
    right: 65%;
    top: 40%;
  }

  .form-success__content h4 {
    font-size: 1rem;
  }
  
  .form-success__content p {
    font-size: 0.75rem;
  }
  
  .form-success__footer p {
    margin: 0;
    font-size: 0.75rem;
  }
  
  .form-success__footer img {
    margin-top: 0.125rem;
    width: 4rem;
  }

  .footer-lips {
    width: 12rem;
  }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
  .container {
    max-width: var(--container-lg);
    padding: 0 30px;
  }

  .root-img {
    max-width: 35rem;
  }

  .we {
    width: 22rem;
    top: -4rem;
  }

  .header {
    padding: 3.75rem 0 9rem;
  }

  .header img {
    width: 8rem;
  }

  .hero__content {
    font-size: 2rem;
    max-width: 42rem;
  }

  .form-section {
    flex-direction: row;
    gap: 1.5rem;
    margin-top: 22rem;
  }

  .form-section__title-wrapper {
    font-size: 3.75rem;
    font-weight: 600;
    text-align: left;
    letter-spacing: -0.05em;
    word-break: break-word;
  }

  .form-section__form {
    margin-top: 0;
  }

  .form-section__form-title {
    font-size: 2rem;
    text-align: left;
  }

  .form-section__sticker-img {
    width: 18rem;
    left: -2rem;
  }

  .form-section__info {
    text-align: left;
  }

  .maskot {
    right: -5%;
    width: 9rem;
  }

  .phone {
    right: 25%;
    top: 30%;
    width: 11rem;
  }

  .shoes {
    width: 15%;
    right: 55%;
    top: 55%;
    width: 12rem;
  }

  .form-section__info span {
    font-size: 1.75rem;
  }

  .form-section__member-count {
    justify-content: flex-start;
  }

  .form-section__member-count img {
    width: 6rem;
  }

  .form-section__info-text {
    font-size: 1.5rem;
  }

  .form-section__form {
    padding: 1.5rem;
  }

  .form-success__content h4 {
    font-size: 1.25rem;
  }
  
  .form-success__content p {
    font-size: 0.75rem;
    margin-top: .25rem;
  }
  
  .form-success__footer p {
    margin: 0;
    font-size: 0.75rem;
  }
  
  .form-success__footer img {
    margin-top: 0.25rem;
    width: 8rem;
  }

  .invite-form {
    margin-top: 2.5rem;
  }

  .invite-form fieldset legend {
    font-size: .875rem;
  }

  .invite-form .form-group,
  .about-you {
    margin-top: .875rem;
  }

  .invite-form .form-group input {
    font-size: 1.25rem;
    padding: 1.125rem 1.25rem;
    border-radius: 1rem;
  }

  .invite-form .form-group input::placeholder {
    font-size: 1.25rem;
  }

  .invite-form .submit-button {
    font-size: 1.125rem;
    padding: 1.5rem;
    margin-top: 2rem;
    border-radius: 1rem;
  }

  .footer {
    margin-top: 8rem;
  }

  .footer-divider {
    display: block;
    overflow: hidden;
  }

  .footer__content-wrapper {
    display: flex;
    margin-top: 4rem;
  }

  .footer__content {
    flex-direction: column-reverse;
    font-size: 1rem;
    align-items: flex-start;
  }

  .footer__links {
    flex-direction: column;
    font-size: 1.125rem;
    white-space: nowrap;
  }

  .footer-lips {
    width: 16rem;
    left: 58%;
    opacity: 1;
    transform: translateY(-30%);
  }

  .lips._1 {
    top: -9rem;
    left: 9rem;
    width: 25rem;
  }
  
  .lips._2 {
    top: -18rem;
    right: -19rem;
    width: 39rem;
  }
  
  .lips._3 {
    bottom: -19rem;
    left: -15rem;
    width: 39rem;
  }
  
  .lips._4 {
    bottom: -12rem;
    right: -10rem;
    width: 25rem;
  }

  .error-message {
    font-size: .75rem;
    padding: 0 1.25rem;
  }

}



/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: var(--container-xl);
    padding: 0 40px;
  }

  .form-section {
    gap: 2rem;
  }

  .form-section__title-wrapper {
    font-size: 4.75rem;
  }

  .form-section__sticker-img {
    width: 22rem;
    left: -2rem;
  }

  .maskot {
    top: 0;
    right: -14%;
    width: 9rem;
  }

  .phone {
    top: 40%;
  }

  .shoes {
    top: 50%;
  }

  .form-section__info span {
    font-size: 2.5rem;
  }

  .form-section__member-count img {
    width: 8rem;
  }

  .form-section__info-text {
    font-size: 1.75rem;
  }

  .form-section__form {
    padding: 1.75rem;
  }

  .form-success__content h4 {
    font-size: 1.75rem;
  }
  
  .form-success__content p {
    font-size: 1rem;
    margin-top: .5rem;
  }
  
  .form-success__footer p {
    margin: 0;
    font-size: 1rem;
  }
  
  .form-success__footer img {
    margin-top: 0.625rem;
    width: 10rem;
  }

  .invite-form fieldset legend {
    font-size: 1rem;
  }

  .invite-form .form-group,
  .about-you {
    margin-top: 1rem;
  }

  .invite-form .form-group input {
    font-size: 1rem;
    padding: 1rem 1.125rem;
  }

  .invite-form .form-group input::placeholder {
    font-size: 1rem;
  }

  .invite-form .submit-button {
    font-size: 1.25rem;
    padding: 1.5rem;
    margin-top: 2.5rem;
  }


  .footer__links {
    font-size: 1.25rem;
  }
}

/* XXL devices (larger desktops, 1440px and up) */
@media (min-width: 1440px) {
  .container {
    max-width: var(--container-xxl);
    padding: 0 50px;
  }

  .root-img {
    max-width: unset;
  }

  .who {
    top: 0;
  }

  .we {
    width: 26rem;
  }

  .hero__content {
    font-size: 3.125rem;
    max-width: 59rem;
  }

  .form-section {
    gap: 6rem;
  }

  .form-section__title-wrapper {
    font-size: 5.5rem;
  }

  .form-section__sticker-img {
    width: 26rem;
  }

  .form-section__info span {
    font-size: 3.25rem;
  }

  .form-section__member-count img {
    width: 9rem;
  }

  .form-section__info-text {
    font-size: 1.875rem;
  }

  .form-section__form {
    padding: 2rem;
  }

  .invite-form fieldset legend {
    font-size: 1.125rem;
  }

  .invite-form .form-group,
  .about-you {
    margin-top: 1.125rem;
  }

  .invite-form .form-group input {
    font-size: 1.125rem;
    padding: 1rem 1.25rem;

  }

  .invite-form .form-group input::placeholder {
    font-size: 1.125rem;
  }

  .invite-form .submit-button {
    font-size: 1.125rem;
    padding: 1.675rem;
    margin-top: 2.25rem;
  }

  .footer__content {
    font-size: 1.25rem;
  }

  .footer__links {
    font-size: 1.5rem;
  }

  .footer-lips {
    width: 22rem;
  }

  .lips._1 {
    top: -12rem;
    left: 13rem;
    width: 32rem;
  }
  
  .lips._2 {
    top: -22rem;
    right: -20rem;
    width: 50rem;
  }
  
  .lips._3 {
    bottom: -18rem;
    left: -18rem;
    width: 50rem;
  }
  
  .lips._4 {
    bottom: -10rem;
    right: -12rem;
    width: 32rem;
  }

}

/* XXXL devices (ultra-wide screens, 1860px and up) */
@media (min-width: 1860px) {
  .container {
    max-width: var(--container-xxxl);
    padding: 0 60px;
  }

  .form-section {
    gap: 9rem;
  }

  .form-section__title-wrapper {
    font-size: 7.125rem;
  }

  .form-section__sticker-img {
    width: 35rem;
  }

  .form-section__info span {
    font-size: 4rem;
  }

  .form-section__member-count img {
    width: 11rem;
  }

  .form-section__info-text {
    font-size: 2rem;
  }

  .form-section__form {
    padding: 2.5rem;
  }

  .form-success__content h4 {
    font-size: 2rem;
  }
  
  .form-success__content p {
    font-size: 1rem;
    margin-top: .625rem;
  }
  
  .form-success__footer p {
    margin: 0;
    font-size: 1.25rem;
    color: #AAAAAA
  }
  
  .form-success__footer img {
    margin-top: 0.625rem;
    width: 12rem;
  }

  .invite-form fieldset legend {
    font-size: 1.25rem;
  }

  .invite-form .form-group,
  .about-you {
    margin-top: 1.25rem;
  }

  .invite-form .form-group input {
    font-size: 1.25rem;
    padding: 1.125rem 1.25rem;
  }

  .invite-form .form-group input::placeholder {
    font-size: 1.25rem;
  }

  .invite-form .submit-button {
    font-size: 1.25rem;
    padding: 1.75rem;
    margin-top: 2.5rem;
  }

  .footer__content {
    font-size: 1.5rem;
  }

  .footer__links {
    font-size: 1.75rem;
  }

  .footer-lips {
    width: 25rem;
    left: 60%;
  }

  .lips._1 {
    top: -14rem;
    left: 21rem;
    width: 38rem;
  }
  
  .lips._2 {
    top: -25rem;
    right: -24rem;
    width: 58rem;
  }
  
  .lips._3 {
    bottom: -20rem;
    left: -19rem;
    width: 58rem;
  }
  
  .lips._4 {
    bottom: -12rem;
    right: -17rem;
    width: 38rem;
  }
}


.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Spinner styles */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
}

.spinner-circle {
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.flip-card {
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.3s;
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.flip-card-back {
  background-color: dodgerblue;
  transform: rotateY(180deg);
}
