.form-container {
  max-width: 1197px;
  width: 100%;
  margin: 100px auto 120px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 10px;
}

.form-questions {
  max-width: 589px;
  width: 100%;
  background-color: var(--contentLight);
  border-radius: 12px;
  padding: 60px 40px;
  max-height: 820px;

  & > h2 {
    font-weight: 700;
    font-size: 36px;
    line-height: 150%;
    color: var(--black);
    font-family: "Sarala";
  }
}

.form-card-list {
  width: 100%;
  max-width: 509px;
  margin-top: 20px;
}

html[lang="ar"] .form-card-list > li,
html[lang="fa"] .form-card-list > li {
  padding-right: 45px;
  &::before {
    right: 0;
  }
}

.form-card-list > li {
  padding-left: 45px;
  font-family: "Inter";

  &::before {
    left: 0;
  }
}

.form-card-list > li {
  margin-bottom: 20px;
  position: relative;
  font-size: 20px;
  font-weight: 500;
  line-height: 160%;
  letter-spacing: 0.01em;

  &::before {
    content: "";
    background-image: url(../img/card-list-form.svg);
    background-repeat: no-repeat;
    position: absolute;
    max-width: 25px;
    width: 100%;
    height: 100%;
  }
}

.what-next {
  margin-top: 20px;
  background-color: rgba(33, 45, 52, 0.1);
  padding: 25px;
  border-radius: 12px;
  color: var(--black);
  font-size: 24px;
  line-height: 160%;
  letter-spacing: 0.01em;

  & > h3 {
    font-weight: 700;
    font-family: "Inter";
  }

  & > p {
    margin-top: 10px;
    font-weight: 500;
    opacity: 0.75;
    font-family: "Inter";
  }
}

.form-wrapper {
  width: 100%;
  max-width: 548px;

  & > .section-subtitle {
    text-align: left;
  }
}

.form-subtitle-en {
  text-align: left;
}

.form-subtitle-ar {
  text-align: right;
}

.affiliate-program {
  background-color: var(--contentDark);
  color: var(--white);
  margin: 35px 0;
  display: block;
  font-size: 20px;
  max-width: 300px;
  width: 100%;
  height: 75px;

  & > a {
    padding: 22px 65px;
  }

  &:hover {
    color: var(--contentDark);
    background-color: var(--white);
    border-color: rgba(0, 0, 0, 1);
    box-shadow: none;
  }
}

html[lang="ar"] .form-title,
html[lang="fa"] .form-title {
  text-align: right;

  &::after {
    margin: 35px 0;
  }
}

html[lang="ru"] .affiliate-program > a {
  padding: 22px 20px;
}

.form-title {
  text-align: left;

  &::after {
    margin: 35px 0;
  }
}

html[lang="ru"] .big-input {
  padding-top: 15px;
}

html[lang="ru"] .form-questions {
  max-height: 1000px;
}

.form {
  width: 100%;
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.15);
  border-radius: 12px;
  padding: 60px 40px;
  height: 1479px;
  font-family: "Inter";

  & > input {
    max-width: 468px;
  }
}

.two-inputs {
  display: flex;
  justify-content: space-between;
}

html[lang="ar"] .two-inputs {
  flex-direction: row-reverse;
}

.names-wrapper {
  display: flex;
  flex-direction: column;
  max-width: 225px;
  width: 100%;
}

.label {
  font-weight: 300;
  font-size: 20px;
  line-height: 100%;
  color: var(--black);
  padding-left: 5px;
}

.input {
  width: 100%;
  border-radius: 10px;
  border: 0.25px solid rgba(34, 46, 53, 0.5);
  height: 65px;
  margin-top: 5px;
  padding-left: 20px;
  padding-right: 20px;
  font-size: 20px;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 25px;

  &:focus {
    border: 2px solid var(--contentLight);
  }
}

.select-trigger {
  width: 100%;
}

.select {
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;

  &::after {
    content: url(../img/select-arrow.svg);
    position: absolute;
    top: 30%;
    z-index: -1;
  }
}

.select-en::after {
  right: 20px;
}

html[lang="es"] .select-en::after,
html[lang="pt"] .select-en::after {
  right: 10px;
}

html[lang="mn"] .select-en::after {
  right: 15px;
}

.select-ar::after {
  left: 20px;
}

.select {
  position: relative;
  width: 100%;
}

.select-options {
  position: absolute;
  left: -1px;
  right: 0;
  top: 75px;
  display: none;
  z-index: 10;
  background-color: var(--white);
}

.select-options.show {
  display: block;
}

.select-option {
  padding: 8px 15px;
  cursor: pointer;
  border-bottom: 0.25px solid rgba(34, 46, 53, 0.25);
  font-weight: 400;
  font-size: 20px;
  background-color: white;

  &:hover {
    background: rgb(255, 238, 142);
  }

  & > img {
    padding-right: 10px;
  }
}

.big-input {
  height: 120px;
  padding-top: 24px;
  padding-right: 36px;

  &::placeholder {
    opacity: 0.5;
  }

  &:last-of-type {
    padding-top: 48px;
  }
}

html[lang="mn"] .big-input {
  padding-top: 12px;
}

html[lang="so"] .big-input {
  padding-top: 15px;
}

.checkbox {
  width: 18px;
  height: 18px;
  border: 0.25px solid rgba(34, 46, 53, 1);
  border-radius: 2px;
  appearance: auto;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  display: none;
}

.label-checkbox {
  font-weight: 200;
  font-size: 16px;
  line-height: 160%;
  letter-spacing: 0.01em;
  color: var(--black);
  margin-bottom: 25px;
  display: block;
  cursor: pointer;
  position: relative;
  padding-left: 30px;

  & > a {
    color: #fab600;
    &:hover {
      text-decoration: underline;
    }
  }

  &::before {
    content: "";
    background-image: url(../img/checkbox.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    position: absolute;
    width: 20px;
    height: 20px;
    left: 0;
    border: 0.25px solid rgba(34, 46, 53, 1);
    border-radius: 2px;
    transition: background-color 0.2s ease-in-out;
  }

  &:active::before {
    background-color: #216d00;
  }
}

html[lang="ar"] .label-checkbox,
html[lang="fa"] .label-checkbox {
  padding-right: 30px;
  padding-left: 0px;

  &::before {
    right: 0;
  }
}

input[type="checkbox"]:checked + label::before {
  background-color: var(--black);
}

.form-button {
  max-width: 400px;
  height: 75px;
  margin: 0 auto 25px;
  display: block;
  font-size: 20px;
  font-family: "Sarala";
}

.back-homepage-ar {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.back-homepage {
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.01em;
  line-height: 160%;
  color: var(--black);
  cursor: pointer;
  transition: color 0.3s ease-in-out;
  display: block;
  display: flex;
  align-items: center;

  & > svg {
    margin-right: 10px;
  }

  &:hover {
    color: var(--contentLight);
  }
}

.back-homepage-mobile {
  display: none;
}

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  min-width: 320px;
  max-width: 400px;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  z-index: 10000;
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: toastSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast.success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border-left: 4px solid #047857;
}

.toast.success::before {
  content: "✓";
  margin-right: 12px;
  font-size: 18px;
  font-weight: bold;
}

.toast.error {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  border-left: 4px solid #b91c1c;
}

.toast.error::before {
  content: "✕";
  margin-right: 12px;
  font-size: 18px;
  font-weight: bold;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.removing {
  animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal.active-form {
  display: block;
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: var(--white);
  margin: 15% auto;
  padding: 40px;
  box-shadow: 0px 4px 20px 0px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 736px;
  border-radius: 4px;
  text-align: center;
  transform: scale(0.8) translateY(-20px);
  transition: all 0.3s ease;
}

.modal.active-form .modal-content {
  transform: scale(1) translateY(0);
}

.modal-title {
  color: var(--black);
  margin: 24px auto 16px;
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  line-height: 150%;
  letter-spacing: 0.02em;
}

.modal-text {
  font-weight: 300;
  font-size: 24px;
  line-height: 160%;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--black);
  opacity: 0.75;
}

.modal-btn {
  cursor: pointer;
  position: absolute;
  right: 32px;
  top: 32px;
}

@media (max-width: 1280px) {
  .form-container {
    max-width: 1160px;
  }

  .form-questions {
    padding: 40px;
    max-width: 552px;
  }
}

@media (max-width: 1120px) {
  .form-container {
    justify-content: center;
    margin: 40px auto;
  }

  .form-questions {
    margin-top: 30px;
  }

  .back-homepage {
    display: none;
  }

  .back-homepage-mobile {
    display: block;
    max-width: 552px;
    margin: 45px auto 55px;
    padding-left: 10px;
  }
}

@media (max-width: 600px) {
  .form-title {
    text-align: center;
    font-size: 40px;

    &::after {
      margin: 30px auto;
    }
  }

  .affiliate-program {
    margin: 30px auto;
  }

  .form {
    box-shadow: none;
    padding: 60px 20px 0;

    & > input {
      max-width: none;
    }
  }

  .label {
    font-size: 16px;
  }

  html[lang="mn"] .label {
    font-size: 15px;
  }

  .input {
    margin-right: 10px;
    font-size: 16px;
  }

  .big-input::placeholder {
    line-height: 100%;
  }

  .big-input:last-of-type {
    padding-top: 41px;
  }

  .form-button {
    max-width: 250px;
    font-size: 18px;
    margin-bottom: 0;
  }

  .form-questions > h2 {
    max-width: 262px;
    margin: 0 auto 15px;
    text-align: center;
  }

  .what-next {
    margin-top: 15px;
    line-height: 110%;

    & > h3 {
      font-size: 18px;
    }

    & > p {
      font-size: 16px;
    }
  }

  .select-option {
    font-size: 14px;
  }

  html[lang="pt"] .select-option {
    font-size: 13px;
  }
}

@media (max-width: 515px) {
  html[lang="am"] .select-en::after {
    right: 10px;
  }

  html[lang="am"] .select-option {
    font-size: 15px;
  }

  .form-card-list > li {
    font-size: 16px;
  }
  .form-question {
    padding: 60px 40px;
  }

  .form-questions > h2 {
    font-size: 28px;
  }

  .select,
  .names-wrapper,
  .input {
    max-width: 140px;
  }

  html[lang="es"] .input {
    font-size: 14px;
    padding-right: 5px;
    padding-left: 5px;
  }

  html[lang="mn"] .input {
    font-size: 15px;
  }

  #select {
    max-width: 500px;
  }

  #select-partner-program,
  .big-input {
    max-width: none;
  }

  .two-inputs {
    max-width: 370px;
  }

  .toast {
    min-width: 280px;
    right: 12px;
    left: 12px;
    top: 12px;
    font-size: 13px;
  }
}
@media (max-width: 365px) {
  .select,
  .names-wrapper,
  .input {
    max-width: 125px;
  }

  #select-partner-program,
  .big-input {
    max-width: none;
  }

  .form-card-list > li {
    font-size: 14px;
  }

  .what-next {
    margin-top: 15px;
    line-height: 100%;

    & > h3 {
      font-size: 16px;
    }

    & > p {
      font-size: 14px;
    }
  }

  .form-questions {
    padding: 30px 20px;
  }
}
