/* GHH Form Builder — Frontend CSS — matches Gujarat Haj House Theme v16 */
.ghhfb-form-wrap { max-width:800px; margin:0 auto 40px; font-family:'Hind','Segoe UI',Arial,sans-serif; }
.ghhfb-error { color:#c0392b; padding:12px; background:#fff5f5; border-radius:6px; }

/* Steps */
.ghhfb-steps { display:flex; background:#0f2d1e; border-radius:12px 12px 0 0; overflow:hidden; }
.ghhfb-step { flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; padding:14px 8px; border-bottom:3px solid transparent; transition:all .2s; }
.ghhfb-step-n { width:26px;height:26px;border-radius:50%;background:rgba(255,255,255,.15);color:rgba(255,255,255,.6);font-size:.78rem;font-weight:700;display:flex;align-items:center;justify-content:center; }
.ghhfb-step-l { font-size:.7rem;color:rgba(255,255,255,.5);text-align:center;font-weight:600; }
.ghhfb-step.active .ghhfb-step-n { background:#d4a017;color:#0f2d1e; }
.ghhfb-step.active .ghhfb-step-l { color:#f4c431; }
.ghhfb-step.active { border-bottom-color:#d4a017; }
.ghhfb-step.completed .ghhfb-step-n { background:#40916c;color:#fff; }
.ghhfb-step.completed .ghhfb-step-l { color:rgba(255,255,255,.75); }

/* Form card */
.ghhfb-form { background:#fff;border:1px solid #e2e8df;border-radius:0 0 16px 16px;padding:28px 32px 32px;box-shadow:0 4px 20px rgba(27,67,50,.12); }
.ghhfb-steps + .ghhfb-form { border-top:none; }
.ghhfb-form:not(.ghhfb-steps + .ghhfb-form) { border-radius:16px; }

/* Grid */
.ghhfb-fields-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:4px 18px; }
[data-field].ghhfb-width-full { grid-column:1/-1; }
[data-field].ghhfb-width-half { }
[data-field].ghhfb-width-third { }

/* Fields */
.ghhfb-field.form-group { margin-bottom:14px; }
.ghhfb-field label { display:block;font-size:.78rem;font-weight:600;color:#5a6b57;margin-bottom:5px;text-transform:uppercase;letter-spacing:.3px; }
.ghhfb-req { color:#c0392b;margin-left:2px; }
.ghhfb-help { font-size:.75rem;color:#9aab95;margin-top:3px; }

.ghhfb-form input[type=text],.ghhfb-form input[type=email],.ghhfb-form input[type=tel],
.ghhfb-form input[type=number],.ghhfb-form input[type=date],.ghhfb-form input[type=time],
.ghhfb-form input[type=datetime-local],.ghhfb-form input[type=url],.ghhfb-form input[type=password],
.ghhfb-form select,.ghhfb-form textarea {
  width:100%;padding:10px 13px;border:1.5px solid #e2e8df;border-radius:6px;
  font-size:.87rem;color:#1a2e18;background:#f1f5f0;transition:all .2s;outline:none;font-family:inherit;
}
.ghhfb-form input:focus,.ghhfb-form select:focus,.ghhfb-form textarea:focus {
  border-color:#1b4332;background:#fff;box-shadow:0 0 0 3px rgba(27,67,50,.1);
}
.ghhfb-err-input { border-color:#c0392b !important;background:#fff5f5 !important; }
.ghhfb-form textarea { resize:vertical;min-height:90px; }

/* Radios */
.ghhfb-radios { display:flex;flex-wrap:wrap;gap:7px;margin-top:4px; }
.ghhfb-radio { display:flex;align-items:center;gap:7px;padding:8px 14px;border:1.5px solid #e2e8df;border-radius:6px;font-size:.84rem;cursor:pointer;background:#f1f5f0;transition:all .2s;color:#5a6b57;font-weight:500; }
.ghhfb-radio:has(input:checked) { border-color:#1b4332;background:#fff;color:#1b4332;box-shadow:0 0 0 2px rgba(27,67,50,.1); }
.ghhfb-radio input { accent-color:#1b4332; }

/* Checkboxes */
.ghhfb-checks { display:flex;flex-direction:column;gap:6px;margin-top:4px; }
.ghhfb-check { display:flex;align-items:center;gap:9px;padding:8px 12px;border:1.5px solid #e2e8df;border-radius:6px;cursor:pointer;font-size:.84rem;background:#f1f5f0;transition:all .2s; }
.ghhfb-check:hover { border-color:#1b4332;background:#fff; }
.ghhfb-check input { accent-color:#1b4332;width:16px;height:16px; }

/* Toggle */
.ghhfb-toggle-lbl { display:flex;align-items:center;gap:12px;cursor:pointer;font-size:.87rem; }
.ghhfb-toggle-lbl input { display:none; }
.ghhfb-toggle-track { width:44px;height:24px;background:#e2e8df;border-radius:12px;position:relative;transition:background .2s; }
.ghhfb-toggle-thumb { width:18px;height:18px;background:#fff;border-radius:50%;position:absolute;top:3px;left:3px;transition:transform .2s;box-shadow:0 1px 4px rgba(0,0,0,.2); }
.ghhfb-toggle-lbl input:checked ~ .ghhfb-toggle-track { background:#1b4332; }
.ghhfb-toggle-lbl input:checked ~ .ghhfb-toggle-track .ghhfb-toggle-thumb { transform:translateX(20px); }

/* Star rating */
.ghhfb-rating { display:flex;gap:4px;margin-top:4px; }
.ghhfb-star { font-size:1.6rem;cursor:pointer;color:#e2e8df;transition:color .1s; }
.ghhfb-star.active,.ghhfb-star.hover { color:#d4a017; }

/* Section heading */
.ghhfb-section-heading { grid-column:1/-1;border-left:4px solid #d4a017;padding:10px 16px;margin:10px 0 4px;background:#f8f9f4;border-radius:4px; }
.ghhfb-section-heading h3 { margin:0 0 4px;font-size:1rem;color:#1b4332;font-family:'Playfair Display',Georgia,serif; }
.ghhfb-section-heading p { margin:0;font-size:.82rem;color:#5a6b57; }

/* HTML block */
.ghhfb-html-block { grid-column:1/-1;font-size:.87rem;color:#1a2e18;line-height:1.6; }

/* Name group */
.ghhfb-name-group { display:grid;grid-template-columns:1fr 1fr;gap:8px; }

/* Address group */
.ghhfb-address-group { display:grid;grid-template-columns:1fr 1fr;gap:8px; }
.ghhfb-address-group input:first-child { grid-column:1/-1; }

/* Signature */
.ghhfb-signature-wrap { border:1.5px solid #e2e8df;border-radius:6px;overflow:hidden;background:#fafafa; }
.ghhfb-signature-canvas { display:block;touch-action:none;cursor:crosshair;background:#fff; }
.ghhfb-sig-clear { background:transparent;border:none;border-top:1px solid #e2e8df;padding:4px 12px;font-size:11px;cursor:pointer;color:#5a6b57;width:100%; }
.ghhfb-sig-clear:hover { background:#f1f5f0; }

/* CAPTCHA */
.ghhfb-captcha { display:flex;align-items:center;gap:12px; }
.ghhfb-captcha-q { font-size:.9rem;font-weight:600;color:#1b4332; }

/* Nav buttons */
.ghhfb-nav-btns { display:flex;justify-content:space-between;align-items:center;margin-top:22px;padding-top:18px;border-top:1px solid #e2e8df;gap:12px; }
.ghhfb-submit { min-width:140px; }
.ghhfb-submit:disabled { opacity:.6;cursor:not-allowed; }

/* Error */
.ghhfb-err { display:block;font-size:.72rem;color:#c0392b;margin-top:3px;min-height:1em; }
.ghhfb-global-error { background:#fff5f5;border:1px solid #f5c6cb;border-radius:6px;color:#721c24;padding:12px 16px;font-size:.87rem;margin-top:16px; }

/* Acknowledgement Card */
.ghhfb-success { animation: ghh-pop .4s ease; }
@keyframes ghh-pop { from{opacity:0;transform:scale(.95)} to{opacity:1;transform:scale(1)} }
.ghhfb-ack-card {
  text-align: center;
  padding: 40px 28px;
  border-radius: 16px;
  border: 2px solid #1b4332;
  background: #f0fdf4;
  color: #1b4332;
  box-shadow: 0 6px 28px rgba(27,67,50,.14);
  max-width: 520px;
  margin: 0 auto;
}
.ghhfb-ack-icon  { font-size: 3.2rem; margin-bottom: 10px; line-height: 1; }
.ghhfb-ack-title { font-family: 'Playfair Display',Georgia,serif; font-size: 1.35rem; margin: 0 0 10px; }
.ghhfb-success-msg { font-size: .93rem; opacity: .85; margin-bottom: 18px; }
.ghhfb-ref-block { display:inline-flex;flex-direction:column;align-items:center;background:rgba(0,0,0,.07);border-radius:10px;padding:12px 28px;margin-bottom:18px; }
.ghhfb-ref-block span { font-size:.68rem;text-transform:uppercase;letter-spacing:1px;opacity:.7; }
.ghhfb-ref-val { font-size:1.5rem;font-weight:800;letter-spacing:2px; }
.ghhfb-ack-summary { margin: 16px 0; text-align: left; }
.ghhfb-ack-table { width:100%;border-collapse:collapse;font-size:.85rem; }
.ghhfb-ack-table th { padding:6px 10px;width:42%;font-weight:600;border-bottom:1px solid rgba(0,0,0,.1);opacity:.75; }
.ghhfb-ack-table td { padding:6px 10px;border-bottom:1px solid rgba(0,0,0,.07); }
.ghhfb-pdf-link-wrap { margin-top:14px; }

/* Conditional */
.ghhfb-conditional { overflow:hidden;transition:opacity .2s; }

@media(max-width:600px) {
  .ghhfb-form { padding:18px; }
  .ghhfb-fields-grid { grid-template-columns:1fr; }
  .ghhfb-name-group,.ghhfb-address-group { grid-template-columns:1fr; }
  .ghhfb-steps { overflow-x:auto; }
}

/* ============================================================
   GHH Smart Forms (Pre-built Registry Forms) — Front-end Styles
   ============================================================ */
/* ============================================================
   GHH Smart Forms — Frontend Styles
   Matches Gujarat Haj House Theme v16 (GHH_VERSION 8.0.0)
   Uses theme CSS variables: --primary, --accent, --radius-*, etc.
   ============================================================ */

/* ── Wrap ──────────────────────────────────────────────────────────── */
.ghhsf-form-wrap {
  max-width: 860px;
  margin: 0 auto 40px;
  font-family: 'Hind', 'Segoe UI', Arial, sans-serif;
}

/* ── Form Header ───────────────────────────────────────────────────── */
.ghhsf-form-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, var(--primary, #1b4332) 0%, var(--primary-mid, #2d6a4f) 100%);
  border-radius: var(--radius-lg, 20px) var(--radius-lg, 20px) 0 0;
  padding: 28px 32px;
  margin-bottom: 0;
}
.ghhsf-form-icon {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
}
.ghhsf-form-title {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--accent, #d4a017) !important;
  font-size: 1.45rem !important;
  margin: 0 0 4px !important;
  padding: 0 !important;
  border: none !important;
}
.ghhsf-form-desc {
  color: rgba(255,255,255,0.82);
  font-size: .88rem;
  margin: 0;
  line-height: 1.5;
}

/* ── Step Tabs ─────────────────────────────────────────────────────── */
.ghhsf-steps-nav {
  display: flex;
  background: var(--primary-dark, #0f2d1e);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.ghhsf-steps-nav::-webkit-scrollbar { display: none; }

.ghhsf-step-tab {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 10px;
  cursor: default;
  border-bottom: 3px solid transparent;
  transition: all .2s ease;
  position: relative;
}
.ghhsf-step-tab::after {
  content: '';
  position: absolute;
  right: 0; top: 25%; bottom: 25%;
  width: 1px;
  background: rgba(255,255,255,.12);
}
.ghhsf-step-tab:last-child::after { display: none; }

.ghhsf-step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.6);
  font-size: .78rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.ghhsf-step-label {
  font-size: .7rem;
  color: rgba(255,255,255,.5);
  text-align: center;
  font-weight: 600;
  letter-spacing: .2px;
  line-height: 1.2;
}
.ghhsf-step-tab.active .ghhsf-step-num {
  background: var(--accent, #d4a017);
  color: var(--primary-dark, #0f2d1e);
}
.ghhsf-step-tab.active .ghhsf-step-label { color: var(--accent-light, #f4c431); }
.ghhsf-step-tab.active { border-bottom-color: var(--accent, #d4a017); }
.ghhsf-step-tab.completed .ghhsf-step-num {
  background: var(--primary-light, #40916c);
  color: #fff;
}
.ghhsf-step-tab.completed .ghhsf-step-label { color: rgba(255,255,255,.75); }

/* ── Form Card ─────────────────────────────────────────────────────── */
.ghhsf-form {
  background: var(--white, #fff);
  border: 1px solid var(--gray-200, #e2e8df);
  border-top: none;
  border-radius: 0 0 var(--radius-lg, 20px) var(--radius-lg, 20px);
  padding: 28px 32px 32px;
  box-shadow: var(--shadow-md, 0 4px 20px rgba(27,67,50,.15));
}

/* ── Fields Grid ───────────────────────────────────────────────────── */
.ghhsf-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px 20px;
}

/* Full-width overrides */
.ghhsf-field[data-field="address"],
.ghhsf-field[data-field="complaint_details"],
.ghhsf-field[data-field="health_details"],
.ghhsf-field[data-field="special_needs_details"],
.ghhsf-field[data-field="other_details"],
.ghhsf-field[data-field="reason"],
.ghhsf-checkbox-group,
.ghhsf-field[data-field="declaration"] {
  grid-column: 1 / -1;
}

/* ── Form Group (inherits theme styles, extends) ───────────────────── */
.ghhsf-field.form-group {
  margin-bottom: 14px;
}
.ghhsf-field.form-group label {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ghhsf-required {
  color: #c0392b;
  font-size: .85em;
}

/* Inputs — extend theme .form-group input */
.ghhsf-form input[type="text"],
.ghhsf-form input[type="email"],
.ghhsf-form input[type="tel"],
.ghhsf-form input[type="number"],
.ghhsf-form input[type="date"],
.ghhsf-form input[type="password"],
.ghhsf-form select,
.ghhsf-form textarea {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--gray-200, #e2e8df);
  border-radius: var(--radius-sm, 6px);
  font-size: .88rem;
  color: var(--text, #1a2e18);
  background: var(--gray-100, #f1f5f0);
  transition: var(--transition, all .25s ease);
  outline: none;
  font-family: inherit;
  line-height: 1.5;
}
.ghhsf-form input:focus,
.ghhsf-form select:focus,
.ghhsf-form textarea:focus {
  border-color: var(--primary, #1b4332);
  background: var(--white, #fff);
  box-shadow: 0 0 0 3px rgba(27,67,50,.1);
}
.ghhsf-form input.ghhsf-error-field,
.ghhsf-form select.ghhsf-error-field,
.ghhsf-form textarea.ghhsf-error-field {
  border-color: #c0392b;
  background: #fff5f5;
  box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}
.ghhsf-form textarea { resize: vertical; min-height: 90px; }
.ghhsf-form select { cursor: pointer; appearance: auto; }

/* ── Radio Group ───────────────────────────────────────────────────── */
.ghhsf-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.ghhsf-radio-label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border: 1.5px solid var(--gray-200, #e2e8df);
  border-radius: var(--radius-sm, 6px);
  font-size: .85rem;
  cursor: pointer;
  background: var(--gray-100, #f1f5f0);
  transition: all .2s;
  font-weight: 500;
  color: var(--text-muted, #5a6b57);
}
.ghhsf-radio-label input[type="radio"] {
  width: auto;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  accent-color: var(--primary, #1b4332);
}
.ghhsf-radio-label:has(input:checked) {
  border-color: var(--primary, #1b4332);
  background: var(--white, #fff);
  color: var(--primary, #1b4332);
  box-shadow: 0 0 0 2px rgba(27,67,50,.12);
}
.ghhsf-radio-label:hover { border-color: var(--primary-light, #40916c); }

/* ── Checkbox ──────────────────────────────────────────────────────── */
.ghhsf-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--text, #1a2e18);
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200, #e2e8df);
  border-radius: var(--radius-sm, 6px);
  background: var(--gray-100, #f1f5f0);
  transition: all .2s;
}
.ghhsf-checkbox-label:hover { border-color: var(--primary, #1b4332); background: var(--white, #fff); }
.ghhsf-checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 1px;
  accent-color: var(--primary, #1b4332);
  border: none; background: none; box-shadow: none; padding: 0;
}

/* ── Field error ───────────────────────────────────────────────────── */
.ghhsf-field-error {
  display: block;
  font-size: .75rem;
  color: #c0392b;
  margin-top: 4px;
  min-height: 1em;
}

/* ── Conditional field animation ───────────────────────────────────── */
.ghhsf-conditional {
  overflow: hidden;
  transition: opacity .25s ease, transform .25s ease;
}
.ghhsf-conditional[style*="display:none"] {
  opacity: 0;
  transform: translateY(-4px);
}

/* ── Step navigation buttons ───────────────────────────────────────── */
.ghhsf-step-nav-buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200, #e2e8df);
  gap: 12px;
}
.ghhsf-submit-btn,
.ghhsf-next-step,
.ghhsf-prev-step {
  min-width: 140px;
}
.ghhsf-submit-btn:disabled { opacity: .6; cursor: not-allowed; }

/* ── Success Message ───────────────────────────────────────────────── */
.ghhsf-success-message {
  text-align: center;
  padding: 48px 32px;
  background: var(--white, #fff);
  border: 1px solid var(--gray-200, #e2e8df);
  border-radius: var(--radius-lg, 20px);
  box-shadow: var(--shadow-md);
  animation: ghhsf-pop .4s ease;
}
@keyframes ghhsf-pop {
  from { opacity: 0; transform: scale(.95); }
  to   { opacity: 1; transform: scale(1); }
}
.ghhsf-success-icon { font-size: 3rem; margin-bottom: 12px; }
.ghhsf-success-message h3 {
  color: var(--primary, #1b4332);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  margin-bottom: 10px;
}
.ghhsf-success-text { color: var(--text-muted, #5a6b57); font-size: .95rem; margin-bottom: 20px; }
.ghhsf-ref-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  background: var(--gray-100, #f1f5f0);
  border: 2px solid var(--accent, #d4a017);
  border-radius: var(--radius-md, 12px);
  padding: 16px 32px;
  margin-bottom: 20px;
}
.ghhsf-ref-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted, #5a6b57);
  margin-bottom: 4px;
}
.ghhsf-ref-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary, #1b4332);
  letter-spacing: 2px;
}

/* ── Global error banner ───────────────────────────────────────────── */
.ghhsf-form-error {
  background: #fff5f5;
  border: 1px solid #f5c6cb;
  border-radius: var(--radius-sm, 6px);
  color: #721c24;
  padding: 12px 16px;
  font-size: .88rem;
  margin-top: 16px;
}

/* ── Responsive ────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .ghhsf-form-header { padding: 20px; flex-direction: column; gap: 10px; }
  .ghhsf-form { padding: 20px 18px 24px; }
  .ghhsf-fields-grid { grid-template-columns: 1fr; }
  .ghhsf-step-tab { min-width: 90px; padding: 10px 6px; }
  .ghhsf-step-label { font-size: .62rem; }
  .ghhsf-submit-btn, .ghhsf-next-step, .ghhsf-prev-step { min-width: 100px; }
}

/* ══════════════════════════════════════════════════════════════════════
   GHH Forms v4 — Complete Front-End Stylesheet
   Self-contained: no dependency on theme styles.
══════════════════════════════════════════════════════════════════════ */

/* ── Form wrapper ─────────────────────────────────────────────────── */
.ghh-form-wrap {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15px;
  color: #1a2e18;
  max-width: 780px;
  margin: 0 auto 32px;
  background: #fff;
  border: 1px solid #e2e8df;
  border-radius: 12px;
  padding: 32px 36px;
  box-shadow: 0 2px 16px rgba(27,67,50,.08);
}

/* ── Form element reset ───────────────────────────────────────────── */
.ghh-form * { box-sizing: border-box; }
.ghh-form input,
.ghh-form select,
.ghh-form textarea {
  display: block;
  width: 100%;
  padding: 10px 14px;
  font-size: .93rem;
  font-family: inherit;
  color: #1a2e18;
  background: #fff;
  border: 1.5px solid #d1d5db;
  border-radius: 6px;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  appearance: auto;
}
.ghh-form input:focus,
.ghh-form select:focus,
.ghh-form textarea:focus {
  border-color: #1b4332;
  box-shadow: 0 0 0 3px rgba(27,67,50,.12);
}
.ghh-form input[type=checkbox],
.ghh-form input[type=radio] {
  display: inline-block;
  width: auto;
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}
.ghh-form input[type=file] {
  padding: 8px 10px;
  background: #f8f9f4;
  cursor: pointer;
}
.ghh-form input[type=range] {
  border: none;
  box-shadow: none;
  padding: 0;
  background: none;
  width: 100%;
  cursor: pointer;
}
.ghh-form select { background-image: none; cursor: pointer; }
.ghh-form textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
.ghh-form label {
  display: block;
  font-weight: 600;
  font-size: .85rem;
  color: #374151;
  margin-bottom: 5px;
  letter-spacing: .01em;
}

/* ── Fields grid ──────────────────────────────────────────────────── */
.ghh-fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  align-items: start;
}

/* ── Single field wrapper ─────────────────────────────────────────── */
.ghh-field {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Width modifiers */
.ghh-w-full  { grid-column: 1 / -1; }
.ghh-w-half  { grid-column: span 1; }
.ghh-w-third { grid-column: span 1; }

/* ── Validation ───────────────────────────────────────────────────── */
.ghh-err       { display:block; color:#dc2626; font-size:.76rem; margin-top:4px; min-height:1em; }
.ghh-err-input { border-color:#dc2626 !important; box-shadow:0 0 0 3px rgba(220,38,38,.1) !important; }
.ghh-global-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
  padding: 11px 16px;
  border-radius: 7px;
  margin-top: 14px;
  font-size: .88rem;
}
.ghh-req  { color: #dc2626; margin-left: 2px; }
.ghh-help { font-size: .76rem; color: #6b7280; margin-top: 3px; line-height: 1.4; }

/* ── Section heading ──────────────────────────────────────────────── */
.ghh-section {
  grid-column: 1 / -1;
  border-bottom: 2px solid #d4a017;
  padding-bottom: 6px;
  margin-top: 8px;
  margin-bottom: 2px;
}
.ghh-section h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #1b4332;
  margin: 0 0 2px;
}
.ghh-section p  { font-size: .83rem; color: #6b7280; margin: 0; }

/* ── HTML block ───────────────────────────────────────────────────── */
.ghh-html { grid-column: 1 / -1; font-size: .9rem; line-height: 1.6; }

/* ── Steps nav ────────────────────────────────────────────────────── */
.ghh-steps-nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.ghh-step-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 20px;
  background: #f3f4f6;
  font-size: .82rem;
  font-weight: 600;
  cursor: default;
  transition: background .2s;
}
.ghh-step-tab.active    { background: #1b4332; color: #d4a017; }
.ghh-step-tab.completed { background: #dcfce7; color: #15803d; }
.ghh-step-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,.12);
  display: grid; place-items: center;
  font-size: .7rem; font-weight: 700;
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.ghh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 700;
  font-size: .9rem;
  font-family: inherit;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background .15s, opacity .15s;
  text-decoration: none;
  line-height: 1;
}
.ghh-btn-primary { background: #1b4332; color: #d4a017; border-color: #1b4332; }
.ghh-btn-primary:hover { background: #163526; }
.ghh-btn-outline { background: transparent; color: #1b4332; border-color: #1b4332; }
.ghh-btn-outline:hover { background: #f0fdf4; }
.ghh-btn-submit  {
  background: #1b4332;
  color: #d4a017;
  padding: 12px 36px;
  font-size: 1rem;
  border: none;
  border-radius: 7px;
  letter-spacing: .02em;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  transition: background .15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ghh-btn-submit:hover   { background: #163526; }
.ghh-btn-submit:disabled{ opacity: .6; cursor: not-allowed; }

/* ── Form nav row ─────────────────────────────────────────────────── */
.ghh-form-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
  grid-column: 1 / -1;
}

/* ── Radio / Checkbox groups ──────────────────────────────────────── */
.ghh-radios, .ghh-checks {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 2px;
}
.ghh-radio, .ghh-check {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 400;
  color: #374151;
}
.ghh-radio input[type=radio],
.ghh-check input[type=checkbox] {
  width: 16px; height: 16px;
  flex-shrink: 0;
  accent-color: #1b4332;
}

/* ── Toggle switch ────────────────────────────────────────────────── */
.ghh-toggle-lbl  { display:inline-flex; align-items:center; gap:10px; cursor:pointer; }
.ghh-toggle-input{ display:none; }
.ghh-toggle-track{
  width:44px; height:24px;
  background:#d1d5db; border-radius:12px;
  position:relative; transition:.2s; flex-shrink:0;
}
.ghh-toggle-input:checked + .ghh-toggle-track { background:#1b4332; }
.ghh-toggle-thumb{
  position:absolute; top:3px; left:3px;
  width:18px; height:18px;
  background:#fff; border-radius:50%; transition:.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.ghh-toggle-input:checked + .ghh-toggle-track .ghh-toggle-thumb { left:23px; }
.ghh-toggle-text { font-size:.9rem; color:#374151; }

/* ── Range slider ─────────────────────────────────────────────────── */
.ghh-range-wrap { display:flex; align-items:center; gap:12px; }
.ghh-range-wrap input[type=range] { flex:1; }
.ghh-range-wrap o {
  min-width:38px; text-align:center;
  font-weight:700; color:#1b4332;
  font-style:normal; font-size:.95rem;
}

/* ── Star Rating ──────────────────────────────────────────────────── */
.ghh-rating { display:flex; gap:5px; font-size:1.6rem; cursor:pointer; margin-top:2px; }
.ghh-star   { color:#d1d5db; transition:.15s; user-select:none; }
.ghh-star.active, .ghh-star.hover { color:#d4a017; }

/* ── Signature Pad ────────────────────────────────────────────────── */
.ghh-sig-wrap {
  border: 1.5px dashed #d1d5db;
  border-radius: 8px;
  background: #fafafa;
  overflow: hidden;
  display: inline-block;
  max-width: 100%;
}
.ghh-sig-canvas { display:block; cursor:crosshair; touch-action:none; }
.ghh-sig-clear  {
  background: none; border: none;
  color: #6b7280; font-size:.78rem;
  cursor:pointer; padding:4px 12px;
  display:block; width:100%;
  border-top:1px solid #e5e7eb;
}
.ghh-sig-clear:hover { background:#f3f4f6; color:#374151; }

/* ── File upload ──────────────────────────────────────────────────── */
.ghh-file-wrap { display:flex; flex-direction:column; gap:3px; }
.ghh-file-hint { font-size:.75rem; color:#9ca3af; margin:0; }

/* ── Name & Address grids ─────────────────────────────────────────── */
.ghh-name-grp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ghh-addr-grp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ghh-addr-grp input:first-child { grid-column: 1/-1; }

/* ── CAPTCHA ──────────────────────────────────────────────────────── */
.ghh-captcha    { display:flex; align-items:center; gap:14px; margin-top:4px; }
.ghh-captcha-q  {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1b4332;
  background: #f0fdf4;
  padding: 6px 14px;
  border-radius: 6px;
  border: 1.5px solid #d4a017;
  white-space: nowrap;
}
.ghh-captcha input[type=number] { width:90px !important; }

/* ── Conditional fields ───────────────────────────────────────────── */
.ghh-conditional { overflow: hidden; }

/* ── Acknowledgement Card ─────────────────────────────────────────── */
.ghh-ack-wrap { animation: ghh-pop .4s ease; }
@keyframes ghh-pop { from{opacity:0;transform:scale(.95)} to{opacity:1;transform:scale(1)} }
.ghh-ack-card {
  max-width: 540px; margin: 0 auto;
  padding: 40px 32px; border-radius: 14px;
  border: 2px solid #1b4332; background: #f0fdf4; color: #1b4332;
  text-align: center;
  box-shadow: 0 8px 32px rgba(27,67,50,.14);
}
.ghh-ack-icon  { font-size: 3.4rem; margin-bottom: 10px; line-height: 1; }
.ghh-ack-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.45rem; margin: 0 0 10px;
}
.ghh-ack-msg   { font-size: .93rem; opacity: .85; margin-bottom: 18px; }
.ghh-ref-block {
  display: inline-flex; flex-direction: column; align-items: center;
  background: rgba(0,0,0,.07); border-radius: 10px;
  padding: 12px 28px; margin-bottom: 18px;
}
.ghh-ref-block span { font-size:.68rem; text-transform:uppercase; letter-spacing:1px; opacity:.7; }
.ghh-ref-val   { font-size: 1.5rem; font-weight: 800; letter-spacing: 2px; }
.ghh-ack-summary { margin: 16px 0; text-align: left; }
.ghh-ack-table { width:100%; border-collapse:collapse; font-size:.85rem; }
.ghh-ack-table th {
  padding: 7px 10px; width: 40%;
  font-weight: 600; border-bottom: 1px solid rgba(0,0,0,.1);
  opacity: .75; vertical-align: top;
}
.ghh-ack-table td {
  padding: 7px 10px; border-bottom: 1px solid rgba(0,0,0,.07);
  word-break: break-word; vertical-align: top;
}
.ghh-ack-table img {
  max-width: 140px; max-height: 140px;
  border-radius: 6px; object-fit: cover; display: block;
}
.ghh-ack-pdf-wrap { margin-top: 14px; }

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .ghh-form-wrap  { padding: 20px 16px; border-radius: 0; border-left:none; border-right:none; }
  .ghh-fields-grid{ grid-template-columns: 1fr; }
  .ghh-w-half, .ghh-w-third { grid-column: 1/-1; }
  .ghh-name-grp, .ghh-addr-grp { grid-template-columns: 1fr; }
  .ghh-steps-nav  { gap: 4px; }
  .ghh-step-tab   { padding: 6px 10px; font-size:.75rem; }
}

