@import url("./reset.css");

body {
  background-color: #7d1daf;
  background-image: url("./assets/img/bg-pattern.png");
  font-family: "Poppins", sans-serif;
  position: relative;
}

.formWrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 500px;
  margin: 15px auto 0 auto;
  padding: 0 0.75rem;
}

.formWrapper .formHeaderText {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 1.1rem;
}

.formWrapper .formHeaderText::before,
.formWrapper .formHeaderText::after {
  content: "";
  display: inline-block;
  background-color: white;
  border-radius: 50%;
  margin: 0.25rem 0.75rem;
  width: 0.5rem;
  height: 0.5rem;
}

.formWrapper .formRow {
  margin-top: 1rem;
  width: 100%;
}

.formWrapper .formRow .fieldLabel {
  color: white;
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.formWrapper .formRow .fieldInput {
  width: 100%;
  height: 2.5rem;
  outline: none;
  border: 1px solid white;
  border-radius: 0.25rem;
  background-color: #5c2481;
  color: white;
  font-size: 1rem;
  padding: 0 1rem;
}

.formWrapper .formRow .fieldInput::placeholder {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 300;
  font-size: 1rem;
}

.formWrapper .formRow .fieldInput.textArea {
  height: 7rem;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  padding: 1rem;
  resize: none;
}

.formWrapper .formRow .fileInputArea {
  display: grid;
  place-items: center;
  color: white;
  background-color: #5c2481;
  width: 100%;
  height: 4rem;
  border: 1px solid white;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.formWrapper .formRow .fileInputArea .colorize {
  color: skyblue;
}

.formWrapper .formRow .fileInputArea .fileInput {
  display: none;
}

.formWrapper .formMessage {
  text-align: center;
  margin: 1rem 2rem;
  color: white;
  opacity: 0.5;
  font-size: 0.9rem;
}

.formWrapper .submitButton {
  display: block;
  width: 100%;
  outline: none;
  border: none;
  background-color: #ffa402;
  border-radius: 0.5rem;
  height: 3rem;
  color: white;
  font-weight: 700;
  font-size: 1.3rem;
  cursor: pointer;
  margin: 1.5rem 0;
  font-family: "Poppins", sans-serif;
  box-shadow: 0px 6px 0px 0px rgb(169, 117, 40);
}

.formWrapper .submitButton:active {
  transform: translateY(2px);
  box-shadow: none;
}

.formWrapper .formRow .fieldInput.supportTypeSelect {
  -moz-appearance: none; /* Firefox */
  -webkit-appearance: none; /* Safari and Chrome */
  appearance: none;
  cursor: pointer;
}

.formWrapper .formRow .supportTypeSelectWrapper {
  position: relative;
}

.formWrapper .formRow .supportTypeSelectWrapper::after {
  content: "";
  color: white;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background-image: url("./assets/img/select-arrow.png");
  background-size: contain;
  background-repeat: no-repeat;
  width: 23px;
  height: 12px;
  pointer-events: none;
}

.formWrapper .formRow #alertWrapper .alert {
  padding: 1rem 2rem;
  border-radius: 0.35rem;
}

.formWrapper .formRow #alertWrapper .alert.error {
  background-color: tomato;
}

.formWrapper .formRow #alertWrapper .alert.success {
  background-color: yellowgreen;
}


.overlay {
  position: fixed;
  top: -100px;
  bottom: -100px;
  left: -100px;
  right: -100px;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: visible;
  opacity: 1;
  z-index: 999;
  display: grid;
  place-items: center;
}
.overlay .cancel {
  position: absolute;
  width: 1000%;
  height: 1000%;
  cursor: default;
}

.modal {
  padding: 40px 30px;
  background: #fff;
  border: 1px solid #fff;
  width: 350px;
  border-radius: 6px;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  position: relative;
  background-color: #5c2481;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}


.modal #modalTitle {
  font-size: 20px;
  font-weight: 600;
}

.modal #modalMessage {
  color: white;
}

.loadingTextWrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: -10px;
}

.loadingTextWrapper .loadingText {
  font-size: 20px;
  font-weight: 500;
}

@keyframes ldio-id3ythw829r {
  0% {
    opacity: 1;
    backface-visibility: hidden;
    transform: translateZ(0) scale(1.5,1.5);
  } 100% {
    opacity: 0;
    backface-visibility: hidden;
    transform: translateZ(0) scale(1,1);
  }
}
.ldio-id3ythw829r div > div {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffa402;
  animation: ldio-id3ythw829r 1s linear infinite;
}.ldio-id3ythw829r div:nth-child(1) > div {
  left: 74px;
  top: 44px;
  animation-delay: -0.875s;
}
.ldio-id3ythw829r > div:nth-child(1) {
  transform: rotate(0deg);
  transform-origin: 80px 50px;
}.ldio-id3ythw829r div:nth-child(2) > div {
  left: 65px;
  top: 65px;
  animation-delay: -0.75s;
}
.ldio-id3ythw829r > div:nth-child(2) {
  transform: rotate(45deg);
  transform-origin: 71px 71px;
}.ldio-id3ythw829r div:nth-child(3) > div {
  left: 44px;
  top: 74px;
  animation-delay: -0.625s;
}
.ldio-id3ythw829r > div:nth-child(3) {
  transform: rotate(90deg);
  transform-origin: 50px 80px;
}.ldio-id3ythw829r div:nth-child(4) > div {
  left: 23px;
  top: 65px;
  animation-delay: -0.5s;
}
.ldio-id3ythw829r > div:nth-child(4) {
  transform: rotate(135deg);
  transform-origin: 29px 71px;
}.ldio-id3ythw829r div:nth-child(5) > div {
  left: 14px;
  top: 44px;
  animation-delay: -0.375s;
}
.ldio-id3ythw829r > div:nth-child(5) {
  transform: rotate(180deg);
  transform-origin: 20px 50px;
}.ldio-id3ythw829r div:nth-child(6) > div {
  left: 23px;
  top: 23px;
  animation-delay: -0.25s;
}
.ldio-id3ythw829r > div:nth-child(6) {
  transform: rotate(225deg);
  transform-origin: 29px 29px;
}.ldio-id3ythw829r div:nth-child(7) > div {
  left: 44px;
  top: 14px;
  animation-delay: -0.125s;
}
.ldio-id3ythw829r > div:nth-child(7) {
  transform: rotate(270deg);
  transform-origin: 50px 20px;
}.ldio-id3ythw829r div:nth-child(8) > div {
  left: 65px;
  top: 23px;
  animation-delay: 0s;
}
.ldio-id3ythw829r > div:nth-child(8) {
  transform: rotate(315deg);
  transform-origin: 71px 29px;
}
.loadingio-spinner-spin-gtzzgvnmgga {
  width: 48px;
  height: 48px;
  display: inline-block;
  overflow: hidden;
  background: none;
}
.ldio-id3ythw829r {
  width: 100%;
  height: 100%;
  position: relative;
  transform: translateZ(0) scale(0.48);
  backface-visibility: hidden;
  transform-origin: 0 0; /* see note above */
}
.ldio-id3ythw829r div { box-sizing: content-box; }
