/**
 * GeoFazendas Form Layout
 * Input groups, selects, form cards, row spacing, submit area, and reCAPTCHA notice.
 * Split from components/forms.css
 */

/* =============================================================================
   Input Group Styles
   ============================================================================= */
.gf-form .input-group .form-control,
.gf-form .input-group .gf-form-control {
  border-radius: var(--gf-button-radius);
}

.gf-form .input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
  margin-left: -1px;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.gf-form .input-group > :not(:last-child):not(.dropdown-menu):not(.dropdown-toggle) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.gf-form .input-group .btn {
  min-height: var(--gf-field-min-height);
}

/* =============================================================================
   Select Styles
   ============================================================================= */
.gf-form select.form-control,
.gf-form select.gf-form-control,
.gf-form .form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.5rem;
  appearance: none;
}

/* =============================================================================
   Card-based Form Section
   ============================================================================= */
.gf-form-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.gf-form-card h2,
.gf-form-card h3 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--gf-color-neutral-900);
  margin-bottom: 1.25rem;
}

.gf-form-card h2 .material-icons,
.gf-form-card h3 .material-icons {
  font-size: 1.25rem;
  color: var(--gf-color-primary);
}

@media (min-width: 768px) {
  .gf-form-card {
    padding: 2rem;
  }
}

/* =============================================================================
   Form Row Spacing
   ============================================================================= */
.gf-form .row.g-3 > [class*="col-"] {
  margin-bottom: 0.5rem;
}

.gf-form .mb-3:last-child {
  margin-bottom: 0 !important;
}

/* =============================================================================
   Submit Button Area
   ============================================================================= */
.gf-form .form-submit-area {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.gf-form .form-submit-area .btn {
  min-height: 3rem;
}

/* =============================================================================
   reCAPTCHA Notice
   ============================================================================= */
.gf-form .recaptcha-notice {
  font-size: 0.75rem;
  color: var(--gf-color-neutral-500);
  margin-top: 0.75rem;
}

.gf-form .recaptcha-notice a {
  color: var(--gf-color-primary);
}
