/* ============================================================
   License Forms — Base & Pro
   /templates/budgetmanager/css/forms.css
   ============================================================ */

/* ── Wrapper ────────────────────────────────────────────────── */
.license-form-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.license-form-wrap h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

/* ── Form layout ────────────────────────────────────────────── */
.license-form {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

/* ── Inputs & Select ────────────────────────────────────────── */
.license-form input,
.license-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: inherit;
  border: 1.5px solid #D1D5DB;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
}

.license-form input::placeholder {
  color: #9CA3AF;
}

.license-form input:focus,
.license-form select:focus {
  outline: none;
  border-color: #C49A28;
  box-shadow: 0 0 0 3px rgba(196, 154, 40, 0.15);
}

/* Select arrow */
.license-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* ── Required field indicator ───────────────────────────────── */
.license-form input:required:not(:placeholder-shown):valid {
  border-color: #22C55E;
}

.license-form input:required:not(:placeholder-shown):invalid {
  border-color: #EF4444;
}

/* ── Submit button ──────────────────────────────────────────── */
.license-form .btn-full {
  width: 100%;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ── Payment note under Pro form ────────────────────────────── */
#pro-form .text-center.text-sm {
  font-size: 0.8125rem;
  opacity: 0.75;
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .license-form-wrap h2 {
    font-size: 1.375rem;
  }
}

/* ── DSGVO Consent Checkbox ─────────────────────────────────── */
.form-consent {
  display: block;
  position: relative;
  padding-left: 1.625rem;
  font-size: 0.875rem;
  color: var(--c-muted, #6B7280);
  cursor: pointer;
  line-height: 1.6;
  margin-top: 0.25rem;
}

/* Checkbox explizit als Quadrat — überschreibt runde input-Stile */
.form-consent input[type="checkbox"] {
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  min-width: 16px;
  border-radius: 3px !important;
  border: 1.5px solid #D1D5DB !important;
  background: #fff !important;
  accent-color: var(--c-accent, #F0A520);
  cursor: pointer;
  padding: 0 !important;
  appearance: auto;
  -webkit-appearance: checkbox;
}

.form-consent a {
  color: var(--c-accent-text, #A06A0A);
  text-decoration: underline;
}

.form-consent a:hover {
  color: var(--c-accent-hover, #DC9510);
}