* {
  box-sizing: border-box;
}

:root {
  --brand-blue: #004aad;
  --brand-blue-dark: #003a87;
  --text-main: #1f2937;
  --text-muted: #5f6b7a;
  --border: #cfd8e3;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(175deg, #7ac7ff, #f9f9f9);
  min-height: 100dvh;
  margin: 0;
  overflow-x: hidden;
  padding: clamp(16px, 3vw, 32px);
  color: var(--text-main);
}

.container {
  background: #fff;
  padding: clamp(20px, 4vw, 40px);
  border-radius: 14px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: all 0.3s ease;
}

.container:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.brand-block {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(16px, 4vw, 36px);
}

.logo-row .logo {
  display: block;
  max-width: min(100%, 280px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.logo-row .logo-fusve {
  max-height: 88px;
}

.logo-row .logo-rede-incluir {
  max-height: 96px;
}

h1 {
  text-align: center;
  color: var(--brand-blue);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}

label {
  display: block;
  font-size: clamp(0.95rem, 1.5vw, 1rem);
  font-weight: 600;
  color: var(--text-main);
  margin-top: 16px;
}

input, select, button {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  margin-top: 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 16px;
  transition: all 0.2s ease-in-out;
}

input:focus, select:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 4px rgba(0, 74, 173, 0.3);
  outline: none;
}

input::file-selector-button {
  margin-right: 12px;
  padding: 10px 14px;
  border: 0;
  border-radius: 6px;
  background: #e8f0ff;
  color: var(--brand-blue);
  font-weight: 600;
  cursor: pointer;
}

button {
  background-color: var(--brand-blue);
  color: white;
  border: none;
  cursor: pointer;
  margin-top: 25px;
  font-weight: 600;
  font-size: 16px;
  transition: background 0.3s;
}

button:hover {
  background-color: var(--brand-blue-dark);
}

.alert {
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  font-size: 0.95rem;
}

.alert.success {
  background-color: #c8e6c9;
  color: #256029;
}

.alert.danger {
  background-color: #ffcdd2;
  color: #c62828;
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
}

.checkbox input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  margin-top: 4px;
  flex: 0 0 auto;
}

.checkbox.termo {
  align-items: flex-start;
  font-size: clamp(0.84rem, 1.4vw, 0.95rem);
  line-height: 1.6;
  text-align: justify;
}

.checkbox.termo a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 500;
}

.checkbox.termo a:hover {
  text-decoration: underline;
}

.upload-group + .upload-group {
  margin-top: 8px;
}

.field-hint {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.recaptcha-wrap {
  margin-top: 18px;
  overflow-x: auto;
}

@media (max-width: 640px) {
  body {
    padding: 12px;
  }

  .container {
    border-radius: 12px;
    padding: 18px 16px 24px;
  }

  .container:hover {
    transform: none;
  }

  .brand-block {
    gap: 14px;
    margin-bottom: 22px;
  }

  .logo-row {
    gap: 14px 18px;
  }

  .logo-row .logo {
    max-width: 100%;
  }

  .logo-row .logo-fusve {
    max-height: 64px;
  }

  .logo-row .logo-rede-incluir {
    max-height: 72px;
  }

  input,
  select,
  button {
    font-size: 16px;
  }

  .checkbox {
    gap: 8px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 1.32rem;
  }

  label {
    font-size: 0.92rem;
  }

  .checkbox.termo {
    font-size: 0.82rem;
  }
}
