/* ══════════════════════════════════════════════
   GAER FRANQUIAS — CSS do Formulário de Cadastro
   Adicionar ao final do arquivo styles.css
   ══════════════════════════════════════════════ */

/* ── SEÇÃO FORMULÁRIO ── */
.form-section {
  background: linear-gradient(135deg, #0f0808 0%, #1a0a0a 50%, #0f0808 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) {
  .form-section { padding: 7rem 0; }
}

/* Ornamento de fundo */
.form-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse at center, rgba(192,57,43,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── CABECALHO DA SECAO ── */
.form-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  position: relative;
  z-index: 1;
}

.form-eyebrow {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #fff;
  border: 1px solid #fff;
  background: rgba(192,57,43,0.08);
  border-radius: 9999px;
  padding: 0.35rem 1rem;
  margin-bottom: 1rem;
}

.form-header-desc {
  margin-top: 0.75rem;
  color: rgba(200,200,200,0.7);
  font-size: 2rem;
  line-height: 1.6;
}

/* ── CARD DO FORMULARIO ── */
.form-card {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
  background: #161010;
  border: 1px solid rgba(192,57,43,0.2);
  border-radius: 1.5rem;
  padding: 2.5rem;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.5),
    0 24px 80px -20px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.04);
}
@media (max-width: 639px) {
  .form-card { padding: 1.5rem 1.25rem; border-radius: 1rem; }
}

/* ── LINHAS DO FORMULARIO ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 639px) {
  .form-row { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
}

/* ── LINHAS DO FORMULARIO ── */
.form-row1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 639px) {
  .form-row1 { grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1rem; }
}

/* ── GRUPOS DE CAMPO ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-group--checkbox {
  margin-bottom: 1.75rem;
  margin-top: 0.5rem;
}

/* ── LABELS ── */
.form-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(200,200,200,0.85);
}
.form-label1 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(200,200,200,0.85);
}

.form-required {
  color: var(--primary);
  margin-left: 0.15rem;
}

/* ── INPUTS E SELECT ── */
.form-input {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.625rem;
  padding: 0.75rem 1rem;
  color: #f0f0f0;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 0.95rem;
  width: 100%;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-input1 {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.625rem;
  padding: 0.75rem 1rem;
  color: #f0f0f0;
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 0.95rem;
  width: 100%;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder {
  color: rgba(255,255,255,0.25);
}

.form-input:hover {
  border-color: rgba(192,57,43,0.35);
  background: rgba(255,255,255,0.06);
}

.form-input:focus {
  border-color: var(--primary);
  background: rgba(192,57,43,0.06);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.15);
}

.form-input.is-invalid {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231,76,60,0.15);
}

.form-input.is-valid {
  border-color: #27ae60;
}

/* ── SELECT PERSONALIZADO ── */
.form-select-wrap {
  position: relative;
}
.form-select {
  cursor: pointer;
  padding-right: 2.5rem;
}
.form-select option {
  background: #1c1010;
  color: #f0f0f0;
}
.select-arrow {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  stroke: rgba(200,200,200,0.5);
  transition: stroke 0.2s;
}
.form-select-wrap:focus-within .select-arrow {
  stroke: var(--primary);
}

/* ── CHECKBOX PERSONALIZADO ── */
.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
}
.form-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.form-checkbox-box {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.3rem;
  border: 2px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.04);
  display: grid;
  place-items: center;
  transition: border-color 0.2s, background 0.2s;
  margin-top: 0.1rem;
}
.form-checkbox-box svg {
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.15s, transform 0.15s;
}
.form-checkbox:checked + .form-checkbox-box {
  background: var(--primary);
  border-color: var(--primary);
}
.form-checkbox:checked + .form-checkbox-box svg {
  opacity: 1;
  transform: scale(1);
}
.form-checkbox-label:hover .form-checkbox-box {
  border-color: var(--primary);
}
.form-checkbox-text {
  font-size: 0.875rem;
  color: rgba(200,200,200,0.75);
  line-height: 1.5;
}
.form-link {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}
.form-link:hover {
  color: var(--primary-light);
}

/* ── MENSAGENS DE ERRO INLINE ── */
.form-error-msg {
  font-size: 0.75rem;
  color: #e74c3c;
  min-height: 1rem;
  display: block;
  font-weight: 500;
}

/* ── BOTAO DE ENVIO ── */
.form-submit-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.form-btn {
  padding: 0.875rem 2.5rem;
  font-size: 0.95rem;
  min-width: 240px;
  justify-content: center;
  position: relative;
}
.form-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}
.form-disclaimer {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── FEEDBACKS DE SUCESSO / ERRO ── */
.form-feedback {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.form-feedback strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.2rem;
}
.form-feedback p {
  font-size: 0.8rem;
  opacity: 0.85;
}
.form-feedback svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.form-feedback--success {
  background: rgba(39,174,96,0.1);
  border: 1px solid rgba(39,174,96,0.3);
  color: #2ecc71;
}
.form-feedback--error {
  background: rgba(231,76,60,0.1);
  border: 1px solid rgba(231,76,60,0.3);
  color: #e74c3c;
}

/* ── MOBILE ── */
@media (max-width: 639px) {
  .form-btn {
    width: 100%;
    min-width: unset;
    padding: 0.875rem 1.5rem;
  }
  .form-header-desc {
    font-size: 0.9rem;
  }
}
