
body {
  font: 400 16px/1 "Open Sans", sans-serif;
  padding: 2.4rem 1.6rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  background: #b50300 url("../../Imagens/event-background.jpg") no-repeat top center/cover;
}

.form {
  width: 100%;
  max-width: 34.8rem;
  padding: 1.6rem;
  border-radius: 0.4rem;
  background-color: #fff;
  -webkit-box-shadow: 2px 2px 8px 4px rgba(0, 0, 0, 0.075);
  box-shadow: 2px 2px 8px 4px rgba(0, 0, 0, 0.075);
}

.form-title {
  width: 100%;
  font-size: 2.4rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.6rem;
}

.form .input-block {
  margin-bottom: 1rem;
  width: 100%;
}

.form .input-block .error {
  color: #453402;
  font-weight: 600;
  font-size: 13.17px;
  margin-top: 0.4rem;
  margin-bottom: 0;
}

.form-terms {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
  -ms-flex-align: start;
  align-items: start;
}

.form-terms label {
  margin-bottom: 0;
  font-size: 13.17px;
  line-height: calc(13.17px * 1.2);
  font-weight: 600;
  margin-left: 0.8rem;
}

.form .alert .close {
  font-size: 18.22px;
  padding: 0.4em 0.6em;
}

.input-text {
  height: 4rem;
  width: 100%;
  padding: 0.8rem;
  border: none;
  border-bottom: 2px solid rgba(0, 0, 0, 0.45);
  font-size: 13.17px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.82);
  -webkit-transition: background-color 200ms ease-out, border-color 200ms ease-out;
  transition: background-color 200ms ease-out, border-color 200ms ease-out;
}

.input-text::-webkit-input-placeholder,
.input-text::-moz-placeholder,
.input-text:-ms-input-placeholder,
.input-text::-ms-input-placeholder,
.input-text::placeholder {
  font-size: 13.17px;
  font-weight: inherit;
  color: inherit;
}

.input-text.invalid {
  background-color: rgba(133, 100, 4, 0.085);
  border-bottom-color: rgba(69, 52, 2, 0.45);
}

.input-text:focus {
  outline: none;
  background-color: rgba(12, 135, 235, 0.075);
  border-bottom-color: rgba(12, 135, 235, 0.75);
}

.input-select {
  cursor: pointer;
  background-color: rgba(0, 0, 0, 0);
}

.input-select.invalid,
.input-select:focus {
  background-color: rgba(0, 0, 0, 0);
}

.input-check {
  position: relative;
  width: 1.6rem;
  height: 1.6rem;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 1.6rem;
  flex: 0 0 1.6rem;
  display: block;
  border: 2px solid #ea2a24;
  border-radius: 2px;
}

.input-check input,
.input-check .custom {
  cursor: pointer;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.input-check input {
  opacity: 0;
}

.input-check input:focus + .custom,
.input-check input:hover + .custom {
  opacity: 0.5;
}

.input-check input:checked + .custom {
  opacity: 1;
}

.input-check input:checked:focus + .custom {
  outline: 2px solid #e9e7e7;
  outline-offset: 2px;
}

.input-check .custom {
  width: 100%;
  height: 100%;
  pointer-events: none;
  background-color: #ea2a24;
  opacity: 0;
  z-index: 0;
  -webkit-transition: opacity 200ms ease;
  transition: opacity 200ms ease;
}

.input-check .custom::after {
  content: "✓";
  position: absolute;
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

/* =========================================
   Layout Principal (.main)
   ========================================= */
.main {
  width: 100%;
  max-width: 1300px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 32px;
  box-sizing: border-box;
}

.event-logo {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 20px;
}

.event-forms {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.event-logo img,
.event-forms img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Imagens do evento */
.event-logo .event-title {
  max-width: 250px;
}

.event-logo img:not(.event-title) {
  max-width: 500px;
}

/* Logo do Cliente (Acima do forms, bem discreto) */
.event-forms img {
  max-width: 90px;
  margin-bottom: 12px;
}

/* =========================================
   Responsividade & Desktop (50% / 50%)
   ========================================= */
@media screen and (min-width: 992px) {
  .main {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 40px;
  }

  /* Bloco das imagens (50%) */
  .event-logo {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 calc(50% - 20px);
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }

  /* Bloco do cliente + formulário (50%) */
  .event-forms {
    -webkit-box-flex: 0;
    -ms-flex: 0 0 calc(50% - 20px);
    flex: 0 0 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

/* =========================================
   Rodapé
   ========================================= */
.footer {
  width: 100%;
  max-width: 1000px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-top: 16px;
}

@media screen and (min-width: 767.98px) {
  .footer {
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
  }
}
