/* RESET */
:root {
  --bg: #f5f7f6;
  --card-bg: #ffffff;
  --accent: #2e7d32;
  --accent-2: #1b5e20;
  --muted: #666;
  --danger: #e53935;
  --glass: rgba(255,255,255,0.6);
  --shadow: 0 10px 30px rgba(16,24,40,0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
  font-family: 'Inter', 'Segoe UI', Tahoma, Arial, sans-serif;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f3faf1 0%, var(--bg) 100%);
  min-height: 100vh;
  color: #1f2933;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
} 

/* CENTRALIZA */
.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* CARD */
.card {
  background: var(--card-bg);
  width: 100%;
  max-width: 720px;
  padding: 34px 32px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* BANNER + CARD */
.card-banner {
  background: linear-gradient(180deg, rgba(46,125,50,0.04), rgba(255,255,255,0.6));
  width: 100%;
  max-width: 720px;
  padding: 20px;
  border-radius: calc(var(--radius) + 6px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
} 

/* TÍTULOS */
h1 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 18px;
  color: #2e7d32;
}

h2 {
  text-align: center;
  font-size: 17px;
  margin-bottom: 12px;
  color: #444;
}

h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

/* BOTÕES MODALIDADE */
.buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}

.buttons button {
  flex: 1;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #dcdcdc;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  background: #ffffff;
  color: #2f2f2f;
}

.buttons button:hover {
  border-color: #2e7d32;
  color: #2e7d32;
}

/* AVISO CUPOM*/
.aviso-cupom {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f1f8f4;
  color: #2e7d32;
  font-size: 14px;
  line-height: 1.4;
  border-left: 4px solid #2e7d32;
}


/* INPUTS E SELECT */
input,
select {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #e6e6e6;
  font-size: 15px;
  margin-top: 12px;
  background: #fff;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(46,125,50,0.06);
}

/* PLANO */

/* BOTÃO PRINCIPAL */
button {
  width: 100%;
  padding: 14px 18px;
  margin-top: 20px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(46,125,50,0.18);
  transition:
    background 0.25s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(16,24,40,0.12);
} 
.plano {
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  background: #f9faf9;
  border-left: 5px solid #2e7d32;
}

/* BOTÃO PRINCIPAL */
button {
  width: 100%;
  padding: 15px;
  margin-top: 20px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, #2e7d32, #1b5e20);
  color: #ffffff;
    transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.2s ease;
}

button:hover {
  box-shadow: 0 8px 18px rgba(46, 125, 50, 0.3);
  transform: translateY(-2px);
}

/* MATÉRIAS */
.materias {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.materia {
  flex: 1;
  padding: 14px;
  text-align: center;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  background: #f1f1f1;
  color: #333;
  border: 2px solid transparent;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease,
    transform 0.2s ease;
}

.materia:hover {
  transform: translateY(-2px);
}

/* CORES DAS MATÉRIAS */
.materia.quimica.selected {
  background: #e3f0ff;
  border-color: #2f80ed;
  color: #2f80ed;
}

.materia.fisica.selected {
  background: #fff0e0;
  border-color: #f2994a;
  color: #f2994a;
}

.materia.biologia.selected {
  background: #e8f5e9;
  border-color: #2e7d32;
  color: #2e7d32;
}

/* UTIL */
.hidden {
  display: none;
}

/* ===========================
   BARRA DE PROGRESSO
   =========================== */
.progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 30px;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 13px;
  color: #999;
  min-width: 70px;
}

.step span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  background: #fff;
  margin-bottom: 6px;
}

.step p {
  margin: 0;
  
}

/* LINHA ENTRE OS PASSOS */
.line {
  flex: 1;
  height: 2px;
  background: #ccc;
}

/* PASSO ATIVO */
.step.active span {
  border-color: #299b0d;
  background: #299b0d;
  color: #fff;
}

.step.active p {
  color: #299b0d;
}

/* PASSOS CONCLUÍDOS */
.step.done span {
  border-color: #299b0d;
  background: #dcffe7;
  color: #299b0d;
}

.step.done p {
  color: #299b0d;
}


/* ===========================
   FEEDBACK DE ERRO (FORM)
   =========================== */
.field-error {
  border-color: #e53935 !important;
  background: #fff5f5;
}

.error-message {
  color: #e53935;
  font-size: 13px;
  margin-top: 4px;
  display: none;
}



/* =====================================
   MOBILE – LAYOUT ABERTO (SEM CARD)
   ===================================== */
@media (max-width: 600px) {

  body {
    background: #f5f7f6;
  }

  /* PAGE vira container normal */
  .page {
    display: block;
    padding: 0;
  }

  /* CARD deixa de existir visualmente */
  .card {
    all: unset; /* REMOVE TUDO DO CARD */
    display: block;
    padding: 20px 16px 40px 16px;
  }

  /* TÍTULOS */
  h1 {
    font-size: 26px;
    margin: 20px 0 24px;
    text-align: left;
  }

  h2 {
    font-size: 22px;
    margin: 24px 0 16px;
    text-align: left;
  }

  h3 {
    font-size: 20px;
  }

  /* BOTÕES DE MODALIDADE (ESTILO APP) */
  .buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
  }

  .buttons button {
    padding: 22px;
    font-size: 20px;
    border-radius: 16px;
  }

  /* SELECTS GRANDES */
  select {
    width: 100%;
    padding: 20px;
    font-size: 20px;
    border-radius: 16px;
    margin-top: 16px;
  }

  /* INPUTS GRANDES */
  input {
    padding: 20px;
    font-size: 20px;
    border-radius: 16px;
    margin-top: 16px;
  }

  /* BLOCO DO PLANO */
  .plano {
    margin-top: 24px;
    padding: 20px;
    border-radius: 16px;
    font-size: 19px;
  }

  .plano p {
    font-size: 19px;
  }

  /* MATÉRIAS – BOTÕES GRANDES */
  .materias {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
  }

  .materia {
    padding: 22px;
    font-size: 20px;
    border-radius: 16px;
  }

  /* BOTÃO PRINCIPAL FIXO E GRANDE */
  button {
    width: 100%;
    padding: 24px;
    font-size: 22px;
    border-radius: 18px;
    margin-top: 32px;
    
  }

  

  /* BARRA DE PROGRESSO MAIOR */
  .progress {
  margin-bottom: 40px;
}

.step p {
  font-size: 14px;
}

.step span {
  width: 44px;
  height: 44px;
  font-size: 16px;
}

}

/* ===========================
   BANNER SUPERIOR (LOGO)
   =========================== */
.banner {
  width: 100%;
  max-width: 460px;          /* exatamente a largura do card */
  margin: 0 auto 16px auto;  /* centraliza e dá espaço */
  display: flex;
  justify-content: center;
  align-items: center; 
}

/* AQUI ESTÁ A CHAVE */
.banner img {
  max-width: 100%;           /* nunca ultrapassa o card */
  height: 72px;              /* altura controlada */
  width: auto;               /* evita esticar */
  object-fit: contain;       /* 🔥 NÃO CORTA O LOGO */
  object-position: center;
  display: block;
}

/* fallback box for small projects */
.card-banner {
  /* visual handled above; small fallback to keep backward compatibility */
  border-radius: 12px;
}

/* ACCESSIBILITY: visually hidden */
.sr-only {
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}
