@font-face {
    font-family: 'Avenir Medium';
    src: url('../fonts/Avenir-Medium.eot');
    src: url('../fonts/Avenir-Medium.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Avenir-Medium.woff2') format('woff2'),
        url('../fonts/Avenir-Medium.woff') format('woff'),
        url('../fonts/Avenir-Medium.ttf') format('truetype'),
        url('../fonts/Avenir-Medium.svg#Avenir-Medium') format('svg');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Avenir Black';
    src: url('../fonts/Avenir-Black.eot');
    src: url('../fonts/Avenir-Black.eot?#iefix') format('embedded-opentype'),
        url('../fonts/Avenir-Black.woff2') format('woff2'),
        url('../fonts/Avenir-Black.woff') format('woff'),
        url('../fonts/Avenir-Black.ttf') format('truetype'),
        url('../fonts/Avenir-Black.svg#Avenir-Black') format('svg');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

:root {
  --accent: #be7733;
}

*{
  font-family: 'Avenir Medium';
}

html {
  margin: 0;
  min-height: 100vh;
  padding: 0;
  background: url(../images/background-flip.jpg) repeat top center scroll;
  overflow-x: hidden;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: "Avenir Medium", system-ui, sans-serif;
  min-height: 100vh;
  padding: 0;
  background: url(../images/background.jpg) no-repeat top center scroll;
  overflow-x: hidden;
}

main{
  position: relative;
  width: 100vw;
  max-width: 1090px;
  margin: auto;

}
.section1 {
  position: relative;
  min-height: 265px;
  margin-top: 298px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
}

.section1 .text1 {
  width: 700px;
  text-align:center;
  color: #fff;
  font-size:32px;
  text-transform:uppercase;
}
.section1 .text1 span {
  font-size:32px;
  font-family: 'Avenir Black';
}

.section1 .counter1 {
  width: 365px;
  text-align:center;
  color: #fff;
  font-size:32px;
  text-transform:uppercase;
}
.section1 .counter1 span {
  font-family: 'Avenir Black';
  font-size:48px;
}
.section2 {
  position: relative;
  min-height: 295px;
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  text-align:center;
}
.section2 .text2 {
  font-size:24px;
}
.section2 a {
  position:relative;
  display:inline-block;
  font-family: 'Avenir Black';
  font-size:42px;
  background: url(../images/red.jpg) center center repeat scroll;
  margin:auto;
  padding:20px 60px;
  color:#fff;
  text-decoration: none;
}
.section3 {
  position: relative;
  min-height: 1320px;
  display: flex;
  justify-content: center;
  align-items: start;
  gap: 40px;
  text-align: center;
  width: 700px;
  margin: auto;
  margin-top: 20px;
}
.section3 p.title {
  text-align:center;
  color: #fff;
  font-size:32px;
  text-transform:uppercase;
  font-family: 'Avenir Black';
  margin: 50px auto 50px auto;
}
.section3 p.title.marginUp1 {
  margin-top: 80px;
}

.section3 .form {
  width: 100%;
  max-width: 580px;
  margin: 0 auto;
}

.form-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  z-index: 500;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.form-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.form-overlay-card {
  width: 100%;
  max-width: 540px;
  background: rgba(17, 17, 17, 0.95);
  border: 1px solid rgba(190, 119, 51, 0.85);
  padding: 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  color: #fff;
}

.form-success,
.form-errors {
  margin: 0;
  padding: 0;
  border-radius: 0.25rem;
  font-size: 0.95rem;
}

.form-success {
  background: transparent;
  border: none;
  color: #abe2ae;
}

.form-errors {
  background: transparent;
  border: none;
}

.form-errors ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.form-errors li {
  margin-bottom: 0.35rem;
}


.fields-row {
  display: flex;
  gap: 1vw;
  flex-wrap: wrap;
  margin-top: 1.5vw;
  justify-content: flex-start;
}

.field {
  flex: 1 1 calc(50% - 20px);
  min-width: 220px;
  position: relative;
  margin-bottom: 20px;
}

.field input {
  width: calc(100% - 40px);
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border-radius: 0.3vw;
  font-size: 14px;
}

.field input::placeholder {
  color: #fff;
}
.field select {
  width: calc(100% - 40px);
  padding: 10px 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border-radius: 0.3vw;
  font-size: 14px;
}

.field.invalid input,
.field.invalid select {
  border-color: #be7733;
  box-shadow: 0 0 0 1px rgba(190, 119, 51, 0.5);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='5'%3E%3Cpath fill='%23fff' d='M0 0l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1vw center;
  padding-right: 2.5vw;
}

.field .feedback {
  position: absolute;
  right: 0;
  bottom: -1.8vw;
  font-size: 0.6vw;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  display: none;
}

.field.invalid .feedback {
  display: block;
}

.upload-wrapper {
  margin-top: 80px;
  text-align: center;
  margin-bottom: 160px;
}

.upload-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2vw;
  padding: 20px 60px;
  background: var(--accent);
  color: #fff;
  font-family: "Avenir Black", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 0.3vw;
  cursor: pointer;
  background:  rgba(190, 119, 51, 0.8);
}
.upload-btn span {
  font-family: "Avenir Black", sans-serif;
  font-size: 40px;
}

.upload-btn .subline {
  font-size: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  padding-bottom: 0.15vw;
}

.upload-wrapper input {
  display: none;
}

.upload-status {
    display: block;
    margin-top: 0.6vw;
    text-transform: uppercase;
    color: #f6c96d;
    font-size: 14px;
    text-align: center;
    margin-top:40px;
    margin-bottom:40px;
}

.upload-helper {
  color: #fff;
  padding:0;
  margin:0;
}

.upload-helper span {
  font-size: 16px;
}

.upload-helper-star {
  color: var(--accent);
  margin-right: 0.35vw;
  color: #f6c96d;
}

.checkbox-row {
  margin-top: 1vw;
  display: flex;
  align-items: center;
  gap: 0.6vw;
  font-size: 14px;
}

.checkbox-row label {
  flex: 1;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 0.6vw;
  color: #000;
  font-size: 14px;
}

.checkbox-row .text-link {
  text-decoration: underline;
  display: contents;
  color: inherit;
  border-bottom: 1px solid currentColor;
}

.checkbox-row.marginTop2{
  margin-top: 180px;
}

.checkbox-row input {
  width: 30px;
  height: 20px;
  accent-color: var(--accent);
}

.cta-row {
  margin-top: 1.25vw;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4vw;
}

.cta-text {
  font-family: 'Avenir Black';
  text-transform: uppercase;
  color: #a91c1e;
  font-size: 32px;
  margin-top: 20px;
  margin-bottom:0px;
}

.cta-note{
  text-align:center;
  color: #111;
  font-size:32px;
  text-transform:uppercase;
  font-family: 'Avenir Black';
  margin: 40px auto 0px auto;
}

.cta-row .participar-btn {
  position:relative;
  display:inline-block;
  font-family: 'Avenir Black';
  font-size:42px;
  background: url(../images/red.jpg) center center repeat scroll;
  margin:auto;
  padding:20px 60px;
  color:#fff;
  text-decoration: none;
}

.cta-row .participar-btn.loading {
  cursor: progress;
  letter-spacing: 0.05em;
}

.cta-row .participar-btn.loading::after {
  content: "";
  display: inline-block;
  margin-left: 0.6vw;
  width: 1.5vw;
  height: 1.5vw;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.footer {
  margin-top: 2vw;
  text-align: center;
}

.footerCont {
  background: url(../images/footer-background.png) center/cover;
  height: 200px;
  max-width: 360px;
  margin: 0 auto;
}
.section4{
  position: relative;
  min-height: 180px;
  display: flex;
  justify-content: center;
  align-items: start;
  gap: 40px;
  text-align: center;
  width: 700px;
  margin: auto;
  margin-top: 20px;
}

html.endPage {
  margin: 0;
  min-height: 100vh;
  padding: 0;
  background: url(../images/ending-bg-fliped.jpg) repeat center center scroll;
  background-size:contain;
  overflow-x: hidden;
}
html.endPage body {
  margin: 0;
  font-family: "Avenir Medium", system-ui, sans-serif;
  min-height: 100vh;
  padding: 0;
  background: url(../images/ending-bg.jpg) no-repeat center center scroll;
  background-size:contain;
  overflow-x: hidden;
}
html.endPage .absoluteCenter {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width:100vw;
  text-align:center;
  color: #a51c1e;
  font-size:34px;
  font-family: 'Avenir Medium';
  line-height: 40px;
}
html.endPage .absoluteCenter span {
  display:contents;
  font-size:78px;
  font-family: 'Avenir Black';
}

@media (max-width: 768px) {
  .section1 {
      display: block;
  }
  .section1 .text1 {
      padding-top:40px;
      width: 100vw;
      font-size: 20px;
    }
    .section1 .text1 span {
        font-size: 24px;
    }
  .section2 .text2 {
      font-size: 12px;
  }
  .section3 {
      position: relative;
      width: 100vw;
  }
  .section3 p.title {
      margin: 20px auto 20px auto;
  }
  .field input {
      width: calc(100vw - 80px);
  }
  .upload-helper span {
      font-size: 11px;
  }
  .checkbox-row input {
      width: 30px;
      height: 13px;
  }
  .checkbox-row {
      width: 90vw;
      margin: auto;
      margin-bottom: 10px;
  }
}