@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@300;400;500;600&display=swap');

/* CSS variables injected via inline <style> by shortcode:
   --c  = primary color
   --cl = lighter shade
   --cd = darker shade
   --cp = pale background
   --cb = border color
*/
.shf-wrap { font-family:'DM Sans',sans-serif; color:#1a1a2e; }

/* Card */
.shf-card { background:#fff; border-radius:18px; box-shadow:0 4px 28px rgba(45,104,152,.10); padding:36px 40px; border:1px solid var(--cb,#c3d9ee); }
@media(max-width:520px){ .shf-card{ padding:22px 18px; } }

/* Section label */
.shf-section-label { font-size:10.5px; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--c,#2D6898); margin-bottom:18px; padding-bottom:10px; border-bottom:1.5px solid var(--cp,#e8f2fb); display:flex; align-items:center; gap:8px; }

/* Group */
.shf-group { margin-bottom:22px; }
.shf-label { display:block; font-size:14px; font-weight:600; color:#1e293b; margin-bottom:9px; }
.shf-opt-tag { font-size:11px; font-weight:500; color:#94a3b8; background:#f1f5f9; padding:2px 8px; border-radius:100px; margin-left:5px; }
.shf-divider { height:1px; background:var(--cp,#e8f2fb); margin:26px 0; }

/* Inputs */
.shf-wrap input[type=tel],
.shf-wrap input[type=email],
.shf-wrap textarea {
  width:100%; padding:11px 14px; border:1.5px solid #e2e8f0; border-radius:10px;
  font-family:'DM Sans',sans-serif; font-size:14px; color:#1e293b; background:#fff;
  transition:border-color .2s,box-shadow .2s; outline:none; box-sizing:border-box;
}
.shf-wrap input:focus,.shf-wrap textarea:focus { border-color:var(--c,#2D6898); box-shadow:0 0 0 3px var(--cp,#e8f2fb); }
.shf-wrap textarea { resize:vertical; min-height:80px; }

/* Options grid */
.shf-checkbox-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.shf-radio-grp { display:flex; gap:10px; flex-wrap:wrap; }
.shf-full { grid-column:1/-1; }
@media(max-width:400px){ .shf-checkbox-grid{ grid-template-columns:1fr; } }

.shf-option { position:relative; }
.shf-option input[type=radio],
.shf-option input[type=checkbox] { position:absolute; opacity:0; width:0; height:0; }
.shf-option label { display:flex; align-items:center; gap:10px; padding:11px 14px; border:1.5px solid #e2e8f0; border-radius:10px; cursor:pointer; font-size:13.5px; font-weight:500; transition:all .16s; user-select:none; background:#fff; }
.shf-option label:hover { border-color:var(--cl,#4a8bbf); background:var(--cp,#e8f2fb); }
.shf-option input:checked+label { border-color:var(--c,#2D6898); background:var(--cp,#e8f2fb); color:var(--c,#2D6898); font-weight:600; }
.shf-option input:checked+label .shf-check { background:var(--c,#2D6898); border-color:var(--c,#2D6898); }
.shf-option input:checked+label .shf-check::after { opacity:1; }

.shf-check { width:17px; height:17px; border-radius:50%; border:2px solid #cbd5e1; flex-shrink:0; position:relative; transition:all .16s; background:#fff; }
.shf-check.sq { border-radius:5px; }
.shf-check::after { content:''; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:6px; height:6px; background:#fff; border-radius:50%; opacity:0; transition:opacity .16s; }
.shf-check.sq::after { width:8px; height:6px; background:none; border-left:2px solid #fff; border-bottom:2px solid #fff; border-radius:0; transform:translate(-50%,-65%) rotate(-45deg); }

/* Upload */
.shf-upload-area { border:2px dashed #cbd5e1; border-radius:12px; padding:26px 20px; text-align:center; cursor:pointer; transition:all .2s; background:#f8fafc; position:relative; }
.shf-upload-area:hover,.shf-upload-area.dragover { border-color:var(--c,#2D6898); background:var(--cp,#e8f2fb); }
.shf-upload-area input[type=file] { position:absolute; inset:0; opacity:0; cursor:pointer; width:100%; height:100%; }
.shf-upload-icon { width:44px; height:44px; background:var(--cp,#e8f2fb); border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 10px; color:var(--c,#2D6898); }
.shf-upload-area h4 { font-size:14px; font-weight:600; margin:0 0 4px; color:#1e293b; }
.shf-upload-area p { font-size:13px; color:#64748b; margin:0; }
.shf-photo-hint { margin-top:10px; background:var(--cp,#e8f2fb); border-radius:8px; padding:10px 14px; font-size:13px; color:var(--c,#2D6898); line-height:1.5; }
.shf-photo-badge { display:inline-block; background:var(--c,#2D6898); color:#fff; font-size:11px; font-weight:700; padding:2px 9px; border-radius:100px; }

/* Preview */
.shf-preview { display:flex; flex-wrap:wrap; gap:9px; margin-top:12px; }
.shf-thumb { position:relative; width:70px; height:70px; border-radius:9px; overflow:hidden; border:2px solid var(--cb,#c3d9ee); }
.shf-thumb img { width:100%; height:100%; object-fit:cover; }
.shf-thumb-rm { position:absolute; top:2px; right:2px; width:18px; height:18px; background:rgba(0,0,0,.58); border-radius:50%; border:none; cursor:pointer; color:#fff; font-size:10px; display:flex; align-items:center; justify-content:center; }

/* Two col */
.shf-two-col { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media(max-width:480px){ .shf-two-col{ grid-template-columns:1fr; } }

/* Errors */
.shf-error { font-size:12px; color:#ef4444; margin-top:5px; display:none; }
.shf-group.has-error input,.shf-group.has-error textarea { border-color:#ef4444; }
.shf-group.has-error .shf-upload-area { border-color:#ef4444; }
.shf-group.has-error .shf-error { display:block; }
.shf-err-global { background:#fff5f5; border:1px solid #fecaca; border-radius:9px; padding:11px 14px; font-size:13.5px; color:#dc2626; text-align:center; margin-bottom:14px; }

/* Submit */
.shf-submit { width:100%; padding:16px; background:var(--c,#2D6898); color:#fff; border:none; border-radius:11px; font-family:'DM Sans',sans-serif; font-size:15px; font-weight:700; cursor:pointer; transition:background .2s,transform .1s,box-shadow .2s; box-shadow:0 4px 18px rgba(45,104,152,.28); display:flex; align-items:center; justify-content:center; gap:9px; margin-top:6px; }
.shf-submit:hover { background:var(--cl,#4a8bbf); box-shadow:0 6px 24px rgba(45,104,152,.36); transform:translateY(-1px); }
.shf-submit:active { transform:translateY(0); }
.shf-submit:disabled { opacity:.7; cursor:not-allowed; transform:none; }
.shf-btn-text,.shf-btn-loading { display:flex; align-items:center; gap:9px; }
.shf-privacy { text-align:center; font-size:12.5px; color:#94a3b8; margin-top:10px; }

/* ── Success Screen ── */
.shf-success { text-align:center; padding:36px 20px 28px; }
.shf-success-icon { width:70px; height:70px; background:var(--cp,#e8f2fb); border-radius:50%; display:flex; align-items:center; justify-content:center; margin:0 auto 18px; color:var(--c,#2D6898); }
.shf-success h2 { font-size:24px; font-weight:700; margin:0 0 10px; color:#1e293b; }
.shf-success p { color:#64748b; font-size:15px; line-height:1.6; max-width:380px; margin:0 auto 24px; }

/* Countdown ring */
.shf-countdown-wrap { display:flex; flex-direction:column; align-items:center; gap:8px; margin-bottom:22px; }
.shf-countdown-ring { position:relative; width:60px; height:60px; display:flex; align-items:center; justify-content:center; }
.shf-countdown-ring svg { position:absolute; inset:0; width:100%; height:100%; transform:rotate(-90deg); }
.shf-ring-bg { stroke:#e2e8f0; }
.shf-ring-fg { stroke:var(--c,#2D6898); stroke-linecap:round; transition:stroke-dashoffset .9s linear; }
.shf-countdown-ring span { font-size:20px; font-weight:700; color:var(--c,#2D6898); position:relative; z-index:1; }
.shf-countdown-label { font-size:13px; color:#64748b; margin:0; }

/* Success actions */
.shf-success-actions { display:flex; gap:12px; justify-content:center; flex-wrap:wrap; }
.shf-btn-wa { display:inline-flex; align-items:center; gap:8px; background:#25d366; color:#fff; text-decoration:none; padding:13px 24px; border-radius:10px; font-size:14px; font-weight:700; transition:background .18s; }
.shf-btn-wa:hover { background:#1ebe5a; color:#fff; }
.shf-btn-close { display:inline-flex; align-items:center; gap:8px; background:transparent; color:#64748b; border:1.5px solid #e2e8f0; padding:12px 22px; border-radius:10px; font-size:14px; font-weight:600; cursor:pointer; transition:all .18s; }
.shf-btn-close:hover { border-color:var(--c,#2D6898); color:var(--c,#2D6898); }
