/* ===== VARIÁVEIS CSS ===== */
:root {
  --vermelho: #C30000;
  --verde: #00a651;
  --fonte: 'Ft Blank Grotesk', sans-serif;
  --container: 1200px;
  --mascara-fade: linear-gradient(
    to bottom, 
    rgba(0,0,0,1) 85%,
    rgba(0,0,0,0.9) 90%,
    rgba(0,0,0,0.8) 95%,
    rgba(0,0,0,0.6) 97.5%,
    rgba(0,0,0,0) 100%);
}

/* ===== RESET E ESTILOS GERAIS ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

::-webkit-scrollbar {
  display: none;
}

body {
  font-family: var(--fonte);
  font-weight: 400;
  color: #fff;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: 
      radial-gradient(circle at 50% 20%, var(--vermelho) 0%, rgba(0,0,0,0) 25%),
      radial-gradient(circle at 50% 70%, var(--vermelho) 0%, rgba(0,0,0,0) 25%),
      #000;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 60px 0;
}

/* ===== CLASSES UTILITÁRIAS ===== */
.destaque, .bg-preto-aprovacao {
  font-weight: 700;
}

.texto-verde {
  color: var(--verde);
}

.bg-preto, .bg-preto-aprovacao {
  padding: 2px 5px;
  border-radius: 3px;
  display: inline-block;
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 60px 0 80px;
}

.hero .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 80px;
  padding-top: 60px;
}

.hero-content {
  flex: 0 1 50%;
  max-width: 460px;
  padding-right: 20px;
  margin-top: -140px;
}

.logo {
  display: block;
  max-width: 250px;
  margin-bottom: 30px;
  align-self: flex-start;
  margin-left: -30px;
  margin-top: -80px;
}

h1, .estude-titulo {
  font-weight: 700 !important;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 20px;
}

h2 {
  font-size: 17.5px;
  font-weight: 400;
  max-width: 90%;
  margin-bottom: 25px;
  text-align: left;
}

.inscricao-texto {
  width: 100%;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  margin-top: 5px;
  margin-bottom: 5px;
}

.event-info {
  width: 100%;
  text-align: center;
  margin-top: 5px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

/* ===== FORMULÁRIO ===== */
form {
  width: 100%;
}

.form-group {
  margin-bottom: 5px;
  position: relative;
}

input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  color: #fff;
  font-size: 1rem;
  font-family: 'Ft Blank Grotesk', sans-serif;
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
  margin-bottom: -1px;
}

input:focus {
  outline: none;
  border-color: #fff;
}

input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.error-message {
  color: var(--vermelho);
  font-size: 0.8rem;
  margin-top: 5px;
  display: none;
  padding-left: 15px;
}

/* ===== BOTÕES ===== */
.cta-button {
  display: inline-block;
  width: 100%;
  padding: 15px;
  background-color: var(--verde);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-family: var(--fonte);
  position: relative;
  overflow: hidden;
  background-image: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  background-size: 200% 100%;
  animation: shine 2s infinite;
  transition: all 0.3s ease;
  font-size: 1rem;
  text-align: left;
}

.cta-button::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 10px;
  background-image: url('assets/arrow-right.svg');
  background-size: contain;
  background-position: center;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) scale(1.3);
  filter: brightness(0) invert(1);
}

.cta-button:hover {
  background-color: #008a44;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 166, 81, 0.2);
}

.cta-button:active {
  transform: translateY(0);
}

.hero-image {
  flex: 0 1 40%;
  position: relative;
}

.arthur-image {
  max-width: 80%;
  height: auto;
  position: relative;
  z-index: 1;
  margin-left: -30px;
  top: -80px;
  mask-image: linear-gradient(to bottom, 
      rgba(0,0,0,1) 70%, 
      rgba(0,0,0,0.9) 80%, 
      rgba(0,0,0,0.8) 85%, 
      rgba(0,0,0,0.6) 90%, 
      rgba(0,0,0,0.3) 95%,
      rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(to bottom, 
      rgba(0,0,0,1) 70%, 
      rgba(0,0,0,0.9) 80%, 
      rgba(0,0,0,0.8) 85%, 
      rgba(0,0,0,0.6) 90%, 
      rgba(0,0,0,0.3) 95%,
      rgba(0,0,0,0) 100%);
}

/* ===== SEÇÃO ESTUDE MENOS ===== */
.estude-menos {
  padding: 20px 0 80px
}

.estude-menos-content {
  max-width: 700px;
  width: 100%;
  text-align: left;
  margin: 0 auto;
}

.estude-menos p {
  font-size: 1.12rem;
  margin-bottom: 40px;
  line-height: 1.6;
}

.estude-menos .cta-button {
  width: auto;
  min-width: 350px;
  padding: 12px 40px;
  display: block;
  text-decoration: none;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: 80px;
}
.arthur-image-moobile {
  display: none;
}

/* ===== ANIMAÇÕES UNIFICADAS ===== */
@keyframes shine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

/* ===== MEDIA QUERIES ===== */

/* TABLET (991px para baixo) */
@media (max-width: 991px) {
  .hero .container,
  .estude-menos .container {
      flex-direction: column;
      gap: 20px;
      padding-left: 70px;
      padding-right: 70px;     
  }
  
  .hero-content,
  .estude-menos-content {
      max-width: 100%;
  }
  .hero-content {
    margin-bottom: 40px;
  }
  .logo {
      display: block;
      max-width: 250px;
      margin: 0 auto 40px;
      margin-top: 80px;
  }
  
  h1 {
      font-size: 24px !important;
      margin-bottom: 20px;
  }
  
  h2 {
      font-size: 16px !important;
      max-width: calc(100% - 15px);
      margin-bottom: 20px;
  }
  
  .hero-image {
      display: none;
  }
  
  .F {
      display: none;
  }
  
  .estude-titulo {
    font-size: 1.5rem !important;
    white-space: normal;
    text-align: center;
    margin-top: 15px;
  }
}

/* MOBILE (767px para baixo) */
@media (max-width: 767px) {
  section {
      margin-left: -20px;
      margin-right: -20px;
      overflow: visible;
      width: 115%;
  }
  
  .logo {
      margin-top: 75px;
      margin-left: -30px;
      margin-bottom: 20px;
  }
  
  h1 {
    margin-top: 20px;
    margin-bottom: 20px !important;
  }
  
  .estude-titulo {
      font-size: 1.5rem !important;
      white-space: normal;
      text-align: left ;
      margin-top: 15px;
  }
  
  .estude-menos p {
      font-size: 1rem;
  }
  
  .cta-button {
      padding: 12px 15px;
  }
  
  /* Garantir que o container não corte a imagem */
  .container {
      overflow: visible;
      max-width: 100%;
      padding: 0;
  }
  
  .hero-image {
    display: none;
  }
  
  .arthur-image {
    display: none;
  }

  .professor-texto .cta-button {
    font-size: 0.8rem !important;
  }

  .estude-menos .cta-button {
    width: 85% !important;
    min-width: unset !important;
    margin: 0 auto !important;
    padding: 12px 15px !important;
    right: 25px !important;
    font-size: 0.9rem !important;
  }

  .estude-menos .cta-button::after,
  .professor-texto .cta-button::after {
    width: 20px !important;
    height: 20px !important;
    transform: translateY(-50%) scale(1) !important;
  }
}

/* DESKTOP (992px para cima) */
@media (min-width: 992px) {
  body {
      background: 
          radial-gradient(circle at 65% 20%, var(--vermelho) 0%, rgba(0,0,0,0) 30%),
          radial-gradient(circle at 25% 85%, var(--vermelho) 0%, rgba(0,0,0,0) 30%),
          #000;
  }

  .professor-image-mobile {
    display: none !important;
  }

  .arthur-image {
    display: block;
  }

  .decorative-element-01 {
    display: block;
    bottom: -10%;
    right: -150px;
    width: 40%;
    transform: rotate(15deg);
    opacity: 0.7;
  }

  .decorative-element-02 {
    display: block;
    top: 30%;
    left: -300px;
    width: 50%;
    transform: rotate(90deg);
  }

  .decorative-element-12 {
    display: block;
    top: -30%;
    right: -150px;
    width: 35%;
    transform: translateX(20%);
  }

  .decorative-element-13 {
    display: block;
    bottom: 40%;
    left: -2%;
    width: 25%;
    transform: rotate(-20deg);
  }
}

/* TABLET (768px até 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  .professor-content {
    flex-direction: row;
    gap: 30px;
    align-items: flex-start;
    padding: 0 20px;
  }

  .professor-image {
    flex: 0 0 42%;
    margin-top: -120px !important;
    margin-left: 0;
    left: 10%;
  }

  .professor-texto {
    flex: 0 0 55%;
    margin-top: 0;
  }

  .professor-button {
    margin-top: 30px;
    width: 100%;
  }

  .professor-texto .cta-button {
    text-align: left;
    min-width: 100%;
    padding: 12px 20px;
  }

  .professor-titulo {
    font-size: 1.8rem !important;
  }

  .professor-texto p {
    font-size: 16px;
  }

  .arthur-image-moobile {
    display: none;
  }

  .decorative-element-01 {
    display: block;
    bottom: -5%;
    right: -100px;
    width: 35%;
    transform: rotate(10deg);
    opacity: 0.5;
  }

  .decorative-element-02 {
    display: block;
    top: 30%;
    left: -200px;
    width: 50%;
    transform: rotate(90deg);
    opacity: 0.5;
  }

  .decorative-element-12 {
    display: block;
    top: -10%;
    right: -80px;
    width: 40%;
    transform: translateX(30%);
    opacity: 0.5;
  }

  .decorative-element-13 {
    display: block;
    bottom: 40%;
    left: -5%;
    width: 32%;
    transform: rotate(-20deg);
  }
}

/* DESKTOP (992px para cima) */
@media (min-width: 992px) {
  .professor-image-mobile {
    display: none !important;
  }

  .estude-titulo {
    font-size: 2rem !important;
  }

  .arthur-image {
    display: block;
  }

  .decorative-element-02 {
    display: block;
    top: 30%;
    left: -300px;
    width: 50%;
    transform: rotate(90deg);
  }
}

.mobile-img {
    display: block;
}

/* ===== CLASSES PARA JS ===== */
.cta-button.loading {
  color: transparent;
}

.cta-button .spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

.error-popup {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #000;
  padding: 15px 20px;
  border-radius: 5px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-left: 4px solid var(--vermelho);
}

.error-popup.show {
  opacity: 1;
}

input.error {
  border-color: var(--vermelho);
}

input.error + .error-message {
  display: block;
}

.shake {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.highlight-field {
  border-color: var(--vermelho) !important;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(195, 0, 0, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(195, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(195, 0, 0, 0); }
}

/* ===== SEÇÃO PROFESSOR ===== */
.professor {
  padding: 60px 0;
  position: relative;
  padding-bottom: 120px !important;
}

.professor-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: wrap;
}

.professor-image {
  flex: 0 0 35%;
  position: relative;
  z-index: 1;
  margin-top: -80px;
  margin-left: -30px;
}

.professor-image img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 70%,
    rgba(0,0,0,0.9) 80%,
    rgba(0,0,0,0.8) 85%,
    rgba(0,0,0,0.6) 90%,
    rgba(0,0,0,0.3) 95%,
    rgba(0,0,0,0) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0,0,0,1) 70%,
    rgba(0,0,0,0.9) 80%,
    rgba(0,0,0,0.8) 85%,
    rgba(0,0,0,0.6) 90%,
    rgba(0,0,0,0.3) 95%,
    rgba(0,0,0,0) 100%
  );
}

.professor-texto {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.professor-button {
  margin-top: 30px;
}

.professor-texto .cta-button {
  width: 100%;
  min-width: 100%;
  padding: 15px;
  display: inline-block;
  text-decoration: none;
  text-align: left;
  white-space: nowrap;
}

.professor-texto .cta-button::after {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-left: 10px;
  background-image: url('assets/arrow-right.svg');
  background-size: contain;
  background-position: center;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%) scale(1.3);
  filter: brightness(0) invert(1);
}

.professor-texto .cta-button.loading {
  color: transparent;
}

.professor-texto .cta-button .spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

.professor-texto .cta-button:hover {
  background-color: #008a44;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 166, 81, 0.2);
}

.professor-texto .cta-button:active {
  transform: translateY(0);
}

.professor-texto .cta-button.shake {
  animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

.professor-titulo {
  font-size: 2rem;
  font-weight: 700 !important;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 20px;
}

.professor-texto p {
  font-size: 17.5px;
  line-height: 1.6;
}

/* ===== SEÇÃO PROFESSOR - MOBILE ===== */
@media (max-width: 767px) {
  .professor {
    padding: 20px 0;
    position: relative ;
  }

  .professor-content {
    flex-direction: column;
    gap: 20px;
    padding-right: 145px;
    padding-left: 45px;
    margin-top:60px;
  }

  .professor-image {
    display: none;
  }

  .professor-texto {
    width: 100%;
    position: relative;
    z-index: 2 !important; 
  }

  .professor-titulo {
    font-size: 27px !important;
    margin-bottom: 15px;
  }

  .professor-texto p {
    font-size: 17.5px;
  }
  
  .professor-button {
    margin-top: 25px;
    width: 100%;
  }
  
  .professor-texto .cta-button {
    text-align: left;
    padding: 12px 15px;
  }

  .arthur-image-moobile {
    display: block !important;
    width: 135%;
    margin-left: 52%;
    margin-top: -520px;
    position: relative;
    border-radius: 15px;
    mask-image: linear-gradient(
      to bottom,
      rgba(0,0,0,1) 0%,
      rgba(0,0,0,1) 0%,
      rgba(0,0,0,0.9) 35%,
      rgba(0,0,0,0.8) 50%,
      rgba(0,0,0,0) 80%
    );
    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0,0,0,1) 0%,
      rgba(0,0,0,1) 0%,
      rgba(0,0,0,0.9) 35%,
      rgba(0,0,0,0.8) 50%,
      rgba(0,0,0,0) 80%
    );
  }

  .decorative-element-01 {
    display: none;
  }
}

/* ===== ELEMENTOS DECORATIVOS ===== */
.decorative-element {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* Desktop (992px para cima) */
@media (min-width: 992px) {
  /* Elementos da página index */
  .index-page .decorative-element-01 {
    display: block;
    bottom: 15%;
    right: -225px;
    width: 40%;
    transform: rotate(-10deg);
    opacity: 0.7;
  }
  .decorative-element-09 {
    display: none;
  }

  .index-page .decorative-element-02 {
    display: block;
    top: 30%;
    left: -300px;
    width: 50%;
    transform: rotate(90deg);
  }

  .index-page .decorative-element-12 {
    display: block;
    top: -30%;
    right: -150px;
    width: 35%;
    transform: translateX(20%);
  }

  .index-page .decorative-element-13 {
    display: block;
    bottom: 42%;
    left: 0%;
    width: 24%;
    transform: rotate(-20deg);
  }

  /* Elementos da página obrigado */
  .obrigado-page .decorative-element-12 {
    display: block;
    top: -10%;
    right: -130px;
    width: 30%;
    transform: translateX(20%);
  }

  .obrigado-page .decorative-element-13 {
    display: block;
    bottom: -20%;
    left: -4%;
    width: 25%;
    transform: rotate(-20deg);
  }
}

/* Tablet (768px até 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  /* Elementos da página index */
  .index-page .decorative-element-01 {
    display: block;
    bottom: 12%;
    right: -135px;
    width: 40%;
    transform: rotate(10deg);
    opacity: 0.5;
  }
  .decorative-element-09 {
    display: none;
  }

  .index-page .decorative-element-02 {
    display: block;
    top: 30%;
    left: -200px;
    width: 50%;
    transform: rotate(90deg);
    opacity: 0.5;
  }

  .index-page .decorative-element-12 {
    display: block;
    top: -10%;
    right: -80px;
    width: 40%;
    transform: translateX(30%);
    opacity: 0.5;
  }

  .index-page .decorative-element-13 {
    display: block;
    bottom: 40%;
    left: -5%;
    width: 32%;
    transform: rotate(-20deg);
  }

  /* Elementos da página obrigado */
  .obrigado-page .decorative-element-12 {
    display: block;
    top: -10%;
    right: -80px;
    width: 40%;
    transform: translateX(30%);
    opacity: 0.5;
  }

  .obrigado-page .decorative-element-13 {
    display: block;
    bottom: -15%;
    left: -10%;
    width: 30%;
    transform: rotate(-20deg);
  }
}

/* Mobile (767px para baixo) */
@media (max-width: 767px) {
  /* Elementos da página index */
  .index-page .decorative-element-01,
  .index-page .decorative-element-02,
  .index-page .decorative-element-12,
  .index-page .decorative-element-13 {
    display: none;
  }

  /* Elementos da página obrigado */
  .obrigado-page .decorative-element-12,
  .obrigado-page .decorative-element-13 {
    display: none;
  }
  .decorative-element-09 {
    display: block;
    width: 105%;
    top: -10%;
    right: -60%;
    transform: rotate(-5deg);
    opacity: 0.5;
  }

  /* Ajustes específicos para mobile */
  .important-title {
    font-size: 2.5rem !important;
  }

  .cta-button {
    width: 100% !important;
    max-width: none !important;
    padding: 12px 15px !important;
    text-align: left !important;
  }

  .cta-button::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-left: 10px;
    background-image: url('assets/arrow-right.svg');
    background-size: contain;
    background-position: center;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) scale(1.3);
    filter: brightness(0) invert(1);
  }
}

/* Ajustes para garantir que os elementos fiquem atrás do conteúdo */
.hero, .estude-menos, .professor {
  position: relative;
  z-index: 1;
  overflow: visible;
}

.hero-content, .estude-menos-content, .professor-content {
  position: relative;
  z-index: 2;
}

/* Garantir que as seções mantenham suas margens originais */
.hero {
  padding: 60px 0 80px;
}

.estude-menos {
  padding: 20px 0 80px;
}

.professor {
  padding: 60px 0;
  padding-bottom: 120px !important;
}

/* Ajustes específicos para mobile */
@media (max-width: 767px) {
  .hero {
    padding: 40px 0;
  }

  .estude-menos {
    padding: 20px 0 40px;
  }

  .professor {
    padding: 20px 0;
    padding-bottom: 0 !important;
  }
}