/* ===== VARIÁVEIS GLOBAIS ===== */
@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

:root {
  --primary-blue: #025aa4;
  --accent-orange: #ff8c00;
  --text-dark: #1a1a1a;
  --bg-glass: rgba(255, 255, 255, 0.95);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

/* ===== LAYOUT & BACKGROUND ===== */
body,
html {
  height: 100%;
  overflow: hidden;
  background-color: #f0f2f5;
  background-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.03) 1px,
      transparent 1px
    ),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    radial-gradient(rgba(0, 0, 0, 0.15) 1px, transparent 1px);
  background-size: 40px 40px, 40px 40px, 40px 40px;
  background-position: 0 0, 0 0, 20px 20px;
}

/* ===== CONTAINER PRINCIPAL (Mais largo) ===== */
.form-container {
  background-color: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  width: 100%;
  max-width: 680px; /* Aumentado de 620px para 680px para comportar texto maior */
  margin: 5vh auto;
  padding: 3rem 2.5rem; /* Mais espaçamento interno */
  border-radius: 14px;
  box-shadow: var(--shadow-soft);

  display: flex;
  flex-direction: column;
  align-items: center;

  max-height: 92vh;
  min-height: auto;
  overflow-y: auto;

  border: 1px solid rgba(255, 255, 255, 0.6);
}

/* Scrollbar */
.form-container::-webkit-scrollbar {
  width: 8px; /* Um pouco mais larga */
}
.form-container::-webkit-scrollbar-track {
  background: transparent;
}
.form-container::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 20px;
}

.form-container img {
  max-width: 240px; /* Logo maior (+20px) */
  margin-bottom: 1.8rem;
  height: auto;
  display: block;
}

h2 {
  margin: 0 auto 1.8rem auto;
  font-size: 2rem; /* Aumentado de 1.8rem */
  color: var(--text-dark);
  text-align: center;
  width: 100%;
  font-weight: 700; /* Um pouco mais de peso */
}

/* ===== INPUTS & SELECTS (Mais altos e legíveis) ===== */
input,
select {
  width: 100%;
  padding: 14px 8px; /* Aumentado padding vertical e horizontal */
  margin-bottom: 24px; /* Mais espaço entre os campos */
  border: none;
  border-bottom: 2px solid var(--primary-blue);
  border-radius: 0;
  font-size: 1.25rem; /* Aumentado de 1.1rem */
  background-color: transparent;
  color: var(--text-dark);
  outline: none;
  transition: all 0.3s ease;
}

/* Select Custom Arrow */
select {
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  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='%23025aa4' 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 0 center;
  background-size: 20px; /* Seta maior (era 16px) */
  padding-right: 30px;
}

/* Efeitos de Foco */
input:focus,
select:focus,
input:hover,
select:hover {
  border-bottom-color: var(--accent-orange);
  background-color: rgba(255, 140, 0, 0.03);
}

input::placeholder {
  color: #999;
  font-size: 1.15rem; /* Placeholder acompanha o tamanho */
}

/* ===== BOTÕES (Mais robustos) ===== */
button {
  width: 100%;
  padding: 18px; /* Mais "gordinho" */
  background-color: var(--accent-orange);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1.25rem; /* Texto do botão maior */
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, background-color 0.3s, box-shadow 0.3s;
  margin-top: 2rem;
  box-shadow: 0 4px 8px rgba(255, 140, 0, 0.3);
}

button:hover {
  background-color: var(--primary-blue);
  box-shadow: 0 8px 16px rgba(2, 90, 164, 0.3);
  transform: translateY(-2px);
}

button:active {
  transform: translateY(0);
}

/* ===== LABELS & TEXTO ===== */
label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem; /* Aumentado de 0.95rem */
  line-height: 1.5;
  color: #333; /* Um pouco mais escuro para contraste */
  text-align: left;
  cursor: pointer;
  margin-bottom: 12px;
}

footer {
  text-align: center;
  padding: 25px;
  font-size: 1rem; /* Rodapé mais legível */
  color: #555;
  margin-top: auto;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  body,
  html {
    overflow: auto;
    height: auto;
  }

  .form-container {
    margin: 0;
    max-width: 100%;
    min-height: 100vh;
    border-radius: 0;
    border: none;
    padding: 40px 25px; /* Mantém padding bom no mobile */
    backdrop-filter: none;
  }

  /* No mobile, talvez o H2 muito grande quebre, então ajustamos só ele */
  h2 {
    font-size: 1.75rem;
  }
}
