form {
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.paying-container {
  flex-wrap: wrap;
  flex-direction: column;
  width: 60%;
}


.paying-question {
  background-color: var(--primary);
  border-radius: 25px;
  padding: 1.25rem;
}

#question-anders {
  animation: swoosh-in-right 0.5s ease-in-out;
}

.paying-question:not(.active-question) {
  display: none;
  height: 100px;
}

/* .swoosh-left {
  animation: swoosh-out-left 0.5s ease-in-out;
} */

@keyframes swoosh-in-left {
  0% {
    transform: scale(0.5) translateX(-100%);
    opacity: 0;
  }

  100% {
    transform: scale(1) translateX(0);
    opacity: 1;
  }
}

@keyframes swoosh-in-right {
  0% {
    transform: scale(0.5) translateX(100%);
    opacity: 0;
  }

  100% {
    transform: scale(1) translateX(0);
    opacity: 1;
  }
}

/* @keyframes swoosh-out-left {
  0% { transform: scale(1) translateX(0); opacity: 1; }
  100% { transform: scale(0.5) translateX(-100%); opacity: 0; }
} */


.active-question {
  display: block;
}

.paying-question h1,
p {
  margin: 20px;
}



.paying-content {
  background-color: var(--secondary);
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  gap: 10px;
  border-radius: 20px;
  padding: 1.25rem;
}

.paying-option {
  flex-basis: 100%;
  position: relative;
  background-color: var(--invert);
  border-radius: 25px;
  padding: 1.25rem;
  outline: 2px dashed transparent;
  transition: outline 0.3s;
}

.input-text {
  position: relative;
  flex-basis: 100%;
  background-color: var(--invert);
  border-radius: 25px;
  padding: 1.25rem;
}

.input-text input {
  font-size: 1em;
  height: 2em;
  width: 100%;
  background-color: transparent;
  border: none;
  outline: none;
  border-radius: 5px;
  color: var(--text);
  transition: background-color 0.2s;
}

.char-counter {
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 0.5em;
}

.input-text:hover input {
  background-color: var(--secondary);
}

.contact-info {
  flex-basis: 100%;
  padding: 1.25rem;
  font-size: 1.2rem;
}

.contact-info label {
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 1em;
  background-color: var(--invert);
  border-radius: 25px;
  padding: 1.25rem;
  outline: 2px dashed transparent;
  transition: outline 0.3s;
  margin: 1em;
}



.contact-info input {
  all: unset;
  width: 100%;
  border: 3px solid black;
  background-color: #2e2e2e;
  border-radius: 1000px;
  padding-left: 1ch;
}

.contact-info input:focus {
  outline: solid white 3px;
}

input[type="checkbox"],
input[type="radio"] {
  float: right;
}


.paying-option:has(input[type="checkbox"]:checked),
.paying-option:has(input[type="radio"]:checked) {
  outline: 2px solid var(--primary);
}

#submit-button {
  /* background-color: var(--accent);
  color: var(--text);
  border-radius: 25px;
  padding: 1.25rem;
  font-size: 1.5em;
  border: none;
  outline: none;
  transition: background-color 0.2s; */
  display: flex;
  align-items: center;
}

.paying-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  align-self: flex-end;
}

.paying-controls button {
  all: unset;
  font-size: 1rem;
  padding: 1.25rem;
  margin: 0;
  /* line-height: 1rem; */
  border-radius: 200px;
  background-color: var(--secondary);
  box-shadow: 0 0 0 transparent;
  transition: background-color 0.2s, box-shadow 0.2s, opacity 1s;
}

.paying-controls button[data-show="hidden"] {
  opacity: 0;
}

.paying-controls button[data-show="show"] {
  opacity: 1;
}

#drop-area {
  border: 2px dashed #ccc;
  border-radius: 25px;
  height: 10em;
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

#drop-area.highlight {
  border-color: #2196F3;
}

#question4 .paying-content {
  flex-direction: column;
}

#preview img {
  max-width: 100%;
  border-radius: 25px;
}


@media (orientation: portrait) {
  .paying-container {
    width: 90%;
  }

  /* TODO: change this to an actual hover effect for the info */
  .paying-option p {
    display: none;
  }

  .paying-option {
    font-size: 0.8rem;
  }

  .paying-content {
    flex-direction: column;
  }

  form {
    overflow: hidden;
  }

  .contact-info {
    padding: 0;
  }
}

@media (hover: hover) {
  .paying-controls button:hover {
    box-shadow: 0 0 30px var(--accent);
    background-color: var(--accent);
  }

  .paying-option:hover {
    outline: 2px dashed var(--accent);
  }
}