@import url("https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

:root {
  --maroon-color: #640d11;
  --bright-maroon-color: #b2020a;
  --dark-maroon-color: #26100d;
  --off-white-color: #fcfbf0;
  --text-color: #f9ebd7;
  --form-bg: white;
  --input-bg: #d9d9d9;
  --bg-color: #4f0307;

  --primary-font: "Poppins", serif;
  --secondary-font: "Abril Fatface", serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  background-color: var(--bg-color);
  font-family: var(--primary-font);
}

main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  max-width: 750px;
  margin-inline: auto;
}

.wrapper {
  max-width: 524px;
  margin: 2rem auto;
  /* margin-inline: auto; */
  width: 100%;
  border-radius: 1rem;
  overflow: hidden;
}

/* Wrapper images */
.wrapper__images {
  width: 100%;
  position: relative;
  height: 252px;
}

.wrapper__images figure img {
  width: 100%;
  height: 252px;
  object-fit: cover;
}

.wrapper__images--container {
  padding: 1rem;
  display: grid;
  grid-template-columns: 60px 1fr 60px;
  gap: 1rem;
  height: 100%;
  position: absolute;
  top: 0%;
  left: 0%;
  right: 0%;
  width: 100%;
  justify-content: space-between;
}

.wrapper__images section img {
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 100%;
}

.wrapper__images section:nth-of-type(1) {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wrapper__images section:nth-of-type(2) {
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: flex-end;
}

.wrapper__images section:nth-of-type(2) p {
  font-size: 0.6rem;
  margin-top: 12px;
  width: 80%;
  margin-inline: auto;
}

.wrapper__images section:nth-of-type(2) span {
  font-weight: bold;
}

.wrapper__images section:nth-of-type(3) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.wrapper__images section:nth-of-type(1) img:first-of-type {
  width: 80px;
}

.wrapper__images section:nth-of-type(1) img:last-of-type {
  margin-top: 10px;
}
.wrapper__images section:nth-of-type(2) img {
  height: 50px;
  width: auto;
}

.wrapper__images section:nth-of-type(3) img {
  height: 65px;
  width: auto;
  object-fit: contain;
}

.wrapper__images--container section:nth-of-type(3) div:nth-of-type(2) > img {
  display: none;
}

/* Wrapper form  */
.wrapper__form {
  position: relative;
  padding: 1.5rem;
  background: var(--form-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wrapper__form--header {
  text-align: center;
  margin-bottom: 2rem;
}

.wrapper__form--header h1 {
  color: var(--maroon-color);
  font-size: 2.3rem;
  margin-bottom: 0.5rem;
  font-family: var(--secondary-font);
  letter-spacing: 2px;
}

.wrapper__form--header p {
  color: var(--dark-maroon-color);
  font-size: 0.875rem;
  font-weight: 500;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark-maroon-color);
  font-size: 14px;
  font-weight: bold;
}

.form-group label::after {
  content: "*";
  color: #ff0000;
  margin-left: 4px;
}



.form-group1 {
  margin-bottom: 1rem;
}

.form-group1 label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--dark-maroon-color);
  font-size: 14px;
  font-weight: bold;
}

.form-group1 label::after {
  
  color: #ff0000;
  margin-left: 4px;
}

.form-check
{
    Display: block;
    min-height: 1.5rem;
    padding-left: 1.5em;
    margin-bottom: .125rem;
}
.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: var(--input-bg);
  font-size: 14px;
}

.form-control::placeholder {
  font-style: italic;
}

.captcha-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.captcha-input {
  flex: 1;
}

.refresh-captcha {
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 1.7rem;
}

.btn-register {
  width: 100%;
  padding: 1rem;
  background-color: var(--maroon-color);
  color: var(--off-white-color);
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
}

.btn-register:hover {
  background-color: var(--dark-maroon-color);
}

.btn-reset {
  margin-top: 0.5rem;
  display: block;
  text-align: center;
  color: var(--dark-maroon-color);
  font-size: 14px;
  font-weight: 600;
}

.btn-reset:hover {
  text-decoration: underline;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
}

footer {
  text-align: center;
  padding: 1rem;
  color: var(--off-white-color);
  background-color: var(--maroon-color);
  font-size: 0.875rem;
}

.wrapper .close__btn {
  position: absolute;
  top: 0%;
  right: 0%;
  margin: 0.5rem;
  font-size: 1rem;
  background-color: rgba(100, 13, 17, 10%);
  color: var(--dark-maroon-color);
  height: 35px;
  width: 35px;
  border-radius: 50%;
  border: var(--off-white-color);
  cursor: pointer;
}

@media (max-width: 524px) {
  main {
    min-height: auto;
  }

  .wrapper__form--header h1 {
    font-size: 1.7rem;
    margin-bottom: 0;
  }

  .wrapper__form--header p {
    font-size: 0.75rem;
  }

  .wrapper {
    border-radius: 0;
    margin: 0px;
  }

  .wrapper__images--container {
    padding: 0.5rem;
  }

  .wrapper__images section:nth-of-type(1) div img:first-of-type {
    width: 60px;
  }

  .wrapper__images--container section:nth-of-type(1) > img {
    width: 80px !important;
  }

  .wrapper__images section:nth-of-type(2) img {
    height: 50px;
  }
  .wrapper__images section:nth-of-type(2) p {
    width: 90%;
    font-size: 0.5rem;
  }

  .wrapper__images section:nth-of-type(3) {
    justify-content: space-around;
  }

  .wrapper__form--header {
    margin-bottom: 1rem;
  }

  footer {
    font-size: 0.625rem;
  }
}

@media (min-width: 992px) {
  main {
    max-width: 1920px;
  }

  .wrapper {
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 40%;
  }

  .wrapper__images figure,
  .wrapper__images figure img,
  .wrapper__images {
    height: 100%;
  }

  .wrapper__images--container {
    padding: 1rem;
    grid-template-columns: 120px 1fr 120px;
  }

  .wrapper__images section:nth-of-type(3) {
    justify-content: space-between;
    margin-top: 4rem;
  }

  .wrapper__images section:nth-of-type(3) img {
    height: 155px;
    width: 100%;
    object-fit: cover;
  }

  .wrapper__images section:nth-of-type(2) img {
    height: 150px;
  }

  .wrapper__images section:nth-of-type(2) p {
    font-size: 1rem;
  }

  .wrapper__images--container section:nth-of-type(1) div > img:last-of-type {
    display: none;
  }

  .wrapper__images--container section:nth-of-type(1) > img {
    width: 200px !important;
  }

  .wrapper__images--container section:nth-of-type(3) div:nth-of-type(2) > img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}
