/* *,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
} */

:root {
  --primary-color: #fffcef;
  --main-bg-color: rgb(2, 0, 36);
  --secondary-bg-color: rgba(113, 67, 21, 1);
  --tertiary-bg-color: rgba(51, 26, 14, 1);
  --header-footer-bg-color: #714315;
  --hover-color: #5c3810;
  --active-color: #45270d;
  --modal-border-color: #0f0822;
  --text-color: #333;
  --form-bg-color: #fff;
  --input-border-color: #ccc;
  --label-text-color: #555;
}

body {
  background: linear-gradient(184deg, var(--main-bg-color) 0%, var(--secondary-bg-color) 54%, var(--tertiary-bg-color) 100%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  font-family: Arial, sans-serif;
  min-height: 100vh;
}

/* Header and Footer */
.header-wrapper {
  position: sticky;
  top: 0;
  z-index: 9;
}

.footer-wrapper {
  position: fixed;
  bottom: 0;
  width: 100%;
}

/* Form Styles */
.form-wrapper {
  background-color: var(--form-bg-color);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  padding: 20px;
  margin: 1.5em auto;
  max-width: 500px;
  text-align: center;
}

@media (max-width: 560px) {
  .form-wrapper {
    padding: 10% 2%;
    max-width: 90%;

    /* min-width: 250px; */
    /* margin: 5em auto; */
  }
}

@media (max-width: 600px) AND (max-height: 600px) {
  .form-wrapper {
    margin: 1em auto;
    padding: 5%;
  }
}

.form-wrapper h2 {
  text-align: center;
  color: var(--header-footer-bg-color);
  margin-bottom: 1em;
  font-size: 1.3em;
}

.input-group,
.input-group-inline {
  margin-bottom: 20px;
}

.input-group-inline {
  text-align: center;
  display: flex;
  justify-content: space-between;
}

.input-group {
  flex: 1;
  margin-right: 10px;
}

.input-group label {
  display: inline-block;
  width: 30px;
  text-align: center;
  color: var(--label-text-color);
}

.input-group input,
.input-group textarea {
  width: calc(100% - 40px);
  padding: 10px;
  border-radius: 5px;
  border: 1px solid var(--input-border-color);
  text-align: center;
  font-size: 1.5em;
  font-family: 'TT Drugs Trial', sans-serif;
  letter-spacing: 2px;
  line-height: 1.2;
}

@media screen AND (max-width: 760px) {

  .input-group input,
  .input-group textarea {
    font-size: 1em;
  }
}

button[type="submit"] {
  width: 85%;
  padding: 10px;
  background-color: var(--header-footer-bg-color);
  color: var(--primary-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  outline: none;
}

button:hover {
  background-color: var(--hover-color);
}

button:active {
  transform: translateY(2px);
  background-color: var(--active-color);
}

/* Modal Styles */
#info-icon {
  display: inline;
  vertical-align: middle;
  height: 1em;
}

.modal {
  display: none;
  position: fixed;
  z-index: 200;
  top: 9.5em;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 5px solid var(--modal-border-color);
  border-radius: 7px;
  max-width: 90%;
}

.modal-content {
  background-color: #fffcef;
  border: 1px solid #888;
  padding: 17px;
  max-width: 700px;
  min-width: 270px;
  text-align: center;
}

.modal-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 20px;
}

.modal-text {
  font-size: 14px;
  line-height: 1.3;
  margin-bottom: 8px;
  text-align: left;
}

.modal-text:before {
  content: "📌 ";
}

@media screen and (max-width: 768px) {
  .modal-content {
    padding: 10px;
    min-width: 500px;
  }

  .modal-title {
    font-size: 18px;
    margin-bottom: 15px;
  }

  .modal-text {
    font-size: 12px;
    line-height: 1.2;
    margin-bottom: 5px;
  }
}

@media screen and (max-width: 600px) {
  .modal {
    border: 1px solid var(--modal-border-color);
    width: 87%;
  }

  .modal-content {
    margin: 0;
    min-width: 200px;
  }

  .modal-title {
    font-size: 16px;
    margin-bottom: 12px;
  }

  .modal-text {
    font-size: 11px;
    line-height: 1.5;
  }
}

/* Historical Mistake Section */
.historical-mistake {
  background-color: var(--form-bg-color);
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  padding: 2.1875em;
  margin: 2em auto 5em;
  max-width: 80%;
  color: var(--text-color);
}

.historical-mistake h2 {
  color: var(--header-footer-bg-color);
  text-align: center;
  font-size: 1.6em;
  margin-bottom: 1.5em;
}

.historical-mistake h3 {
  color: var(--hover-color);
  font-size: 1.4em;
  margin-top: 1.2em;
}

.historical-mistake p {
  font-size: 1.1em;
  line-height: 1.6;
  margin-top: 0.5em;
}

.historical-mistake li {
  font-size: 1.1em;
  line-height: 1.4;
}

.historical-mistake div {
  margin-bottom: 1.5em;
}

.historical-mistake div:last-child {
  margin-bottom: 0;
}

.historical-mistake button {
  padding: 10px 20px;
  background-color: var(--header-footer-bg-color);
  color: var(--primary-color);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  outline: none;
}

.historical-mistake button:hover {
  background-color: var(--hover-color);
}

.historical-mistake button:active {
  transform: translateY(2px);
  background-color: var(--active-color);
}

@media (max-width: 600px) {
  .historical-mistake {
    padding: 15px;
    margin: 1em auto;
    max-width: 90%;
    margin-bottom: 4em;
  }

  .historical-mistake h2 {
    font-size: 1.4em;
  }

  .historical-mistake h3 {
    font-size: 1.2em;
  }

  .historical-mistake p {
    font-size: 1em;
  }

  .historical-mistake button {
    width: 100%;
    padding: 12px 0;
  }
}