@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Hebrew:wght@100;200;300;400;500;600;700;800;900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.body {
  line-height: 1;
}

.main {
  width: 100%;
  display: flex;
  flex-direction: row;
  direction: rtl;
  font-family: "Noto Sans Hebrew", sans-serif;
  font-weight: 400;
  min-height: 100svh;
}

.right-container {
  background: #ffffff;
  width: 65%;
  aspect-ratio: 1401/911;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
  background-image: url('./images/bg-desk.jpg');
  background-size: cover;
  background-position: center;
}

.content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  text-align: center;
  position: relative;
  height: 100%;
}

.titles {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8vw;
}

.bigTitle {
  width: 48vw;
}

.title1 {
  font-size: 2.396vw;
  margin-top: 1vw;
  line-height: 2.396vw;
  font-family: "Noto Sans Hebrew", sans-serif;
  font-weight: 200;
  text-align: center;
}

.price-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5vw;
  margin-top: 1.5vw;
}

.be {
  line-height: 0.7;
  font-size: 1.8vw;
  font-family: "Noto Sans Hebrew", sans-serif;
  font-weight: 800;
}

.row-container {
  display: flex;
  flex-direction: row;
}

.price {
  font-size: 10vw;
  font-family: "Noto Sans Hebrew", sans-serif;
  font-weight: 800;
  line-height: 0.7;
}

.nis {
  font-size: 3vw;
  line-height: 0.7;
  font-family: "Noto Sans Hebrew", sans-serif;
  font-weight: 800;
  align-self: flex-end;
}

.months-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: flex-end;
  padding-right: 0.5vw;
}

.month {
  font-size: 3.5vw;
  line-height: 0.7;
  font-family: "Noto Sans Hebrew", sans-serif;
  font-weight: 600;
}

.mini {
  font-size: 1.5vw;
}

.line {
  width: 100%;
  margin: 0 auto;
  padding-top: 1.2vw;
  border-top: 0.1vw solid #fff;
}

.terms {
  font-size: 1.34vw;
  line-height: 1.5vw;
  width: 100%;
  font-family: "Noto Sans Hebrew", sans-serif;
  font-weight: 200;
  padding: 1.771vw;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  position: relative;
}

.left-container {
  width: 35%;
  background: white;
  color: #000000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1vw 5vw;
  gap: 1vw;
  z-index: 1;
}

.form-header {
  text-align: center;
  font-size: 2vw;
  line-height: 1;
}

.bold {
  font-family: "Noto Sans Hebrew", sans-serif;
  font-weight: 800;
  font-size: 2vw;
  line-height: 0.9;
  margin-bottom: 2vw;
  display: inline-block;
}

.join {
  font-family: "Noto Sans Hebrew", sans-serif;
  font-weight: 600;
  text-align: center;
  font-size: 1.1vw;
  color: #8129B5;
}

.form-header a {
  color: #000000;
  text-decoration: none;
}

.logoD {
  padding-bottom: 5vw;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.6vw;
  align-items: center;
}

.input {
  font-family: "Noto Sans Hebrew", sans-serif;
  font-weight: 200;
  background: none;
  width: 100%;
  border: 0.1vw solid #BDBCBE;
  padding: 1vw 1vw;
  border-radius: 0.7vw;
  color: #000000;
  font-size: 1.3vw;
}

.input::placeholder {
  color: #716F73;
}

.form-terms {
  font-size: 0.78vw;
  color: #716F73;
  cursor: pointer;
  line-height: 1.4;
}

.form-terms a {
  color: #716F73;
}

.submit {
  background: #810EA9;
  background: linear-gradient(94deg, rgba(129, 14, 169, 1) 35%, rgba(184, 48, 204, 1) 89%);
  background-size: contain;
  font-size: 1.5vw;
  color: #ffffff;
  font-family: "Noto Sans Hebrew", sans-serif;
  font-weight: 400;
  border: none;
  width: 100%;
  cursor: pointer;
  padding: 0.75vw 1.3vw;
  display: inline-block;
  border-radius: 4vw;
}

.submit:hover {
  opacity: 0.9;
}

.submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.desktop {
  display: flex;
}

.mobile {
  display: none;
}

.error {
  border-color: tomato;
}

.error::placeholder {
  color: tomato;
}

/* ===== THANKS ===== */
.thanksOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.thanksMessage {
  background: white;
  padding: 3vw 5vw;
  border-radius: 1vw;
  font-size: 3vw;
  font-family: "Noto Sans Hebrew", sans-serif;
  font-weight: 600;
  color: #8129B5;
  text-align: center;
  direction: rtl;
}

/* ===== TERMS DIALOG ===== */
.terms-dialog {
  border: none;
  margin: auto;
  border-radius: 1vw;
  padding: 1.5vw 2vw;
  font-size: 0.8vw;
  max-width: 45vw;
  color: hsl(0 0% 30%);
  line-height: 1.5;
  outline: none;
  direction: rtl;
  font-family: "Noto Sans Hebrew", sans-serif;
  font-weight: 400;
  box-shadow: 0 0.3vw 1.5vw rgba(0, 0, 0, 0.25);
}

.terms-dialog::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.terms-close {
  font-size: 1.2vw;
  color: black;
  cursor: pointer;
  text-align: right;
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.5vw;
}

.terms-dialog li {
  margin-right: 1vw;
  margin-bottom: 0.3vw;
  font-size: 0.75vw;
}

.terms-dialog p {
  margin-bottom: 0.5vw;
}

.terms-dialog ul {
  margin: 0.4vw 0 0.4vw 0;
  padding-right: 0.5vw;
}

.terms-dialog a {
  color: #8129B5;
  text-decoration: underline;
}

.terms-adult {
  margin-top: 0.8vw;
  font-size: 0.7vw;
  color: #666;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .main {
    flex-direction: column;
    min-height: 100svh;
    align-items: center;
  }

  .right-container {
    order: 2;
    width: 100%;
    text-align: center;
    background-image: url('./images/bg-mob.jpg');
    background-position: top;
    aspect-ratio: 428/478;
  }

  .content {
    aspect-ratio: unset;
    height: 100%;
    padding: unset;
    background: none;
    margin: unset;
  }

  .titles {
    text-align: center;
    gap: 1vw;
  }

  .bigTitle {
    width: 70vw;
    margin-top: 10vw;
    align-self: center;
  }

  .title1 {
    margin-top: -5vw;
    font-size: 4.5vw;
    line-height: 5.5vw;
  }

  .price-container {
    gap: 0.5vw;
    display: flex;
    flex-direction: column;
    margin-top: 4vw;
  }

  .be {
    font-size: 5.5vw;
  }

  .row-container {
    display: flex;
    flex-direction: row;
  }

  .price {
    font-size: 24vw;
  }

  .nis {
    font-size: 8.5vw;
    padding-bottom: 2vw;
  }

  .months-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    padding-right: 0vw;
    margin-top: 2vw;
    margin-bottom: 2vw;
  }

  .month {
    font-size: 8vw;
  }

  .mini {
    font-size: 4vw;
  }

  .join {
    font-size: 4vw;
    font-family: "Noto Sans Hebrew", sans-serif;
    font-weight: 600;
    color: #8129B5;
    padding: 5vw 0 1vw;
  }

  .left-container {
    order: 3;
    gap: 3.981vw;
    width: 100%;
    padding: 4vw 8vw;
  }

  .form-header {
    font-size: 7vw;
    line-height: 1;
    text-align: center;
    letter-spacing: -0.1vw;
  }

  .bold {
    font-family: "Noto Sans Hebrew", sans-serif;
    font-weight: 800;
    font-size: 7vw;
    margin-bottom: 3vw;
  }

  .form {
    gap: 1.719vw;
    width: 100%;
  }

  .input {
    font-size: 4vw;
    padding: 3vw;
    width: 100%;
    height: 12.5vw;
    text-align: right;
    border-radius: 2vw;
  }

  .input::placeholder {
    font-size: 4vw;
  }

  .form-terms {
    font-size: 3vw;
    line-height: 1.5;
    text-align: center;
    padding: 2vw 0;
  }

  .submit {
    padding: 3vw 2vw;
    font-size: 5vw;
    width: 100%;
    border-radius: 6vw;
  }

  .terms {
    font-size: 3vw;
    line-height: 1.5;
    font-weight: 400;
    order: 4;
    width: 100%;
    padding: 3vw 6vw;
    color: #716F73;
    text-align: center;
    background: unset;
    position: unset;
    align-items: unset;
  }

  .desktop {
    display: none;
  }

  .mobile {
    display: flex;
  }

  .thanksMessage {
    font-size: 5vw;
    padding: 8vw 10vw;
  }

  .terms-dialog {
    width: 90vw;
    font-size: 3vw;
    max-width: unset;
    padding: 4vw 5vw;
    border-radius: 3vw;
    line-height: 1.5;
  }

  .terms-dialog li {
    margin-right: 3vw;
    margin-bottom: 1vw;
    font-size: 3vw;
  }

  .terms-close {
    font-size: 5vw;
  }

  .terms-dialog p {
    margin-bottom: 1.5vw;
  }

  .terms-dialog ul {
    margin: 1.5vw 0 1.5vw 0;
    padding-right: 2vw;
  }

  .terms-adult {
    font-size: 3vw;
  }
}
