* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  width: 100%;
}

body {
  font-family: Arial, sans-serif;
  background: url(../img/bg.jpg) center center/ cover no-repeat fixed;
  min-height: 100vh;
}

.top-line {
  height: 70px;
  background: #b90f2d;

  width: 100%;
}

.wrap {
  max-width: 470px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  background: rgba(13, 13, 13, 0.7);
  border-radius: 14px;
  backdrop-filter: blur(3px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.title {
  font-size: 26px;
  line-height: 1.25;
  font-weight: 800;
  color: #fff;
  max-width: 780px;
  margin: 0 auto 15px;
}

.form-box {
  max-width: 510px;
  margin: 0 auto;
}

form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

input[type="text"],
input[type="tel"] {
  width: 100%;

  border: 2px solid #ececec;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  font-size: 20px;
  color: #111;
  outline: none;
}

input::placeholder {
  color: #444;
}

.phone-row {
  display: flex;
  align-items: center;
  width: 100%;
  height: 68px;
  border: 2px solid #ececec;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.phone-code {
  width: 135px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-right: 2px solid #ececec;
  font-size: 22px;
  color: #333;
  background: #fafafa;
  flex-shrink: 0;
}

.phone-code .flag {
  font-size: 26px;
  line-height: 1;
}

.phone-row input {
  border: none;
  border-radius: 0;
  height: 100%;
  padding: 0 18px;
  font-size: 22px;
}

button[type="submit"] {
  width: 290px;
  height: 68px;
  margin: 10px auto 0;
  border: none;
  border-radius: 40px;
  background: #0a9f0a;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.18);
}

button[type="submit"]:hover {
  opacity: 0.96;
}

.flex-block {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  flex-direction: column;
  padding: 0 10px;
  margin-top: -2rem;
}

@media (max-width: 640px) {
  body {
    background-position-x: 35%;
  }

  .wrap {
    max-width: 360px;
    /* width: 92%; */
    padding: 16px 14px;
    background: rgba(13, 13, 13, 0.7);
  }

  .title {
    font-size: 18px;
    line-height: 1.35;
  }

  form {
    gap: 12px;
  }

  input[type="text"],
  input[type="tel"],
  .phone-row {
    font-size: 16px;
  }

  .phone-row {
    height: 58px;
  }

  .phone-code {
    width: 100px;
    font-size: 15px;
  }

  .phone-code .flag {
    font-size: 22px;
  }

  .phone-row input {
    font-size: 18px;
  }

  button[type="submit"] {
    width: 200px;
    height: 54px;
    font-size: 18px;
  }
}

/* modal */

#multiQuestionModal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

#multiQuestionModal .modal-content {
  background: #fff;
  padding: 28px 24px;
  border-radius: 16px;
  width: 100%;
  max-width: 380px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-family: inherit;
}

#modal-question-text {
  margin-bottom: 18px;
  font-size: 18px;
  font-weight: 700;
  color: #0b1c2c;
}

#modal-options button {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 10px;
  border: 1px solid rgba(8, 64, 160, 0.25);
  background: #0b56c4;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition:
    transform 0.15s,
    background 0.2s,
    box-shadow 0.2s;
}

#modal-options button:hover {
  background: #0d6be3;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(13, 107, 227, 0.25);
}

#modal-options button:last-child {
  margin-bottom: 0;
}