/* HOB FormChat Pro | (c) 2026 HOB France Services — Groupe HOB */

:root {
  --hob-primary:       #1B5FA8;
  --hob-primary-dark:  #0F2744;
  --hob-accent:        #0A5C52;
  --hob-success-bg:    linear-gradient(135deg, #0D5C2F, #0A5C52);
  --hob-error:         #7B1A1A;
  --hob-border:        #d0d7e0;
  --hob-radius:        8px;
  --hob-transition:    0.2s ease;
  --hob-shadow:        0 2px 12px rgba(15,39,68,0.1);
  --hob-font:          -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

/* Custom colors — appliquées via CSS custom properties injectées sur le wrapper */
.hob-fc-form-wrapper { background: var(--hob-fc-bg, transparent); color: var(--hob-fc-text, inherit); }
.hob-fc-form-wrapper .hob-fc-form-title { color: var(--hob-fc-title, #0F2744); }
.hob-fc-form-wrapper .hob-fc-label,
.hob-fc-form-wrapper .hob-fc-field-label { color: var(--hob-fc-title, #1a2332); }
.hob-fc-form-wrapper a { color: var(--hob-fc-link, var(--hob-primary)); }
.hob-fc-form-wrapper .hob-fc-submit,
.hob-fc-form-wrapper .hob-fc-submit-btn { background: var(--hob-fc-btn-bg, var(--hob-primary)); color: var(--hob-fc-btn-text, #fff); }
.hob-fc-form-wrapper .hob-fc-submit:hover:not(:disabled),
.hob-fc-form-wrapper .hob-fc-submit-btn:hover:not(:disabled) { background: var(--hob-fc-btn-bg, var(--hob-primary-dark)); filter: brightness(0.9); }
.hob-fc-form-wrapper .hob-fc-input,
.hob-fc-form-wrapper .hob-fc-textarea,
.hob-fc-form-wrapper .hob-fc-select,
.hob-fc-form-wrapper .hob-fc-field input,
.hob-fc-form-wrapper .hob-fc-field textarea,
.hob-fc-form-wrapper .hob-fc-field select { background: var(--hob-fc-input-bg, #fff); border-color: var(--hob-fc-input-border, var(--hob-border)); }
.hob-fc-form-wrapper .hob-fc-input:focus,
.hob-fc-form-wrapper .hob-fc-field input:focus,
.hob-fc-form-wrapper .hob-fc-field textarea:focus,
.hob-fc-form-wrapper .hob-fc-field select:focus { border-color: var(--hob-fc-accent, var(--hob-primary)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hob-fc-accent, var(--hob-primary)) 12%, transparent); }
.hob-fc-form-wrapper .hob-fc-field-error { color: var(--hob-fc-error, var(--hob-error)); }
.hob-fc-form-wrapper .hob-fc-input.hob-fc-invalid,
.hob-fc-form-wrapper .hob-fc-field input.hob-fc-invalid { border-color: var(--hob-fc-error, var(--hob-error)); }

/* Wrapper — par défaut 680px centré, surchargeable par le style inline du renderer */
.hob-fc-form-wrapper {
  width: 100%; max-width: 680px; margin-left: auto; margin-right: auto; padding: 0; box-sizing: border-box;
}
/* Full-width breakout: escapes narrow theme content containers */
.hob-fc-form-wrapper--full {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

/* Formulaire */
.hob-fc-form {
  font-family: var(--hob-font);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 36px 40px;
  background: #fff;
  border-radius: var(--hob-radius);
  box-shadow: var(--hob-shadow);
  border: 1px solid #e8ecf0;
}

/* Titre */
.hob-fc-form-title {
  font-size: 22px; font-weight: 700; color: #0F2744;
  margin: 0 0 24px; letter-spacing: -0.02em;
  border-bottom: 3px solid var(--hob-primary); padding-bottom: 12px;
}

/* Champ */
.hob-fc-field { margin-bottom: 20px; }
.hob-fc-field-wrap { margin-bottom: 20px; }
.hob-fc-label, .hob-fc-field-label {
  display: block; font-size: 13px; font-weight: 600;
  color: #1a2332; margin-bottom: 6px; letter-spacing: -0.01em;
}
.hob-fc-field-label--bottom {
  margin-top: 8px;
  margin-bottom: 0;
  text-align: center;
  font-size: 12px;
  color: #6b7a8d;
}
.hob-fc-required { color: var(--hob-error); margin-left: 3px; font-weight: 400; }
.hob-fc-description, .hob-fc-field-help { font-size: 12px; color: #6b7a8d; margin-top: 4px; }

/* Inputs */
.hob-fc-input, .hob-fc-textarea, .hob-fc-select,
.hob-fc-field input[type="text"], .hob-fc-field input[type="email"],
.hob-fc-field input[type="tel"], .hob-fc-field input[type="url"],
.hob-fc-field input[type="number"], .hob-fc-field input[type="date"],
.hob-fc-field input[type="time"], .hob-fc-field input[type="datetime-local"],
.hob-fc-field textarea, .hob-fc-field select {
  width: 100%; box-sizing: border-box;
  padding: 11px 14px; font-size: 15px;
  font-family: var(--hob-font); color: #1a2332; background: #fff;
  border: 1.5px solid var(--hob-border); border-radius: 6px;
  outline: none; appearance: none;
  transition: border-color var(--hob-transition), box-shadow var(--hob-transition);
}
.hob-fc-input:focus, .hob-fc-textarea:focus, .hob-fc-select:focus,
.hob-fc-field input:focus, .hob-fc-field textarea:focus, .hob-fc-field select:focus {
  border-color: var(--hob-primary);
  box-shadow: 0 0 0 3px rgba(27,95,168,0.12);
}
.hob-fc-textarea, .hob-fc-field textarea { resize: vertical; min-height: 100px; }

/* Validation inline */
.hob-fc-input.hob-fc-invalid, .hob-fc-textarea.hob-fc-invalid,
.hob-fc-field input.hob-fc-invalid, .hob-fc-field textarea.hob-fc-invalid {
  border-color: var(--hob-error);
  box-shadow: 0 0 0 3px rgba(123,26,26,0.1);
  animation: hob-shake 0.3s ease;
}
.hob-fc-input.hob-fc-valid, .hob-fc-field input.hob-fc-valid { border-color: #0D5C2F; }

@keyframes hob-shake {
  0%,100%{transform:translateX(0)} 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)}
}

/* Erreurs inline */
.hob-fc-field-error {
  display: none; font-size: 12px; color: var(--hob-error);
  margin-top: 5px; align-items: center; gap: 5px;
  animation: hob-fadein 0.2s ease;
}
.hob-fc-field-error.visible { display: flex; }
@keyframes hob-fadein { from{opacity:0;transform:translateY(-3px)} to{opacity:1;transform:translateY(0)} }

/* Bouton submit */
.hob-fc-submit, .hob-fc-submit-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 32px; font-size: 15px; font-weight: 600;
  font-family: var(--hob-font); color: #fff;
  background: var(--hob-primary); border: none; border-radius: 6px;
  cursor: pointer; position: relative; overflow: hidden;
  transition: background var(--hob-transition), transform var(--hob-transition),
              box-shadow var(--hob-transition);
}
.hob-fc-submit:hover:not(:disabled), .hob-fc-submit-btn:hover:not(:disabled) {
  background: var(--hob-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15,39,68,0.28);
}
.hob-fc-submit:disabled, .hob-fc-submit-btn:disabled { opacity: 0.65; cursor: not-allowed; }
.hob-fc-submit.loading::after, .hob-fc-submit-btn.loading::after {
  content: ""; position: absolute; right: 14px;
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff; border-radius: 50%;
  animation: hob-spin 0.7s linear infinite;
}
@keyframes hob-spin { to{transform:rotate(360deg)} }

/* Message de succes */
.hob-fc-success-message {
  padding: 28px 36px; text-align: center;
  background: var(--hob-success-bg); color: #fff;
  border-radius: var(--hob-radius);
  animation: hob-popin 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes hob-popin { from{opacity:0;transform:scale(0.88)} to{opacity:1;transform:scale(1)} }
.hob-fc-success-message p { font-size: 16px; margin: 0; font-weight: 500; }

/* Grille des colonnes */
.hob-fc-row, .hob-fc-form-row { display: flex; flex-wrap: wrap; gap: 16px; width: 100%; align-items: flex-start; }
.hob-fc-col, .hob-fc-field-wrapper { min-width: 0; box-sizing: border-box; }
.hob-fc-col-100, .hob-fc-col--100 { flex: 0 0 100%; width: 100%; }
.hob-fc-col-75,  .hob-fc-col--75  { flex: 0 0 calc(75% - 4px); width: calc(75% - 4px); }
.hob-fc-col-66,  .hob-fc-col--66  { flex: 0 0 calc(66.6667% - 5px); width: calc(66.6667% - 5px); }
.hob-fc-col-50,  .hob-fc-col--50  { flex: 0 0 calc(50% - 8px); width: calc(50% - 8px); }
.hob-fc-col-33,  .hob-fc-col--33  { flex: 0 0 calc(33.3333% - 11px); width: calc(33.3333% - 11px); }
.hob-fc-col-25,  .hob-fc-col--25  { flex: 0 0 calc(25% - 12px); width: calc(25% - 12px); }
/* Tablette : 3+ colonnes → 2 colonnes max */
@media (max-width: 900px) {
  .hob-fc-col-33, .hob-fc-col--33,
  .hob-fc-col-25, .hob-fc-col--25 { flex: 0 0 calc(50% - 8px); width: calc(50% - 8px); }
}
/* Mobile : tout en pleine largeur */
@media (max-width: 640px) {
  .hob-fc-row, .hob-fc-form-row { gap: 0; }
  .hob-fc-col, .hob-fc-field-wrapper,
  .hob-fc-col-100, .hob-fc-col--100,
  .hob-fc-col-75,  .hob-fc-col--75,
  .hob-fc-col-66,  .hob-fc-col--66,
  .hob-fc-col-50,  .hob-fc-col--50,
  .hob-fc-col-33,  .hob-fc-col--33,
  .hob-fc-col-25,  .hob-fc-col--25 { flex: 0 0 100% !important; width: 100% !important; }
  .hob-fc-form { padding: 24px 20px; height: auto !important; min-height: 0 !important; overflow-y: visible !important; }
  .hob-fc-form-wrapper { max-width: 100% !important; margin-left: 0 !important; margin-right: 0 !important; }
}

/* Bandeau previsualisation admin */
.hob-fc-preview-notice {
  background: #FDE8C8; border-left: 4px solid #7D3C00;
  padding: 10px 16px; margin-bottom: 16px;
  font-size: 13px; color: #7D3C00; border-radius: 4px;
}

/* Submit wrap */
.hob-fc-submit-wrap { margin-top: 24px; }

/* Erreur globale */
.hob-fc-form-error, .hob-fc-global-error {
  margin-top: 12px; padding: 10px 14px;
  background: #f8d7da; color: #721c24;
  border: 1px solid #f5c6cb; border-radius: 4px; font-size: 13px;
}

/* Resubmit */
.hob-fc-resubmit-btn {
  display: inline-block; margin-top: 16px;
  padding: 10px 24px; font-size: 14px; font-weight: 500;
  color: #fff; background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.4); border-radius: 6px;
  cursor: pointer; transition: background 0.2s;
}
.hob-fc-resubmit-btn:hover { background: rgba(255,255,255,0.3); }

/* THEME : MINIMAL */
[data-hob-theme="minimal"] .hob-fc-form { box-shadow: none; border: none; padding: 0; background: transparent; }
[data-hob-theme="minimal"] .hob-fc-input,
[data-hob-theme="minimal"] .hob-fc-textarea,
[data-hob-theme="minimal"] .hob-fc-field input,
[data-hob-theme="minimal"] .hob-fc-field textarea {
  border: none; border-bottom: 2px solid var(--hob-border);
  border-radius: 0; padding-left: 0; background: transparent;
}
[data-hob-theme="minimal"] .hob-fc-input:focus,
[data-hob-theme="minimal"] .hob-fc-textarea:focus,
[data-hob-theme="minimal"] .hob-fc-field input:focus,
[data-hob-theme="minimal"] .hob-fc-field textarea:focus {
  border-bottom-color: var(--hob-primary); box-shadow: none;
}

/* THEME : ARRONDI */
[data-hob-theme="rounded"] .hob-fc-form { border-radius: 20px; }
[data-hob-theme="rounded"] .hob-fc-input,
[data-hob-theme="rounded"] .hob-fc-select,
[data-hob-theme="rounded"] .hob-fc-field input,
[data-hob-theme="rounded"] .hob-fc-field select { border-radius: 50px; padding: 12px 22px; }
[data-hob-theme="rounded"] .hob-fc-textarea,
[data-hob-theme="rounded"] .hob-fc-field textarea { border-radius: 14px; }
[data-hob-theme="rounded"] .hob-fc-submit,
[data-hob-theme="rounded"] .hob-fc-submit-btn { border-radius: 50px; padding: 13px 36px; }

/* THEME : SOMBRE */
[data-hob-theme="dark"] .hob-fc-form { background: #1a2332; border-color: #2d3a4f; box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
[data-hob-theme="dark"] .hob-fc-label,
[data-hob-theme="dark"] .hob-fc-field-label,
[data-hob-theme="dark"] .hob-fc-form-title { color: #e2e8f0; }
[data-hob-theme="dark"] .hob-fc-description,
[data-hob-theme="dark"] .hob-fc-field-help { color: #8899aa; }
[data-hob-theme="dark"] .hob-fc-input,
[data-hob-theme="dark"] .hob-fc-textarea,
[data-hob-theme="dark"] .hob-fc-select,
[data-hob-theme="dark"] .hob-fc-field input,
[data-hob-theme="dark"] .hob-fc-field textarea,
[data-hob-theme="dark"] .hob-fc-field select { background: #242f42; border-color: #3a4a60; color: #e2e8f0; }
[data-hob-theme="dark"] .hob-fc-input:focus,
[data-hob-theme="dark"] .hob-fc-textarea:focus,
[data-hob-theme="dark"] .hob-fc-field input:focus,
[data-hob-theme="dark"] .hob-fc-field textarea:focus {
  border-color: #4d8fd8; box-shadow: 0 0 0 3px rgba(77,143,216,0.2);
}

/* THEME : VERRE */
[data-hob-theme="glass"] .hob-fc-form {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.3);
}
[data-hob-theme="glass"] .hob-fc-input,
[data-hob-theme="glass"] .hob-fc-textarea,
[data-hob-theme="glass"] .hob-fc-field input,
[data-hob-theme="glass"] .hob-fc-field textarea {
  background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.35); color: #fff;
}
[data-hob-theme="glass"] .hob-fc-label,
[data-hob-theme="glass"] .hob-fc-field-label,
[data-hob-theme="glass"] .hob-fc-form-title { color: #fff; }

/* ═══════════════════════════════════════════
   MULTI-PAGE : Progress bar + Navigation
   ═══════════════════════════════════════════ */

/* Progress bar container */
.hob-fc-progress {
  --hob-progress-pct: 0%;
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 24px; position: relative;
}
.hob-fc-progress-steps {
  display: flex; justify-content: center; gap: 0;
  width: 100%; position: relative;
}
/* Ligne de connexion derrière les étapes */
.hob-fc-progress-steps::before {
  content: ""; position: absolute; top: 16px; left: 10%; right: 10%;
  height: 3px; background: var(--hob-border); border-radius: 2px; z-index: 0;
}
.hob-fc-progress-steps::after {
  content: ""; position: absolute; top: 16px; left: 10%;
  width: var(--hob-progress-pct, 0%); max-width: 80%;
  height: 3px; background: var(--hob-primary); border-radius: 2px; z-index: 1;
  transition: width 0.4s ease;
}

/* Step */
.hob-fc-step {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; position: relative; z-index: 2;
  opacity: 0.5; transition: opacity 0.3s ease;
}
.hob-fc-step.active, .hob-fc-step.done { opacity: 1; }
.hob-fc-step-num {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #6b7a8d;
  background: #fff; border: 2.5px solid var(--hob-border);
  transition: all 0.3s ease;
}
.hob-fc-step.active .hob-fc-step-num {
  background: var(--hob-primary); border-color: var(--hob-primary); color: #fff;
  box-shadow: 0 2px 8px rgba(27,95,168,0.3);
}
.hob-fc-step.done .hob-fc-step-num {
  background: #0D5C2F; border-color: #0D5C2F; color: #fff;
}
.hob-fc-step-label {
  font-size: 11px; color: #6b7a8d; margin-top: 6px;
  text-align: center; max-width: 100px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hob-fc-step.active .hob-fc-step-label { color: var(--hob-primary); font-weight: 600; }
.hob-fc-step.done .hob-fc-step-label { color: #0D5C2F; }

/* Page navigation buttons */
.hob-fc-page-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid #e8ecf0;
}
.hob-fc-prev-btn, .hob-fc-next-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 24px; font-size: 14px; font-weight: 600;
  font-family: var(--hob-font); border-radius: 6px;
  cursor: pointer; transition: all var(--hob-transition);
  border: none;
}
.hob-fc-prev-btn {
  background: #f0f3f7; color: #3a4a60;
}
.hob-fc-prev-btn:hover { background: #e2e8f0; color: #1a2332; }
.hob-fc-next-btn {
  background: var(--hob-primary); color: #fff;
  margin-left: auto;
}
.hob-fc-next-btn:hover {
  background: var(--hob-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15,39,68,0.28);
}

/* Page transition animations */
.hob-fc-page { position: relative; }
.hob-page-out-left {
  animation: hob-page-out-left 0.25s ease forwards;
}
.hob-page-out-right {
  animation: hob-page-out-right 0.25s ease forwards;
}
.hob-page-in-right {
  animation: hob-page-in-right 0.3s ease forwards;
}
.hob-page-in-left {
  animation: hob-page-in-left 0.3s ease forwards;
}
@keyframes hob-page-out-left {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-30px); }
}
@keyframes hob-page-out-right {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(30px); }
}
@keyframes hob-page-in-right {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes hob-page-in-left {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Responsive multi-page */
@media (max-width: 640px) {
  .hob-fc-step-label { display: none; }
  .hob-fc-step-num { width: 28px; height: 28px; font-size: 12px; }
  .hob-fc-prev-btn, .hob-fc-next-btn { padding: 10px 16px; font-size: 13px; }
}

/* Dark theme overrides for multi-page */
[data-hob-theme="dark"] .hob-fc-step-num { background: #242f42; border-color: #3a4a60; color: #8899aa; }
[data-hob-theme="dark"] .hob-fc-step.active .hob-fc-step-num { background: #4d8fd8; border-color: #4d8fd8; color: #fff; }
[data-hob-theme="dark"] .hob-fc-step.done .hob-fc-step-num { background: #0D5C2F; border-color: #0D5C2F; }
[data-hob-theme="dark"] .hob-fc-progress-steps::before { background: #3a4a60; }
[data-hob-theme="dark"] .hob-fc-progress-steps::after { background: #4d8fd8; }
[data-hob-theme="dark"] .hob-fc-page-nav { border-top-color: #2d3a4f; }
[data-hob-theme="dark"] .hob-fc-prev-btn { background: #2d3a4f; color: #c0cfe0; }
[data-hob-theme="dark"] .hob-fc-prev-btn:hover { background: #3a4a60; }

/* ═══════════════════════════════════════════
   RICH TEXT EDITOR (public)
   ═══════════════════════════════════════════ */

.hob-fc-richeditor {
  border: 1.5px solid var(--hob-border);
  border-radius: 6px; overflow: hidden;
}
.hob-fc-richeditor__toolbar {
  display: flex; align-items: center; gap: 2px;
  padding: 6px 8px;
  background: #F4F6F9;
  border-bottom: 1px solid var(--hob-border);
}
.hob-re-btn {
  padding: 4px 8px; border-radius: 4px;
  border: none; background: transparent;
  cursor: pointer; font-size: 13px;
  color: #334155; transition: background 0.1s;
}
.hob-re-btn:hover { background: #DDE3ED; }
.hob-re-btn.active { background: var(--hob-primary); color: #fff; }
.hob-re-sep { color: #DDE3ED; padding: 0 4px; }
.hob-fc-richeditor__body {
  padding: 10px 12px; outline: none;
  font-size: 14px; line-height: 1.6;
  color: #1a2332;
}
.hob-fc-richeditor__body:focus {
  box-shadow: inset 0 0 0 2px var(--hob-primary);
}
.hob-fc-richeditor__body:empty::before {
  content: attr(data-placeholder);
  color: #AAB8C8; pointer-events: none;
}

/* Rich content (fixed mode) */
.hob-fc-richcontent {
  font-size: 14px; line-height: 1.6; color: #1a2332;
  padding: 12px 0;
}
.hob-fc-richcontent a { color: var(--hob-primary); text-decoration: underline; }

/* Access denied / closed notice */
.hob-fc-access-denied, .hob-fc-closed-notice {
  text-align: center; padding: 28px 24px;
  background: #F8FAFC; border: 1px solid var(--hob-border);
  border-radius: var(--hob-radius); color: #5A6A7E;
  font-size: 15px;
}

/* Password form */
.hob-fc-password-form {
  text-align: center; padding: 28px 24px;
  background: #fff; border-radius: var(--hob-radius);
  box-shadow: var(--hob-shadow); border: 1px solid #e8ecf0;
}
.hob-fc-password-form p { margin: 0 0 16px; font-size: 14px; color: #5A6A7E; }
.hob-fc-password-form .hob-fc-input { max-width: 300px; margin: 0 auto 12px; display: block; }

/* Dark theme overrides for rich editor */
[data-hob-theme="dark"] .hob-fc-richeditor { border-color: #3a4a60; }
[data-hob-theme="dark"] .hob-fc-richeditor__toolbar { background: #242f42; border-bottom-color: #3a4a60; }
[data-hob-theme="dark"] .hob-re-btn { color: #c0cfe0; }
[data-hob-theme="dark"] .hob-re-btn:hover { background: #3a4a60; }
[data-hob-theme="dark"] .hob-fc-richeditor__body { color: #e2e8f0; }
[data-hob-theme="dark"] .hob-fc-richeditor__body:empty::before { color: #5a6a7e; }

/* ─── Address Autocomplete ─── */
.hob-fc-address-wrapper { position: relative; }
.hob-fc-address-input-wrap { position: relative; display: flex; align-items: center; }
.hob-fc-address-input { width: 100%; padding-right: 36px; }
.hob-fc-address-spinner {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border: 2px solid #d0d7e0; border-top-color: var(--hob-primary);
  border-radius: 50%; display: none; animation: hobSpin .6s linear infinite;
}
.hob-fc-address-spinner.visible { display: block; }
@keyframes hobSpin { to { transform: translateY(-50%) rotate(360deg); } }

.hob-fc-address-suggestions {
  display: none; position: absolute; z-index: 100; top: 100%; left: 0; right: 0;
  margin: 4px 0 0; padding: 0; list-style: none; background: #fff;
  border: 1px solid var(--hob-border); border-radius: var(--hob-radius);
  box-shadow: 0 8px 24px rgba(15,39,68,0.14); max-height: 320px; overflow-y: auto;
}
.hob-fc-address-suggestions.visible { display: block; }

.hob-fc-address-suggestion {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; cursor: pointer; transition: background .15s;
}
.hob-fc-address-suggestion:hover,
.hob-fc-address-suggestion[aria-selected="true"] {
  background: rgba(0, 49, 137, 0.06);
}
.hob-fc-address-suggestion--empty { cursor: default; }
.hob-fc-address-suggestion__pin { font-size: 18px; flex-shrink: 0; }
.hob-fc-address-suggestion__content { flex: 1; min-width: 0; }
.hob-fc-address-suggestion__main { font-size: 14px; font-weight: 500; color: #1a1a2e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hob-fc-address-suggestion__secondary { font-size: 12px; color: #5a6a7e; margin-top: 2px; }
.hob-fc-address-suggestion__badge {
  flex-shrink: 0; font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 10px; text-transform: uppercase; letter-spacing: .3px;
}
.hob-fc-address-suggestion__badge.ban { background: #E8EEF8; color: #003189; border: 1px solid #B8CBF0; }
.hob-fc-address-suggestion__badge.osm { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.hob-fc-address-suggestion__badge.google { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }

.hob-fc-address-powered {
  padding: 6px 14px; font-size: 10px; color: #aab8c8;
  border-top: 1px solid #eee; text-align: center;
}
.hob-fc-address-powered a { color: #5a6a7e; text-decoration: none; }
.hob-fc-address-powered a:hover { text-decoration: underline; }

.hob-fc-address-subfields {
  display: grid; grid-template-columns: 80px 1fr; gap: 8px; margin-top: 10px;
}
.hob-fc-address-sub { font-size: 13px; }
.hob-fc-address-sub--short { max-width: 80px; }
@media (min-width: 520px) {
  .hob-fc-address-subfields { grid-template-columns: 80px 1fr 120px 1fr; }
}

/* Dark theme address */
[data-hob-theme="dark"] .hob-fc-address-suggestions { background: #1e293b; border-color: #3a4a60; }
[data-hob-theme="dark"] .hob-fc-address-suggestion:hover { background: rgba(255,255,255,0.06); }
[data-hob-theme="dark"] .hob-fc-address-suggestion__main { color: #e2e8f0; }
[data-hob-theme="dark"] .hob-fc-address-suggestion__secondary { color: #8899aa; }
[data-hob-theme="dark"] .hob-fc-address-powered { border-top-color: #3a4a60; }

/* === Text Block === */
.hob-fc-text-block { margin: 12px 0; line-height: 1.6; }
.hob-fc-text-block--h2 {
  font-size: 1.3em; font-weight: 700;
  border-bottom: 2px solid var(--hob-primary, #1B5FA8);
  padding-bottom: 6px; margin-top: 20px;
}
.hob-fc-text-block--h3 {
  font-size: 1.1em; font-weight: 700; margin-top: 16px;
}
.hob-fc-text-block--callout_info {
  background: #EDF5FF; border-left: 4px solid #1B5FA8;
  padding: 10px 14px; border-radius: 0 6px 6px 0;
}
.hob-fc-text-block--callout_warning {
  background: #FFF8E1; border-left: 4px solid #F59E0B;
  padding: 10px 14px; border-radius: 0 6px 6px 0;
}
.hob-fc-text-block--callout_success {
  background: #F0FFF4; border-left: 4px solid #0D5C2F;
  padding: 10px 14px; border-radius: 0 6px 6px 0;
}
.hob-fc-separator {
  border: none; border-top: 2px solid #DDE3ED;
  margin: 20px 0;
}

/* ===================================================================
   SEPARATOR FIELD (front-end)
   =================================================================== */
.hob-fc-field--separator { padding: 0; margin: 0; }
hr.hob-fc-separator { display: block; box-sizing: border-box; }
.hob-fc-separator--labeled {
  display: flex; align-items: center; gap: 12px; width: 100%;
}
.hob-fc-separator__line {
  flex: 1; border: none;
  border-top: var(--sep-thick, 1px) var(--sep-style, solid) var(--sep-color, #DDE3ED);
}
.hob-fc-separator__text {
  font-size: 12px; color: #6B7A8D; white-space: nowrap;
  flex-shrink: 0; font-weight: 500;
}

/* === Opinion Scale Field (front-end) === */
.hob-fc-opinion-scale { width: 100%; }

/* ── Labels extremites ── */
.hob-fc-scale-labels {
  display: flex; justify-content: space-between; margin-bottom: 8px;
  font-size: 12px; color: #6B7A8D;
}
.hob-fc-scale-label-low { text-align: left; }
.hob-fc-scale-label-high { text-align: right; }

/* ── Mode boutons cercles ── */
.hob-fc-scale-buttons {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
}
.hob-fc-scale-btn {
  cursor: pointer; text-align: center;
}
.hob-fc-scale-btn input[type="radio"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.hob-fc-scale-btn-circle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--hob-border, #d0d7e0);
  font-size: 14px; font-weight: 600; color: #555;
  background: #fff; transition: all 0.15s;
  user-select: none;
}
.hob-fc-scale-btn:hover .hob-fc-scale-btn-circle {
  border-color: var(--hob-primary, #1B5FA8);
  color: var(--hob-primary, #1B5FA8);
  background: rgba(27, 95, 168, 0.06);
}
.hob-fc-scale-btn input:checked + .hob-fc-scale-btn-circle {
  background: var(--hob-primary, #1B5FA8);
  border-color: var(--hob-primary, #1B5FA8);
  color: #fff;
  box-shadow: 0 2px 8px rgba(27, 95, 168, 0.3);
}
.hob-fc-scale-btn--neutral .hob-fc-scale-btn-circle {
  border-color: var(--hob-accent, #0A5C52);
  background: rgba(10, 92, 82, 0.06);
}
.hob-fc-scale-btn--neutral input:checked + .hob-fc-scale-btn-circle {
  background: var(--hob-accent, #0A5C52);
  border-color: var(--hob-accent, #0A5C52);
}

/* ── Mode curseur (slider) ── */
.hob-fc-scale-slider-wrap { padding: 4px 0; }
.hob-fc-scale-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px; border-radius: 4px;
  background: linear-gradient(to right, #d0d7e0, var(--hob-primary, #1B5FA8));
  outline: none; cursor: pointer;
}
.hob-fc-scale-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--hob-primary, #1B5FA8);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: grab;
}
.hob-fc-scale-range::-moz-range-thumb {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--hob-primary, #1B5FA8);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  cursor: grab;
}
.hob-fc-scale-value {
  text-align: center; font-size: 13px; color: #555;
  margin-top: 8px; font-weight: 600;
}
.hob-fc-scale-value-num {
  font-size: 20px; color: var(--hob-primary, #1B5FA8);
}
.hob-fc-scale-custom-labels {
  display: flex; justify-content: space-between; margin-top: 6px;
  font-size: 10px; color: #888;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .hob-fc-scale-btn-circle { width: 34px; height: 34px; font-size: 12px; }
  .hob-fc-scale-buttons { gap: 4px; }
}

/* === Vertical Separator Field (front-end) === */
.hob-fc-field--separator-v { padding: 0; margin: 0; text-align: center; }
.hob-fc-separator-v { display: block; }

/* === Multi-page Progress Bar === */
.hob-fc-progress {
  display: flex; align-items: center;
  gap: 0; margin: 0 0 28px; padding: 0;
}
.hob-fc-progress-steps {
  display: flex; width: 100%;
}
.hob-fc-step {
  display: flex; flex-direction: column; align-items: center;
  flex: 1; position: relative; gap: 4px;
}
.hob-fc-step::before {
  content: ""; position: absolute;
  top: 14px; right: 50%; left: -50%;
  height: 2px; background: #DDE3ED; z-index: 0;
}
.hob-fc-step:first-child::before { display: none; }
.hob-fc-step.active::before,
.hob-fc-step.done::before { background: #1B5FA8; }
.hob-fc-step-num {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  border: 2px solid #DDE3ED;
  background: #fff; z-index: 1; position: relative;
  transition: all 0.2s;
}
.hob-fc-step.active .hob-fc-step-num {
  background: #1B5FA8; color: #fff; border-color: #1B5FA8;
}
.hob-fc-step.done .hob-fc-step-num {
  background: #0A5C52; color: #fff; border-color: #0A5C52;
}
.hob-fc-step-label {
  font-size: 10px; color: #8899AA; text-align: center;
}
.hob-fc-step.active .hob-fc-step-label {
  color: #1B5FA8; font-weight: 600;
}

/* === Page Navigation === */
.hob-fc-page-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 24px; padding-top: 16px;
  border-top: 1px solid #EEF0F4;
}

/* === Page Animations === */
@keyframes hob-slide-in-right {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes hob-slide-in-left {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
.hob-fc-page--entering-forward  { animation: hob-slide-in-right 0.25s both; }
.hob-fc-page--entering-backward { animation: hob-slide-in-left 0.25s both; }

@keyframes hob-shake {
  0%,100%{transform:translateX(0)}
  20%{transform:translateX(-6px)}
  40%{transform:translateX(6px)}
  60%{transform:translateX(-4px)}
  80%{transform:translateX(4px)}
}
.hob-shake { animation: hob-shake 0.5s ease; }

/* === Select / Radio / Checkbox === */
.hob-fc-select-wrap { position: relative; }
.hob-fc-select {
  width: 100%; appearance: none; -webkit-appearance: none;
  padding-right: 32px;
}
.hob-fc-select-arrow {
  position: absolute; right: 10px; top: 50%;
  transform: translateY(-50%); pointer-events: none; color: #8899AA;
}
.hob-fc-options { display: flex; flex-wrap: wrap; gap: 8px; }
.hob-fc-options--vertical   { flex-direction: column; gap: 6px; }
.hob-fc-options--horizontal { flex-direction: row; }
.hob-fc-options--grid2      { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hob-fc-option-item {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 14px;
}
.hob-fc-option-item input[type="radio"],
.hob-fc-option-item input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--hob-primary, #1B5FA8);
  flex-shrink: 0; cursor: pointer;
}
.hob-fc-fieldset {
  border: none; margin: 0; padding: 0;
}

/* ===================================================================
   CONDITIONAL LOGIC — FRONT-END TRANSITIONS
   =================================================================== */

/* Smooth show/hide for conditionally toggled fields */
.hob-fc-field-wrapper {
  transition: opacity 0.25s ease, max-height 0.3s ease, margin 0.25s ease;
  overflow: hidden;
}
.hob-fc-field-wrapper[data-hidden="1"] {
  opacity: 0;
  max-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  pointer-events: none;
}

/* Disabled state (grayed out) */
.hob-fc-field-wrapper[data-disabled="1"] {
  opacity: 0.5;
  pointer-events: none;
}
.hob-fc-field-wrapper[data-disabled="1"] input,
.hob-fc-field-wrapper[data-disabled="1"] select,
.hob-fc-field-wrapper[data-disabled="1"] textarea {
  background: #F4F6F9;
  cursor: not-allowed;
}

/* Inline conditional message */
.hob-fc-cond-message {
  display: none;
  font-size: 13px;
  padding: 8px 12px;
  margin-top: 6px;
  border-radius: 4px;
  background: #FFF8E1;
  border: 1px solid #FFE082;
  color: #6D5D00;
}

/* ===================================================================
   IMAGE CHOICE FIELD
   =================================================================== */
.hob-fc-img-choice {
  position: relative; cursor: pointer;
  border: 2px solid #DDE3ED;
  border-radius: 8px; overflow: hidden;
  transition: border-color 0.14s, transform 0.14s;
}
.hob-fc-img-choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.hob-fc-img-choice:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.hob-fc-img-choice:has(input:checked) {
  border-color: var(--sel-color, #1B5FA8);
  box-shadow: 0 0 0 3px rgba(27,95,168,0.15);
}
.hob-fc-img-choice:has(input:checked)::after {
  content: "\2713"; position: absolute; top: 6px; right: 6px;
  background: var(--sel-color, #1B5FA8); color: #fff;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
}
.hob-fc-img-choice__label {
  display: block; text-align: center;
  font-size: 12px; font-weight: 600;
  padding: 6px; color: #1A2332;
}
.hob-fc-img-choice__placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; background: #F7F8FA;
}

/* ===================================================================
   TOGGLE FIELD (front-end)
   =================================================================== */
.hob-fc-toggle-wrap {
  display: flex; align-items: center; gap: 10px;
}
.hob-fc-toggle-label {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
}
.hob-fc-toggle-slider {
  position: relative; width: 44px; height: 24px;
  background: #D1D9E0; border-radius: 12px;
  transition: background 0.2s; flex-shrink: 0;
}
.hob-fc-toggle-slider::after {
  content: ''; position: absolute; width: 18px; height: 18px;
  left: 3px; top: 3px; background: #fff; border-radius: 50%;
  transition: transform 0.2s;
}
.hob-fc-toggle-input:checked + .hob-fc-toggle-label .hob-fc-toggle-slider {
  background: var(--toggle-on, #1B5FA8);
}
.hob-fc-toggle-input:checked + .hob-fc-toggle-label .hob-fc-toggle-slider::after {
  transform: translateX(20px);
}
.hob-fc-toggle-text--on { display: none; }
.hob-fc-toggle-input:checked + .hob-fc-toggle-label .hob-fc-toggle-text--on { display: inline; }
.hob-fc-toggle-input:checked + .hob-fc-toggle-label .hob-fc-toggle-text--off { display: none; }

/* === Repeater Button === */
.hob-fc-repeater-button-wrap {
  text-align: center;
  padding: 8px 0;
}
.hob-fc-repeater-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: #1B5FA8;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.hob-fc-repeater-btn:hover {
  background: #154A85;
  transform: translateY(-1px);
}
.hob-fc-repeater-btn:active {
  transform: translateY(0);
}
.hob-fc-repeater-btn.hob-fc-btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.hob-fc-repeater-count {
  display: inline-block;
  margin-left: 8px;
  font-size: 12px;
  color: #6B7A8D;
}
.hob-fc-repeater-group {
  border: 1px dashed #BCC5D3;
  border-radius: 8px;
  padding: 12px 16px;
  margin: 12px 0;
  background: #FAFBFC;
  position: relative;
  animation: hob-fc-slide-in 0.25s ease-out;
}
@keyframes hob-fc-slide-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hob-fc-repeater-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #E2E8F0;
}
.hob-fc-repeater-group-title {
  font-size: 13px;
  font-weight: 600;
  color: #4A5568;
}
.hob-fc-repeater-remove {
  width: 26px;
  height: 26px;
  border: none;
  background: #FEE2E2;
  color: #DC2626;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.hob-fc-repeater-remove:hover {
  background: #FECACA;
}

/* === Video Field === */
.hob-fc-video-wrap {
  position: relative;
  margin: 12px 0;
}
.hob-fc-video-container {
  position: relative;
  background: #000;
  line-height: 0;
}
.hob-fc-video-container iframe,
.hob-fc-video-container video {
  display: block;
  max-width: 100%;
}
.hob-fc-video-pause-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  z-index: 10;
  border-radius: inherit;
}
.hob-fc-video-pause-msg {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  padding: 0 20px;
  margin: 0;
}
.hob-fc-video-resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 28px;
  background: var(--hob-primary, #1B5FA8);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.hob-fc-video-resume-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.hob-fc-video-resume-btn:not(:disabled):hover {
  background: var(--hob-primary-dark, #0F2744);
}
/* Pause-highlighted fields */
.hob-fc-pause-highlight {
  animation: hob-fc-pulse-border 1.5s ease-in-out 3;
}
@keyframes hob-fc-pulse-border {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 0 3px rgba(27, 95, 168, 0.25); }
}
/* Responsive video */
@media (max-width: 640px) {
  .hob-fc-video-container { border-radius: 0 !important; }
  .hob-fc-video-pause-msg { font-size: 14px; }
}

/* === Audio Field === */
.hob-fc-audio-wrap {
  position: relative;
  margin: 12px 0;
}
.hob-fc-audio-container {
  position: relative;
}
.hob-fc-audio-player {
  display: block;
  width: 100%;
  border-radius: 6px;
}
/* Style minimal */
.hob-fc-audio--minimal .hob-fc-audio-player {
  height: 32px;
}
/* Style carte */
.hob-fc-audio--card {
  border: 1px solid #DDE3ED;
  border-radius: 8px;
  overflow: hidden;
  background: #F8FAFC;
}
.hob-fc-audio-card-header {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #0F2744;
  border-bottom: 1px solid #DDE3ED;
}
.hob-fc-audio--card .hob-fc-audio-container {
  padding: 10px;
}
/* Pause overlay */
.hob-fc-audio-pause-overlay {
  margin-top: 10px;
  padding: 14px;
  background: rgba(15, 39, 68, 0.06);
  border: 1px solid #DDE3ED;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.hob-fc-audio-pause-msg {
  color: #0F2744;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  margin: 0;
}
.hob-fc-audio-resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: var(--hob-primary, #1B5FA8);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}
.hob-fc-audio-resume-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.hob-fc-audio-resume-btn:not(:disabled):hover {
  background: var(--hob-primary-dark, #0F2744);
}

/* ================================================================
   Map Picker (Leaflet)
   ================================================================ */
.hob-fc-map-wrap {
  position: relative;
}
.hob-fc-map-container {
  width: 100%;
  border-radius: 8px;
  border: 1px solid #DDE3ED;
  z-index: 0;
}
.hob-fc-map-search {
  position: relative;
  margin-bottom: 8px;
}
.hob-fc-map-search-input {
  width: 100%;
}
.hob-fc-map-search-results {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #fff;
  border: 1px solid #DDE3ED;
  border-top: none;
  border-radius: 0 0 8px 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.hob-fc-map-search-item {
  padding: 8px 12px;
  font-size: 13px;
  cursor: pointer;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.15s;
}
.hob-fc-map-search-item:hover {
  background: #EBF5FF;
}
.hob-fc-map-search-item:last-child {
  border-bottom: none;
}
.hob-fc-map-info {
  display: none;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 12px;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  border-radius: 8px;
  animation: hob-fadein 0.2s ease;
}
.hob-fc-map-info-icon {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
}
.hob-fc-map-info-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.hob-fc-map-address-display {
  font-size: 13px;
  font-weight: 600;
  color: #1E3A5F;
  word-break: break-word;
}
.hob-fc-map-coords-display {
  font-size: 11px;
  color: #6B7280;
  font-family: monospace;
}
.hob-fc-map-coords {
  margin-top: 6px;
  font-size: 12px;
  color: #6B7280;
}
.hob-fc-map-coords-display:empty::before {
  content: 'Cliquez sur la carte pour placer un marqueur';
  font-style: italic;
  color: #9CA3AF;
}

/* ================================================================
   Rating / Stars / Notes
   ================================================================ */
.hob-fc-rating-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hob-fc-rating-icons {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.hob-fc-rating-icon {
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, color 0.15s ease, opacity 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
}
.hob-fc-rating-icon:focus-visible {
  outline: 2px solid var(--hob-primary, #1B5FA8);
  outline-offset: 2px;
  border-radius: 4px;
}
.hob-fc-rating-icon:hover {
  transform: scale(1.15);
}
.hob-fc-rating-icon .hob-fc-rating-symbol {
  color: #D1D5DB;
  transition: color 0.15s ease;
}
.hob-fc-rating-custom-img {
  transition: opacity 0.15s ease;
  opacity: 0.3;
}
/* Half-star layout */
.hob-fc-rating-half-left {
  position: relative;
  overflow: hidden;
  width: 0.5em;
  margin-right: -0.5em;
  z-index: 1;
}
.hob-fc-rating-half-right {
  position: relative;
}
/* Sizes */
.hob-fc-rating--sm .hob-fc-rating-icon { font-size: 20px; }
.hob-fc-rating--sm .hob-fc-rating-custom-img { width: 20px; height: 20px; }
.hob-fc-rating--md .hob-fc-rating-icon { font-size: 28px; }
.hob-fc-rating--md .hob-fc-rating-custom-img { width: 28px; height: 28px; }
.hob-fc-rating--lg .hob-fc-rating-icon { font-size: 36px; }
.hob-fc-rating--lg .hob-fc-rating-custom-img { width: 36px; height: 36px; }
.hob-fc-rating--xl .hob-fc-rating-icon { font-size: 48px; }
.hob-fc-rating--xl .hob-fc-rating-custom-img { width: 48px; height: 48px; }
/* Value display */
.hob-fc-rating-value {
  font-size: 14px;
  font-weight: 600;
  color: #3A4A5E;
  min-width: 32px;
}
.hob-fc-rating-level-label {
  font-size: 13px;
  color: #6B7280;
  font-style: italic;
}
/* Clear button */
.hob-fc-rating-clear {
  background: none;
  border: 1px solid #D1D5DB;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  font-size: 14px;
  line-height: 1;
  color: #9CA3AF;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, border-color 0.2s;
}
.hob-fc-rating-clear:hover {
  color: #EF4444;
  border-color: #EF4444;
}
/* Readonly */
.hob-fc-rating-wrap[data-readonly="1"] .hob-fc-rating-icon {
  cursor: default;
  pointer-events: none;
}
/* Animations */
@keyframes hob-rating-bounce {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.35); }
  70% { transform: scale(0.9); }
}
@keyframes hob-rating-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.25); }
  100% { transform: scale(1); }
}
@keyframes hob-rating-grow {
  0% { transform: scale(0.5); }
  100% { transform: scale(1); }
}
@keyframes hob-rating-rotate {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}
.hob-fc-rating-anim-bounce { animation: hob-rating-bounce 0.4s ease; }
.hob-fc-rating-anim-pulse { animation: hob-rating-pulse 0.35s ease; }
.hob-fc-rating-anim-grow { animation: hob-rating-grow 0.3s ease; }
.hob-fc-rating-anim-rotate { animation: hob-rating-rotate 0.5s ease; }

/* ================================================================
   P23 — UX Avancée
   ================================================================ */

/* ── 1. Mode One-by-One (Typeform-like) ── */
.hob-fc-obo { position: relative; overflow: hidden; }
.hob-fc-obo__bar { height: 4px; background: #DDE3ED; border-radius: 2px; margin-bottom: 32px; }
.hob-fc-obo__fill { height: 100%; background: var(--hob-fc-accent, #1B5FA8); border-radius: 2px; transition: width .4s ease; }
.hob-fc-obo__slide { display: none; opacity: 0; transform: translateY(16px); transition: opacity .35s ease, transform .35s ease; }
.hob-fc-obo__slide--active { display: block; opacity: 1; transform: translateY(0); }
.hob-fc-obo__counter { font-size: 12px; color: #8899AA; margin-bottom: 12px; font-weight: 600; }
.hob-fc-obo__nav { margin-top: 24px; display: flex; gap: 12px; }
.hob-fc-obo__next {
  padding: 12px 32px; background: var(--hob-fc-accent, #1B5FA8); color: #fff;
  border: none; border-radius: 8px; cursor: pointer; font-size: 15px; font-weight: 600;
  transition: background .2s, transform .15s;
}
.hob-fc-obo__next:hover { background: #164D8A; transform: translateY(-1px); }
.hob-fc-obo__prev {
  padding: 12px 32px; background: transparent; border: 1.5px solid #DDE3ED;
  border-radius: 8px; cursor: pointer; font-size: 15px; color: #3A4A5C;
  transition: border-color .2s;
}
.hob-fc-obo__prev:hover { border-color: #A0AEC0; }

/* ── 2. Popup ── */
.hob-fc-popup {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0, 0, 0, .5);
  display: flex; align-items: center; justify-content: center;
  animation: hobPopupFadeIn .3s ease;
}
@keyframes hobPopupFadeIn { from { opacity: 0; } to { opacity: 1; } }
.hob-fc-popup[data-pos="bottom_right"] {
  align-items: flex-end; justify-content: flex-end; padding: 24px;
}
.hob-fc-popup__box {
  background: #fff; border-radius: 16px; padding: 32px;
  max-width: 560px; width: calc(100% - 32px); max-height: 90vh;
  overflow-y: auto; position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
  animation: hobPopupSlideUp .35s ease;
}
@keyframes hobPopupSlideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.hob-fc-popup__close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; font-size: 18px;
  cursor: pointer; color: #888; width: 32px; height: 32px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.hob-fc-popup__close:hover { background: #F0F4F8; color: #333; }

/* ── 3. Cover / Logo / Banner ── */
.hob-fc-cover {
  width: 100%; background-size: cover; background-position: center;
  border-radius: 12px 12px 0 0;
}
.hob-fc-logo-wrap { display: flex; padding: 16px 24px; }
.hob-fc-logo { max-height: 60px; max-width: 200px; object-fit: contain; }
.hob-fc-banner { padding: 16px 24px; font-size: 20px; font-weight: 700; border-radius: 0; }
.hob-fc-form-wrapper .hob-fc-cover:first-child { margin: -24px -24px 16px; width: calc(100% + 48px); }

/* ── 4. Section Title ── */
.hob-fc-section-title { border-radius: 8px; margin: 16px 0 8px; }

/* ── 5. Multi-select ── */
.hob-fc-ms { position: relative; }
.hob-fc-ms__box {
  min-height: 42px; border: 1.5px solid #DDE3ED; border-radius: 8px;
  padding: 4px 8px; display: flex; flex-wrap: wrap; gap: 4px;
  cursor: text; background: #fff; transition: border-color .2s;
}
.hob-fc-ms__box:focus-within { border-color: var(--hob-fc-accent, #1B5FA8); box-shadow: 0 0 0 3px rgba(27, 95, 168, .1); }
.hob-fc-ms__tag {
  background: var(--hob-fc-accent, #1B5FA8); color: #fff;
  padding: 3px 10px; border-radius: 5px; font-size: 12.5px;
  display: inline-flex; align-items: center; gap: 5px; animation: hobTagIn .2s ease;
}
@keyframes hobTagIn { from { transform: scale(.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.hob-fc-ms__rm { cursor: pointer; font-size: 14px; opacity: .7; }
.hob-fc-ms__rm:hover { opacity: 1; }
.hob-fc-ms__search { border: none; outline: none; flex: 1; min-width: 80px; font-size: 14px; background: transparent; }
.hob-fc-ms__drop {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 100;
  background: #fff; border: 1.5px solid #DDE3ED; border-radius: 8px;
  max-height: 200px; overflow-y: auto; list-style: none;
  margin: 4px 0 0; padding: 4px 0;
  display: none; box-shadow: 0 4px 16px rgba(0, 0, 0, .1);
}
.hob-fc-ms__drop.open { display: block; }
.hob-fc-ms__drop li { padding: 8px 12px; cursor: pointer; font-size: 14px; transition: background .1s; }
.hob-fc-ms__drop li:hover { background: #F0F4FA; }
.hob-fc-ms__drop li.sel { color: var(--hob-fc-accent, #1B5FA8); font-weight: 600; }
.hob-fc-ms__drop li.sel::before { content: '\2713 '; margin-right: 4px; }

/* ── 6. Ranking ── */
.hob-fc-rank__list { list-style: none; padding: 0; margin: 0; }
.hob-fc-rank__item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; margin-bottom: 6px;
  background: #fff; border: 1.5px solid #DDE3ED; border-radius: 8px;
  cursor: grab; user-select: none; transition: box-shadow .15s, border-color .15s;
}
.hob-fc-rank__item:active { cursor: grabbing; box-shadow: 0 4px 16px rgba(0, 0, 0, .15); }
.hob-fc-rank__item.over { border-color: var(--hob-fc-accent, #1B5FA8); background: #EDF4FF; }
.hob-fc-rank__handle { font-size: 18px; color: #9CA3AF; flex-shrink: 0; }

/* ── P24: Password gate (AJAX) ── */
.hob-fc-pwd-gate {
  text-align: center; padding: 36px 24px;
  background: #fff; border-radius: var(--hob-radius);
  box-shadow: var(--hob-shadow); border: 1px solid #e8ecf0;
  max-width: 400px; margin: 0 auto;
}
.hob-fc-pwd-gate p { margin: 0 0 16px; font-size: 14px; color: #5A6A7E; }
.hob-fc-pwd-gate .hob-fc-pwd-input {
  width: 100%; max-width: 300px; margin: 0 auto 12px; display: block;
  padding: 11px 14px; font-size: 15px; border: 1.5px solid var(--hob-border);
  border-radius: 6px; outline: none; box-sizing: border-box;
}
.hob-fc-pwd-gate .hob-fc-pwd-input:focus {
  border-color: var(--hob-primary); box-shadow: 0 0 0 3px rgba(27,95,168,0.12);
}
.hob-fc-pwd-gate .hob-fc-pwd-btn {
  margin-top: 4px;
}
.hob-fc-pwd-error {
  font-size: 13px; margin-bottom: 12px; padding: 8px;
  background: #FEE2E2; border-radius: 4px; color: #DC2626;
}

/* ── P24: Closed notice ── */
.hob-fc-closed {
  text-align: center; padding: 28px 24px;
  background: #F8FAFC; border: 1px solid var(--hob-border);
  border-radius: var(--hob-radius); color: #5A6A7E; font-size: 15px;
}

/* ── 7. Image upload ── */
.hob-fc-imgup__input { display: none; }
.hob-fc-imgup__zone {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 32px; border: 2px dashed #DDE3ED; border-radius: 12px;
  cursor: pointer; text-align: center; transition: border-color .2s, background .2s;
}
.hob-fc-imgup__zone:hover { border-color: var(--hob-fc-accent, #1B5FA8); background: #FAFBFF; }
.hob-fc-imgup__zone.dragover { border-color: var(--hob-fc-accent, #1B5FA8); background: #EDF4FF; }
.hob-fc-imgup__icon { font-size: 32px; }
.hob-fc-imgup__txt { font-size: 14px; font-weight: 600; color: #1A2332; }
.hob-fc-imgup__hint { font-size: 12px; color: #9CA3AF; }
.hob-fc-imgup__preview img {
  max-width: 100%; max-height: 200px; border-radius: 8px;
  margin-top: 12px; object-fit: contain;
}

/* ── 8a. Fullname row ── */
.hob-fc-fullname-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
@media (max-width: 480px) {
  .hob-fc-fullname-row { grid-template-columns: 1fr; }
}

/* ── 8b. Date input ── */
.hob-fc-date-input {
  width: 100%; padding: 10px 14px; border: 1.5px solid var(--hob-border, #DDE3ED);
  border-radius: var(--hob-radius, 8px); font-size: 14px; font-family: inherit;
  color: #1F2937; background: #fff; box-sizing: border-box;
}
.hob-fc-date-input:focus {
  outline: none; border-color: var(--hob-fc-accent, #1B5FA8);
  box-shadow: 0 0 0 3px rgba(27,95,168,.1);
}

/* ── 8c. File upload ── */
.hob-fc-file-input { display: none; }
.hob-fc-file-zone {
  border: 2px dashed #DDE3ED; border-radius: 10px;
  overflow: hidden; transition: border-color .2s;
}
.hob-fc-file-zone--drag:hover { border-color: var(--hob-fc-accent, #1B5FA8); }
.hob-fc-file-zone.drag-over { border-color: var(--hob-fc-accent, #1B5FA8); background: #EDF4FF; }
.hob-fc-file-label {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 28px 20px; cursor: pointer; text-align: center;
  background: #fff; transition: background .15s;
}
.hob-fc-file-label:hover { background: #F8FAFF; }
.hob-fc-file-icon { color: #6B7A8D; display: flex; }
.hob-fc-file-cta { font-size: 14px; font-weight: 500; color: #374151; }
.hob-fc-file-hint { font-size: 12px; color: #9CA3AF; }
.hob-fc-file-preview {
  display: none; padding: 10px 16px; font-size: 13px; font-weight: 500;
  color: #065F46; background: #ECFDF5; border-top: 1px solid #D1FAE5;
  align-items: center; gap: 8px;
}
.hob-fc-file-preview.visible { display: flex; }
.hob-fc-file-preview .hob-fc-file-remove {
  margin-left: auto; background: none; border: none; color: #DC2626;
  cursor: pointer; font-size: 16px; padding: 0 4px;
}

/* ── 9. PDF Download ── */
.hob-fc-pdf-downloads { display: flex; flex-direction: column; gap: 8px; }
.hob-fc-pdf-download-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border: 1.5px solid #DDE3ED; border-radius: 8px;
  background: #fff; color: #1A2332; text-decoration: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  font-size: 14px; font-weight: 500;
}
.hob-fc-pdf-download-link:hover {
  border-color: var(--hob-fc-accent, #1B5FA8); background: #FAFBFF;
  box-shadow: 0 2px 8px rgba(27,95,168,.12);
}
.hob-fc-pdf-download-icon { color: #DC2626; flex-shrink: 0; display: flex; }
.hob-fc-pdf-download-name { flex: 1; }

/* ── 9. PDF Upload (slots) ── */
.hob-fc-pdf-uploads { display: flex; flex-direction: column; gap: 12px; }
.hob-fc-pdf-slot__header { margin-bottom: 4px; }
.hob-fc-pdf-slot__name { font-size: 13px; font-weight: 600; color: #1A2332; }
.hob-fc-pdf-slot__input { display: none; }
.hob-fc-pdf-slot__dropzone { position: relative; }
.hob-fc-pdf-slot__label {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 24px 16px; border: 2px dashed #DDE3ED; border-radius: 10px;
  cursor: pointer; text-align: center; transition: border-color .2s, background .2s;
}
.hob-fc-pdf-slot__label:hover { border-color: var(--hob-fc-accent, #1B5FA8); background: #FAFBFF; }
.hob-fc-pdf-slot__label.dragover { border-color: var(--hob-fc-accent, #1B5FA8); background: #EDF4FF; }
.hob-fc-pdf-slot__icon { color: #DC2626; display: flex; }
.hob-fc-pdf-slot__text { font-size: 13px; font-weight: 600; color: #1A2332; }
.hob-fc-pdf-slot__hint { font-size: 11px; color: #9CA3AF; }
.hob-fc-pdf-slot__preview {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: #F0FDF4; border: 1.5px solid #86EFAC;
  border-radius: 8px; font-size: 13px; color: #166534;
}
.hob-fc-pdf-slot__preview .hob-fc-pdf-slot__remove-file {
  margin-left: auto; background: none; border: none; color: #DC2626;
  cursor: pointer; font-size: 16px; padding: 0 4px;
}

/* ── Access Denied ───────────────────────────────────── */
.hob-fc-access-denied {
  padding: 40px 32px;
  text-align: center;
  background: #F9FAFB;
  border: 1.5px solid #DDE3ED;
  border-radius: 12px;
}
.hob-fc-access-denied__icon { font-size: 40px; margin-bottom: 16px; }
.hob-fc-access-denied__msg  { font-size: 15px; color: #374151; margin: 0; line-height: 1.6; }

/* ── Trigger: on_next_page — block message ────────────── */
.hob-fc-next-block-msg {
  margin-top: 8px;
  padding: 10px 14px;
  background: #FEF2F2;
  border: 1.5px solid #FCA5A5;
  border-radius: 8px;
  font-size: 13px;
  color: #991B1B;
}
.hob-fc-next-block-msg p { margin: 0 0 4px; }
.hob-fc-next-block-msg p:last-child { margin-bottom: 0; }

@keyframes hob-fc-shake {
  0%,100% { transform: translateX(0); }
  20%,60%  { transform: translateX(-4px); }
  40%,80%  { transform: translateX(4px); }
}
.hob-fc-btn-blocked { animation: hob-fc-shake .4s ease; }

/* ── Trigger: on_submit_unlock — locked submit ────────── */
.hob-fc-submit-locked {
  opacity: .45;
  cursor: not-allowed !important;
  filter: grayscale(.5);
}
.hob-fc-submit-unlock-msg {
  list-style: none;
  padding: 10px 14px;
  margin: 0 0 10px;
  background: #FFFBEB;
  border: 1.5px solid #FCD34D;
  border-radius: 8px;
  font-size: 12px;
}
.hob-fc-unlock-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  color: #92400E;
}
.hob-fc-unlock-ok { color: #065F46; }
.hob-fc-unlock-icon { font-size: 14px; flex-shrink: 0; }

/* ===================== CALCULATOR FIELD ===================== */

.hob-fc-calculator-wrapper { margin: 4px 0; }
.hob-fc-calc-formula {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 4px;
  font-size: 12px;
  color: #64748B;
  margin-bottom: 8px;
}
.hob-fc-calc-formula-icon {
  font-weight: 700;
  color: #8B5CF6;
  font-style: italic;
}
.hob-fc-calc-formula code {
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 11px;
  color: #475569;
}
.hob-fc-calc-result {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #F0F4FF, #EDE9FE);
  border: 1.5px solid #C7D2FE;
  border-radius: 8px;
  min-height: 24px;
}
.hob-fc-calc-prefix,
.hob-fc-calc-suffix {
  font-size: 14px;
  font-weight: 600;
  color: #64748B;
}
.hob-fc-calc-value {
  font-size: 22px;
  font-weight: 800;
  color: #1E293B;
  letter-spacing: -0.3px;
  transition: color 0.3s;
}

/* ===================== PAYMENT FIELDS ===================== */

/* -- Stripe -- */
.hob-fc-stripe-wrapper { margin: 4px 0; }
.hob-fc-stripe-element {
  padding: 12px 14px;
  border: 1.5px solid #D0D7E0;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hob-fc-stripe-element:focus-within,
.hob-fc-stripe-element.StripeElement--focus {
  border-color: #635BFF;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.12);
}
.hob-fc-stripe-element.StripeElement--invalid {
  border-color: #E94560;
}
.hob-fc-stripe-errors {
  color: #E94560;
  font-size: 12px;
  margin-top: 6px;
  min-height: 18px;
}
.hob-fc-stripe-wallet {
  margin-top: 12px;
}

/* -- PayPal -- */
.hob-fc-paypal-wrapper { margin: 4px 0; }
.hob-fc-paypal-button {
  min-height: 45px;
  margin: 8px 0;
}
.hob-fc-paypal-status {
  font-size: 13px;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 4px;
  display: none;
}
.hob-fc-paypal-status:not(:empty) { display: block; }
.hob-fc-paypal-status--success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}
.hob-fc-paypal-status--error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}
.hob-fc-paypal-status--cancel {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

/* -- Payment Amount Display -- */
.hob-fc-payment-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  padding: 16px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #F0F4FF, #EDE9FE);
  border-radius: 8px;
}
.hob-fc-payment-amount-value {
  font-size: 28px;
  font-weight: 800;
  color: #1E293B;
  letter-spacing: -0.5px;
}
.hob-fc-payment-amount-currency {
  font-size: 16px;
  font-weight: 600;
  color: #64748B;
}

/* -- Variable Amount -- */
.hob-fc-amount-wrapper { margin: 4px 0; }
.hob-fc-amount-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.hob-fc-amount-suggest-btn {
  padding: 6px 16px;
  border: 1.5px solid #D0D7E0;
  border-radius: 20px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
}
.hob-fc-amount-suggest-btn:hover {
  border-color: #635BFF;
  color: #635BFF;
  background: #F5F3FF;
}
.hob-fc-amount-suggest-btn.active {
  background: #635BFF;
  color: #fff;
  border-color: #635BFF;
}
.hob-fc-amount-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hob-fc-amount-input-group input[type="number"] {
  flex: 1;
}
.hob-fc-amount-symbol {
  font-size: 18px;
  font-weight: 700;
  color: #64748B;
  min-width: 24px;
}

/* -- Promo Code -- */
.hob-fc-promo-wrapper { margin: 4px 0; }
.hob-fc-promo-group {
  display: flex;
  gap: 8px;
}
.hob-fc-promo-group input[type="text"] {
  flex: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.hob-fc-promo-apply {
  padding: 8px 20px;
  background: #1E293B;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.hob-fc-promo-apply:hover { background: #334155; }
.hob-fc-promo-apply:disabled { opacity: 0.6; cursor: wait; }
.hob-fc-promo-status {
  font-size: 12px;
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 4px;
  display: none;
}
.hob-fc-promo-status:not(:empty) { display: block; }
.hob-fc-promo-status--success { background: #ECFDF5; color: #065F46; }
.hob-fc-promo-status--error { background: #FEF2F2; color: #991B1B; }

/* -- Subscription Cards -- */
.hob-fc-subscription-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 8px 0;
}
.hob-fc-sub-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  border: 2px solid #E2E8F0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  position: relative;
}
.hob-fc-sub-card:hover { border-color: #635BFF; box-shadow: 0 4px 12px rgba(99, 91, 255, 0.12); }
.hob-fc-sub-card input[type="radio"] { position: absolute; opacity: 0; }
.hob-fc-sub-card:has(input:checked) {
  border-color: #635BFF;
  background: #F5F3FF;
  box-shadow: 0 0 0 3px rgba(99, 91, 255, 0.15);
}
.hob-fc-sub-card--highlight { border-color: #E94560; }
.hob-fc-sub-card--highlight:has(input:checked) { border-color: #E94560; background: #FEF2F2; }
.hob-fc-sub-badge {
  position: absolute;
  top: -10px;
  background: #E94560;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hob-fc-sub-label { font-size: 15px; font-weight: 700; color: #1E293B; margin-bottom: 4px; }
.hob-fc-sub-price { font-size: 22px; font-weight: 800; color: #635BFF; margin: 4px 0; }
.hob-fc-sub-desc { font-size: 12px; color: #64748B; line-height: 1.4; }
.hob-fc-sub-trial {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  background: #ECFDF5;
  padding: 2px 10px;
  border-radius: 10px;
}

@media (max-width: 600px) {
  .hob-fc-subscription-cards { grid-template-columns: 1fr; }
  .hob-fc-amount-suggestions { gap: 6px; }
  .hob-fc-amount-suggest-btn { padding: 4px 12px; font-size: 12px; }
}

/* ======================================================================
   RGAA Accessibility — v1.21
   ====================================================================== */

/* Screen-reader only helper */
.hob-fc-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ── Word & character counters ── */
.hob-fc-counter-bar {
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 4px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}
.hob-fc-word-counter,
.hob-fc-char-counter {
  transition: color .2s;
}
.hob-fc-counter-over {
  color: #dc2626;
  font-weight: 600;
}

/* TinyMCE rich editor wrapper */
.hob-fc-tinymce-wrap {
  margin-top: 4px;
}
.hob-fc-tinymce-wrap .mce-tinymce {
  border-radius: 6px;
  overflow: hidden;
}
.hob-fc-tinymce-wrap .mce-toolbar .mce-btn {
  min-width: 28px;
}
.hob-fc-field-wrap .mce-edit-area iframe {
  min-height: 120px;
}

/* Skip navigation link */
.hob-fc-skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 10000;
  padding: 8px 16px;
  background: var(--hob-primary, #1B5FA8);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 6px 0;
  transition: top .2s;
}
.hob-fc-skip-link:focus {
  top: 0;
  outline: 3px solid #FFD700;
  outline-offset: 2px;
}

/* Focus-visible outline (RGAA) */
.hob-fc-rgaa .hob-fc-focus-visible,
.hob-fc-rgaa input:focus-visible,
.hob-fc-rgaa select:focus-visible,
.hob-fc-rgaa textarea:focus-visible,
.hob-fc-rgaa button:focus-visible {
  outline: 3px solid var(--hob-primary, #1B5FA8) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 4px rgba(27, 95, 168, 0.2) !important;
}

/* Fieldset/legend for groups (RGAA) */
.hob-fc-rgaa .hob-fc-fieldset {
  border: none;
  margin: 0;
  padding: 0;
}
.hob-fc-rgaa .hob-fc-legend {
  float: none;
  width: 100%;
  padding: 0;
  margin-bottom: 8px;
  font-size: inherit;
  font-weight: 600;
  color: inherit;
}

/* Error messages (RGAA) */
.hob-fc-rgaa .hob-fc-field-error {
  color: #dc2626;
  font-size: 13px;
  margin-top: 4px;
  font-weight: 500;
}
.hob-fc-rgaa .hob-fc-field-error:empty {
  display: none !important;
}

/* aria-invalid styling */
.hob-fc-rgaa [aria-invalid="true"] {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15) !important;
}

/* High contrast mode */
.hob-fc-high-contrast .hob-fc-field-label {
  color: #000 !important;
  font-weight: 700;
}
.hob-fc-high-contrast input,
.hob-fc-high-contrast select,
.hob-fc-high-contrast textarea {
  border: 2px solid #000 !important;
  color: #000 !important;
  background: #fff !important;
}
.hob-fc-high-contrast input::placeholder,
.hob-fc-high-contrast textarea::placeholder {
  color: #555 !important;
}
.hob-fc-high-contrast .hob-fc-submit-btn,
.hob-fc-high-contrast .hob-fc-next-btn,
.hob-fc-high-contrast .hob-fc-prev-btn {
  border: 2px solid #000 !important;
  font-weight: 700;
}
.hob-fc-high-contrast .hob-fc-required {
  color: #dc2626 !important;
  font-weight: 900;
}
.hob-fc-high-contrast .hob-fc-field-help {
  color: #333 !important;
}

/* Signature pad */
.hob-fc-signature-wrap { position: relative; }
.hob-fc-signature-pad {
  display: block; width: 100%; height: 150px;
  border: 2px solid #DDE3ED; border-radius: 8px;
  background: #fff; cursor: crosshair; touch-action: none;
}
.hob-fc-signature-clear {
  position: absolute; top: 8px; right: 8px;
  padding: 4px 10px; font-size: 11px; border: 1px solid #ccc;
  border-radius: 4px; background: #f5f5f5; cursor: pointer;
}
.hob-fc-signature-clear:hover { background: #eee; }
