/* DFP Invoice Request Form — UI simplificată mobile-first (15-Mai-2026) */

.dfp-irf-wrapper {
  max-width: 720px;
  margin: 30px auto;
  padding: 0 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.dfp-irf-title {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px;
  line-height: 1.3;
}

.dfp-irf-info {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  padding: 12px 16px;
  border-radius: 6px;
  margin-bottom: 24px;
  font-size: 14px;
  color: #1e3a8a;
  line-height: 1.5;
}
.dfp-irf-info p { margin: 0 0 4px; }
.dfp-irf-info p:last-child { margin-bottom: 0; }
.dfp-irf-info small { color: #475569; }

.dfp-irf-form { margin-bottom: 40px; }

.dfp-irf-section {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  background: #fff;
}

.dfp-irf-section legend {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  padding: 0 8px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.dfp-irf-badge-required {
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
}

.dfp-irf-field {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}
.dfp-irf-field.is-filled {
  background: #f0fdf4;
  border-color: #86efac;
}
.dfp-irf-field label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
}
.dfp-irf-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #cbd5e1;
  color: #475569;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.dfp-irf-field.is-filled .dfp-irf-step {
  background: #16a34a;
  color: #fff;
}

.dfp-irf-field input,
.dfp-irf-field input.form-control {
  width: 100%;
  padding: 10px 12px;
  font-size: 15px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  outline: none;
  -webkit-appearance: none;
}
.dfp-irf-field input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.15); }
.dfp-irf-help {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

.dfp-irf-counter-box {
  margin-top: 16px;
  padding: 12px 16px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #92400e;
}
.dfp-irf-counter-box.is-valid {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}
.dfp-irf-counter-fill { font-weight: 700; }
.dfp-irf-counter-fill .dfp-irf-filled { font-size: 18px; }
.dfp-irf-counter-msg { font-size: 13px; }
.dfp-irf-counter-box.is-valid .dfp-irf-counter-msg { display: none; }
.dfp-irf-counter-box.is-valid .dfp-irf-counter-fill::after {
  content: ' ✓ minim 2 atins';
  font-size: 13px;
  font-weight: 600;
}

.dfp-irf-consent { background: #f1f5f9; }
.dfp-irf-consent .form-check { display: flex; align-items: flex-start; gap: 10px; }
.dfp-irf-consent input[type=checkbox] { width: 20px; height: 20px; margin: 2px 0 0; flex-shrink: 0; }
.dfp-irf-consent label { font-size: 14px; color: #475569; line-height: 1.5; }
.required { color: #dc2626; }

.dfp-irf-actions { text-align: center; margin-top: 24px; }
.dfp-irf-actions .btn-primary {
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  background: #2563eb;
  color: #fff;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  min-width: 220px;
  transition: all 0.15s ease;
}
.dfp-irf-actions .btn-primary:disabled { background: #cbd5e1; color: #64748b; cursor: not-allowed; }
.dfp-irf-actions .btn-primary:not(:disabled):hover { background: #1d4ed8; }

.dfp-irf-success {
  padding: 24px;
  background: #f0fdf4;
  border: 2px solid #86efac;
  border-radius: 12px;
}
.dfp-irf-success h3 { margin: 0 0 12px; color: #15803d; }
.dfp-irf-errors { margin: 0; padding-left: 20px; }

/* Honeypot — hidden visual but accessible to bots */
.dfp-irf-hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

@media (max-width: 640px) {
  .dfp-irf-title { font-size: 20px; }
  .dfp-irf-section { padding: 14px; }
  .dfp-irf-actions .btn-primary { width: 100%; }
}
