@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
  background: linear-gradient(180deg, #04121a 25%, #272727 75%);
  background-repeat: no-repeat;
  overflow-x: hidden;
}

/* MAIN CONTAINER */
.container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 100vw;
  max-width: 100vw;
  min-height: 100vh;
  padding: 0 0 8rem;

  background: url(background.png);
  background-repeat: no-repeat;
  background-size: cover;
}
.container::before {
  content: '';
  width: 100%;
  height: 100%;
  background-color: #00000040;
  position: absolute;
  left: 0;
  top: 0;
}

/* MAIN TITLE */
.title {
  text-align: center;
  color: #fff;
  font-size: 26px;
  font-weight: 300;
  margin: 6rem 0 2.5rem;
  line-height: 34px;
  z-index: 1;
}

.title span {
  font-weight: 600;
  color: #797979;
  text-shadow: 0 2px 10px #000000;
}

/* TESTIMONIAL FORM */
.testimonial-form {
  position: relative;
  width: 550px;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2.5rem 2.25rem;
  border-radius: 8px;
  background-color: #fff;
  box-shadow: 0 10px 25px #3b3b3b;
}

.testimonial-form input,
.testimonial-form textarea {
  font-size: 16px;
  outline: none;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  border-radius: 5px;
  border: 2px solid #000;
  resize: vertical;
}

.testimonial-form textarea {
  line-height: 26px;
  margin-bottom: 1rem;
  min-height: 140px;
}

.testimonial-form textarea::-webkit-scrollbar {
  width: 4px;
}

.testimonial-form textarea::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background-color: #797979;
}

.testimonial-form label {
  font-size: 16px;
  font-weight: 500;
  padding-bottom: 0.5rem;
}

.approval-checkbox {
  display: flex;
  margin-bottom: 2rem;

  /* Disable text selection */
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.approval-checkbox p {
  font-size: 16px;
  line-height: 26px;
  font-weight: 500;
}

.approval-checkbox .checkbox {
  cursor: pointer;
  display: grid;
  place-items: center;
  min-width: 25px;
  width: 25px;
  height: 25px;
  margin-right: 0.75rem;
  border: 2px solid #2c2c2c;
  border-radius: 5px;
}

.approval-checkbox .checkbox svg {
  font-size: 15px;
}

.testimonial-form button {
  cursor: pointer;
  padding: 1rem;
  margin-bottom: 0.5rem;
  font-size: 16px;
  font-weight: 500;
  outline: none;
  color: #fff;
  border-radius: 30px;
  border: 2px solid #161616;
  background-color: #161616;
  transition: all 0.25s ease-out;
}

.testimonial-form button:hover {
  border: 2px solid #2c2c2c;
  background-color: #2c2c2c;
}

/* LOADER */
.loader {
  align-self: center;
  position: absolute;
  bottom: -4.5rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-block;
  border: 2px solid;
  border-color: #fff #fff transparent;
  animation: rotation 1s linear infinite;
}

.loader::after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: auto;
  border: 2px solid;
  border-color: transparent #797979 #797979;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  animation: rotationBack 0.5s linear infinite;
  transform-origin: center center;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotationBack {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}

/* SUCCESS MESSAGE TAB */
.success-tab {
  position: fixed;
  display: grid;
  place-items: center;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
}

.success-tab .message-container {
  display: flex;
  align-items: center;
  border-radius: 4px;
  background-color: #fff;
  overflow: hidden;
}

.success-tab .message-container .icon {
  background-color: #03d383;
  color: #fff;
  font-size: 20px;
  padding: 1.5rem 1.25rem;
}

.success-tab .message-container p {
  font-weight: 500;
  padding: 0 1.25rem;
}

/* INDEPENDENT CSS */
.show {
  visibility: visible;
}

.hide {
  visibility: hidden;
}

@media (max-width: 768px) {

  /* MAIN CONTAINER */
  .container {
    padding: 0 1.25rem 6rem;
  }

  /* MAIN TITLE */
  .title {
    max-width: 22ch;
    font-size: 20px;
    line-height: 26px;
    margin: 3.5rem 0 1.75rem;
  }

  /* TESTIMONIAL FORM */
  .testimonial-form {
    width: 100%;
    max-width: 400px;
    border-radius: 6px;
    padding: 1.75rem 1.75rem 1.5rem;
  }

  .testimonial-form input,
  .testimonial-form textarea {
    font-size: 12px;
    margin-bottom: 1.25rem;
    padding: 0.5rem 0.75rem 0.6rem;
  }

  .testimonial-form textarea {
    line-height: 19px;
    margin-bottom: .75rem;
    min-height: 115px;
  }

  .testimonial-form label {
    font-size: 12px;
    padding-bottom: 0.25rem;
  }

  .approval-checkbox {
    margin-bottom: 1.5rem;
  }

  .approval-checkbox p {
    font-size: 12px;
    line-height: 19px;
  }

  .approval-checkbox .checkbox {
    min-width: 20px;
    width: 20px;
    height: 20px;
    margin-right: 0.6rem;
  }

  .approval-checkbox .checkbox svg {
    font-size: 11px;
    padding-bottom: 2px;
  }

  .testimonial-form button {
    padding: 0.75rem;
    margin-bottom: 0.35rem;
    font-size: 12px;
  }

  /* LOADER */
  .loader {
    bottom: -3.5rem;
    width: 32px;
    height: 32px;
  }

  .loader::after {
    width: 14px;
    height: 14px;
  }

  /* SUCCESS MESSAGE TAB */
  .success-tab .message-container .icon {
    font-size: 16px;
    padding: 1rem .85rem;
  }

  .success-tab .message-container p {
    font-size: 12px;
    padding: 0 .85rem .15rem;
  }
}