/* ============================================
   LGPD — Forja Marketing
   Form styles for Canal LGPD
   ============================================ */

.lgpd-form {
  margin-top: 32px;
}

.lgpd-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.lgpd-form__group {
  margin-bottom: 24px;
}

.lgpd-form__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.lgpd-form__optional {
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  opacity: 0.6;
}

.lgpd-form__input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-primary);
  background: var(--black);
  border: 1px solid var(--border-light);
  border-radius: 2px;
  padding: 14px 18px;
  outline: none;
  transition: all 0.3s ease;
  -webkit-appearance: none;
}

.lgpd-form__input::placeholder {
  color: var(--text-muted);
  opacity: 0.4;
}

.lgpd-form__input:hover {
  border-color: rgba(255, 255, 255, 0.12);
}

.lgpd-form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(140, 106, 59, 0.1);
}

.lgpd-form__input--error,
.lgpd-form__input--error:hover,
.lgpd-form__input--error:focus {
  border-color: #8B3A3A;
  box-shadow: 0 0 0 3px rgba(139, 58, 58, 0.1);
}

/* Select */
.lgpd-form__select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238C6A3B' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  color-scheme: dark;
}

.lgpd-form__select option {
  background: var(--black-card);
  color: var(--text-primary);
}

/* Textarea */
.lgpd-form__textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.7;
}

/* Submit */
.lgpd-form__submit {
  width: 100%;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 0.9375rem;
  margin-top: 8px;
}

.lgpd-form__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Spinner */
.lgpd-form__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: lgpdSpin 0.7s linear infinite;
}

@keyframes lgpdSpin {
  to { transform: rotate(360deg); }
}

/* Feedback */
.lgpd-form__feedback {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 2px;
  font-size: 0.875rem;
  line-height: 1.6;
  text-align: center;
}

.lgpd-form__feedback--error {
  background: rgba(139, 58, 58, 0.1);
  border: 1px solid rgba(139, 58, 58, 0.25);
  color: #C27070;
}

.lgpd-form__feedback--success {
  background: rgba(140, 106, 59, 0.08);
  border: 1px solid rgba(140, 106, 59, 0.2);
  color: var(--accent);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 768px) {
  .lgpd-form__row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
