/* PrestaHU OnlineWithdraw — front CSS
 *
 * SZABÁLY: csak a form-mezőket és a form-szintű elemeket stílusozzuk.
 * A user által szerkesztett .pshuow-intro és .pshuow-success blokkokat NEM
 * érintjük — azok formázása a WYSIWYG-be írt HTML felelőssége.
 */

/* Form layout */
.pshuow-form { display: block; }
.pshuow-form .pshuow-field { margin-bottom: 1.25rem; }
.pshuow-form label,
.pshuow-form .pshuow-field > label,
.pshuow-form .pshuow-radio,
.pshuow-form .pshuow-checkbox {
  text-align: left;
}
.pshuow-form .pshuow-field > label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: inherit;
}
.pshuow-form .pshuow-req { color: #c0392b; margin-left: 2px; }

/* Inputs */
.pshuow-form .form-control,
.pshuow-form input[type="text"],
.pshuow-form input[type="email"],
.pshuow-form input[type="tel"],
.pshuow-form input[type="number"],
.pshuow-form input[type="date"],
.pshuow-form select,
.pshuow-form textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 1rem;
  line-height: 1.4;
  color: inherit;
  background: #fff;
  border: 1px solid #d0d4dc;
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pshuow-form .form-control:focus,
.pshuow-form input:focus,
.pshuow-form select:focus,
.pshuow-form textarea:focus {
  outline: 0;
  border-color: #5b9dd9;
  box-shadow: 0 0 0 3px rgba(91, 157, 217, 0.15);
}
.pshuow-form textarea.form-control,
.pshuow-form textarea { min-height: 110px; resize: vertical; }

.pshuow-form .form-control-file {
  display: block;
  width: 100%;
  padding: 0.5rem 0;
  font-size: 0.95rem;
}

.pshuow-form .form-text {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* Checkbox + radio groups */
.pshuow-form .pshuow-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: normal;
  cursor: pointer;
  line-height: 1.4;
}
.pshuow-form .pshuow-checkbox input[type="checkbox"] {
  margin-top: 0.25rem;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}
.pshuow-form .pshuow-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.pshuow-form .pshuow-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: normal;
  cursor: pointer;
}

/* Legal notice block (auto-rendered when ÁSZF / Adatkezelési URL be van állítva) */
.pshuow-legal-notice {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.03);
  border-left: 3px solid rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  line-height: 1.5;
}
.pshuow-legal-notice a { text-decoration: underline; }

/* Submit */
.pshuow-form .pshuow-submit { margin-top: 1.75rem; }
.pshuow-form .pshuow-submit .btn { padding: 0.7rem 1.75rem; font-weight: 600; }

/* reCAPTCHA wrapper */
.pshuow-form .pshuow-recaptcha { margin: 1rem 0 1.25rem; }

/* Honeypot — anti-bot, must be visually hidden but in DOM */
.pshuow-form .pshuow-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Status badges (fiókom > elállási kérelmeim — működik BS3/BS4 themeken is) */
.pshuow-status-badge {
  display: inline-block;
  padding: 0.35em 0.7em;
  font-size: 0.85em;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  border-radius: 3px;
  white-space: nowrap;
  vertical-align: baseline;
}
.pshuow-status-badge.pshuow-color-danger  { background: #d9534f; }
.pshuow-status-badge.pshuow-color-info    { background: #17a2b8; }
.pshuow-status-badge.pshuow-color-warning { background: #f0ad4e; color: #222; }
.pshuow-status-badge.pshuow-color-success { background: #28a745; }
.pshuow-status-badge.pshuow-color-default { background: #6c757d; }

/* History link (above the form) */
.pshuow-history-link { margin: 0 0 1rem; font-size: 0.9rem; }

/* Responsive */
@media (max-width: 480px) {
  .pshuow-form .form-control,
  .pshuow-form input,
  .pshuow-form select,
  .pshuow-form textarea { font-size: 16px; /* prevent iOS zoom */ }
  .pshuow-form .pshuow-radio-group { flex-direction: column; }
}
