/* DESMA PR Points Calculator — styled to the desma.in Elementor palette (yellow #FFD100, black, greys #54595F / #7A7A7A, gold #DBC14A).
   Colours, font and button shape can be changed in PR Enquiries → Settings; they arrive as the CSS variables below. */
#desma-prc{
  --dp-brand:#FFD100;          /* Elementor primary/accent: buttons, progress, selected answers */
  --dp-on-brand:#000000;       /* text and ticks on top of the brand colour */
  --dp-ink:#000000;            /* headings, body text, header, bottom bar */
  --dp-gold:var(--dp-brand);   /* answered-step borders */
  --dp-tint:color-mix(in srgb, var(--dp-brand) 64%, #fff);
  --dp-glow:color-mix(in srgb, var(--dp-brand) 40%, transparent);
  --dp-font:inherit;           /* inherits the theme font unless set in Settings */
  --dp-radius-btn:50px;
  --dp-muted:#54595F; --dp-line:var(--dp-brand); --dp-soft:#fafafa; --dp-bg:#ffffff;
  --dp-ok:#0f7a4f; --dp-ok-bg:#e2f6ec; --dp-mid:#8f5c00; --dp-mid-bg:#fff3d6; --dp-low:#b02a2a; --dp-low-bg:#fdeaea;
  --dp-shadow:0 1px 2px rgba(0,0,0,.04), 0 6px 22px rgba(0,0,0,.06);
  max-width:820px; margin:0 auto; color:var(--dp-ink); font-family:var(--dp-font); font-size:16px; line-height:1.55; text-align:left;
}
#desma-prc *, #desma-prc *::before, #desma-prc *::after{box-sizing:border-box}
#desma-prc [hidden]{display:none !important}
#desma-prc p{margin:0}

/* ---------- header ---------- */
#desma-prc .dprc-hero{position:relative; overflow:hidden; border-radius:20px; padding:30px 28px 24px; margin:0 0 18px; color:#fff;
  background:radial-gradient(circle at 100% 0%, var(--dp-glow) 0, transparent 55%), linear-gradient(135deg, var(--dp-ink) 0%, #1f2225 100%)}
#desma-prc .dprc-hero::before, #desma-prc .dprc-hero::after{content:""; position:absolute; border-radius:50%; background:rgba(255,255,255,.07); pointer-events:none}
#desma-prc .dprc-hero::before{width:260px; height:260px; right:-70px; top:-110px}
#desma-prc .dprc-hero::after{width:150px; height:150px; right:90px; bottom:-90px}
#desma-prc .dprc-hero > *{position:relative}
#desma-prc .dprc-eyebrow{display:inline-block; font-size:12px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; margin:0 0 8px}
#desma-prc .dprc-hero .dprc-eyebrow{background:var(--dp-brand); color:var(--dp-on-brand); padding:5px 12px; border-radius:99px}
#desma-prc .dprc-title{font-family:inherit; font-size:30px; font-weight:800; line-height:1.18; margin:0 0 8px; padding:0; color:#fff; border:0; letter-spacing:-.01em}
#desma-prc .dprc-subtitle{font-size:16px; opacity:.94; max-width:560px; margin:0 0 20px; color:#fff}
#desma-prc .dprc-prog{display:flex; align-items:center; gap:12px}
#desma-prc .dprc-prog-track{position:relative; display:block; flex:1; height:8px; border-radius:99px; background:rgba(255,255,255,.28); overflow:hidden}
#desma-prc .dprc-prog-fill{position:absolute; left:0; top:0; bottom:0; width:0; border-radius:inherit; background:var(--dp-brand); transition:width .35s ease}
#desma-prc .dprc-prog-txt{flex:none; font-size:13px; font-weight:600; font-variant-numeric:tabular-nums}

/* ---------- step cards ---------- */
#desma-prc .dprc-step{background:var(--dp-bg); border:1px solid var(--dp-line); border-radius:18px; padding:22px 22px 20px; margin:0 0 14px;
  box-shadow:var(--dp-shadow); transition:border-color .2s, box-shadow .2s}
#desma-prc .dprc-step.dprc-done{border-color:var(--dp-gold)}
#desma-prc .dprc-step.dprc-missing{border-color:var(--dp-low); box-shadow:0 0 0 4px var(--dp-low-bg)}
#desma-prc fieldset{border:0; padding:0; margin:0; min-width:0}
#desma-prc .dprc-head{display:flex; align-items:center; gap:14px; float:none; width:100%; padding:0; margin:0 0 6px; border:0}
#desma-prc .dprc-badge{position:relative; flex:none; display:flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:50%;
  background:var(--dp-tint); color:var(--dp-ink); font-size:16px; font-weight:800; transition:background .2s, color .2s}
#desma-prc .dprc-done .dprc-badge{background:var(--dp-brand); color:var(--dp-on-brand)}
#desma-prc .dprc-done .dprc-badge-n{visibility:hidden}
#desma-prc .dprc-done .dprc-badge::after{content:""; position:absolute; inset:0; background:no-repeat center/20px
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
#desma-prc .dprc-headtxt{display:flex; flex-direction:column; min-width:0}
#desma-prc .dprc-num{display:block; font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--dp-muted); line-height:1.3}
#desma-prc .dprc-q{display:block; font-size:19px; font-weight:700; line-height:1.3; color:var(--dp-ink)}
#desma-prc .dprc-hint{font-size:14px; color:var(--dp-muted); margin:0 0 14px 54px}

/* ---------- answer tiles ---------- */
#desma-prc .dprc-opts{display:grid; gap:10px; grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}
#desma-prc .dprc-opts.dprc-wide{grid-template-columns:1fr}
#desma-prc .dprc-opt{position:relative; display:block; margin:0; cursor:pointer; font-weight:inherit}
#desma-prc .dprc-opt input{position:absolute; opacity:0; width:100%; height:100%; left:0; top:0; margin:0; cursor:pointer; z-index:1}
#desma-prc .dprc-opt .dprc-face{display:flex; align-items:center; gap:12px; min-height:54px; padding:11px 14px;
  border:1.5px solid var(--dp-line); border-radius:12px; background:var(--dp-soft); font-size:15px; font-weight:600; line-height:1.35; color:var(--dp-ink);
  transition:border-color .15s, background .15s, box-shadow .15s, transform .15s}
#desma-prc .dprc-opt .dprc-txt{flex:1; min-width:0}
#desma-prc .dprc-opt .dprc-sub{display:block; font-size:13px; font-weight:400; color:var(--dp-muted); margin-top:1px}
#desma-prc .dprc-opt .dprc-pts{flex:none; font-size:13px; font-weight:700; color:var(--dp-muted); font-variant-numeric:tabular-nums; white-space:nowrap}
#desma-prc .dprc-radio{flex:none; width:20px; height:20px; border-radius:50%; border:2px solid var(--dp-brand); background:#fff; transition:border .15s}
#desma-prc .dprc-check .dprc-box{flex:none; width:20px; height:20px; border:2px solid var(--dp-brand); border-radius:6px; background:#fff}
#desma-prc .dprc-opt:hover .dprc-face{border-color:var(--dp-brand); background:#fff; box-shadow:0 4px 14px var(--dp-glow); transform:translateY(-1px)}
#desma-prc .dprc-opt input:checked + .dprc-face{border-color:var(--dp-brand); background:var(--dp-tint); box-shadow:inset 0 0 0 1.5px var(--dp-brand); transform:none}
#desma-prc .dprc-opt input:checked + .dprc-face .dprc-radio{border:6px solid var(--dp-ink); background:var(--dp-brand)}
#desma-prc .dprc-opt input:checked + .dprc-face .dprc-pts{color:var(--dp-ink)}
#desma-prc .dprc-opt input:focus-visible + .dprc-face{outline:3px solid var(--dp-brand); outline-offset:2px}
#desma-prc .dprc-check input:checked + .dprc-face .dprc-box{background-color:var(--dp-brand); border-color:var(--dp-brand);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3.2L15 7' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}

/* ---------- contact details ---------- */
#desma-prc .dprc-details{background:linear-gradient(180deg, var(--dp-tint) 0%, #fff 70%); border-color:var(--dp-gold)}
#desma-prc .dprc-fields{display:grid; gap:14px; grid-template-columns:1fr 1fr; margin-left:54px}
#desma-prc .dprc-field-wide{grid-column:1/-1}
#desma-prc .dprc-flabel{display:block; font-size:14px; font-weight:600; margin:0 0 5px; color:var(--dp-ink)}
#desma-prc .dprc-details input[type=text], #desma-prc .dprc-details input[type=tel], #desma-prc .dprc-details input[type=email], #desma-prc .dprc-details select{
  width:100%; height:50px; min-height:50px; padding:10px 14px; border:1.5px solid var(--dp-line); border-radius:12px; font:inherit; font-size:16px;
  color:var(--dp-ink); background:#fff; margin:0; box-shadow:none; transition:border-color .15s, box-shadow .15s}
#desma-prc .dprc-details input:hover, #desma-prc .dprc-details select:hover{border-color:var(--dp-brand)}
#desma-prc .dprc-details input:focus, #desma-prc .dprc-details select:focus{outline:none; border-color:var(--dp-brand); box-shadow:0 0 0 4px var(--dp-glow)}
#desma-prc .dprc-details .dprc-bad{border-color:var(--dp-low)}
#desma-prc .dprc-phone{display:grid; grid-template-columns:minmax(130px,38%) 1fr; gap:8px}
#desma-prc .dprc-ferr{display:block; color:var(--dp-low); font-size:13px; font-weight:600; margin-top:5px}
#desma-prc .dprc-consent{display:flex; gap:10px; align-items:flex-start; margin:16px 0 0 54px; font-size:14px; color:var(--dp-muted); cursor:pointer; font-weight:400}
#desma-prc .dprc-consent input{flex:none; width:20px; height:20px; margin:1px 0 0; accent-color:var(--dp-ink)}
#desma-prc .dprc-consent a{color:var(--dp-ink); text-decoration:underline}
#desma-prc .dprc-details > .dprc-ferr{margin-left:54px}
#desma-prc .dprc-trap{position:absolute !important; left:-9999px !important; width:1px !important; height:1px !important; opacity:0}

/* ---------- sticky bar + buttons ---------- */
#desma-prc .dprc-bar{position:sticky; bottom:12px; z-index:5; display:flex; align-items:center; justify-content:space-between; gap:14px;
  background:var(--dp-ink); color:#fff; border-radius:18px; padding:12px 12px 12px 20px; margin:0 0 18px; box-shadow:0 10px 30px rgba(0,0,0,.28)}
#desma-prc .dprc-bar-info{flex:1; min-width:0; max-width:260px}
#desma-prc .dprc-bar-lbl{font-size:12px; opacity:.75; display:block; line-height:1.2; text-transform:uppercase; letter-spacing:.06em; font-weight:600}
#desma-prc .dprc-bar-val{display:block; font-size:22px; font-weight:800; line-height:1.2; font-variant-numeric:tabular-nums}
#desma-prc .dprc-bar-track{height:5px; margin-top:6px; background:rgba(255,255,255,.18)}
#desma-prc .dprc-bar-track .dprc-prog-fill{background:var(--dp-brand)}
#desma-prc .dprc-btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:50px; padding:12px 26px; border:0;
  border-radius:var(--dp-radius-btn); background:var(--dp-brand); color:var(--dp-on-brand); font:inherit; font-size:16px; font-weight:700; line-height:1.2;
  text-decoration:none; cursor:pointer; text-transform:none; letter-spacing:0; box-shadow:none; transition:filter .15s, transform .15s}
#desma-prc .dprc-btn:hover{filter:brightness(1.05); transform:translateY(-1px); color:var(--dp-on-brand); text-decoration:none}
#desma-prc .dprc-btn:focus-visible{outline:3px solid #fff; outline-offset:2px}
#desma-prc .dprc-btn.dprc-wa{background:var(--dp-brand); color:var(--dp-on-brand)}
#desma-prc .dprc-btn.dprc-wa::before{content:""; width:20px; height:20px; flex:none; background:no-repeat center/contain
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2c-1.5 0-3-.4-4.3-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.3-.4.2-.4.7-1.4.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5c-.2 0-.4.1-.6.3-.2.2-.8.8-.8 2s.8 2.3.9 2.5c.1.2 1.6 2.5 4 3.5 1.5.6 2.1.7 2.8.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.1-1.2 0-.1-.2-.2-.4-.3z'/%3E%3C/svg%3E")}
#desma-prc .dprc-btn.dprc-wa:hover{color:var(--dp-on-brand)}
#desma-prc .dprc-btn.dprc-ghost{background:var(--dp-brand); color:var(--dp-on-brand); box-shadow:inset 0 0 0 1.5px var(--dp-brand)}
#desma-prc .dprc-btn.dprc-ghost:hover{background:var(--dp-brand); color:var(--dp-on-brand)}
#desma-prc .dprc-btn[disabled]{opacity:.6; cursor:default; transform:none}
#desma-prc .dprc-err{color:var(--dp-low); background:var(--dp-low-bg); border-radius:12px; padding:10px 14px; font-size:14px; font-weight:600; margin:-4px 0 16px}

/* ---------- result ---------- */
#desma-prc .dprc-result{background:var(--dp-bg); border:1px solid var(--dp-line); border-radius:20px; padding:26px 24px; margin:0 0 14px; box-shadow:var(--dp-shadow)}
#desma-prc .dprc-result:focus{outline:none}
#desma-prc .dprc-score{display:flex; align-items:center; gap:24px; padding:0 0 22px; margin:0 0 22px; border-bottom:1px solid var(--dp-line)}
#desma-prc .dprc-dial{position:relative; flex:none; width:150px; height:150px}
#desma-prc .dprc-dial-svg{display:block; width:100%; height:100%; overflow:visible}
#desma-prc .dprc-dial-bg{fill:none; stroke:var(--dp-tint); stroke-width:11}
#desma-prc .dprc-dial-fg{fill:none; stroke:var(--dp-ink); stroke-width:11; stroke-linecap:round}
#desma-prc .dprc-dial-mark{stroke:var(--dp-ink); stroke-width:2.5; stroke-linecap:round}
#desma-prc .dprc-tone-ok .dprc-dial-fg{stroke:var(--dp-ok)}
#desma-prc .dprc-tone-mid .dprc-dial-fg{stroke:#d9930b}
#desma-prc .dprc-tone-low .dprc-dial-fg{stroke:var(--dp-low)}
#desma-prc .dprc-dial-val{position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; line-height:1}
#desma-prc .dprc-dial-val b{font-size:44px; font-weight:800; font-variant-numeric:tabular-nums; color:var(--dp-ink)}
#desma-prc .dprc-dial-val small{font-size:13px; font-weight:600; color:var(--dp-muted); margin-top:4px}
#desma-prc .dprc-score-txt{min-width:0}
#desma-prc .dprc-score .dprc-eyebrow{color:var(--dp-muted); margin-bottom:4px}
#desma-prc .dprc-h{font-family:inherit; font-size:23px; font-weight:800; line-height:1.25; margin:0 0 6px; padding:0; color:var(--dp-ink); border:0}
#desma-prc .dprc-lead{color:var(--dp-muted); font-size:15px; margin:0 0 10px}
#desma-prc .dprc-passnote{display:inline-block; font-size:13px; font-weight:600; color:var(--dp-ink); background:var(--dp-soft); border:1px solid var(--dp-line); border-radius:99px; padding:3px 11px}
#desma-prc .dprc-visas{display:grid; gap:12px; grid-template-columns:repeat(3,1fr)}
#desma-prc .dprc-visa{border:1px solid var(--dp-line); border-top:4px solid var(--dp-line); border-radius:14px; padding:14px 10px; text-align:center; background:var(--dp-soft); display:flex; flex-direction:column; align-items:center}
#desma-prc .dprc-visa-ok{border-top-color:var(--dp-ok)}
#desma-prc .dprc-visa-mid{border-top-color:#d9930b}
#desma-prc .dprc-visa-low{border-top-color:var(--dp-low)}
#desma-prc .dprc-visa-name{font-size:13px; font-weight:700; color:var(--dp-muted); display:block; text-transform:uppercase; letter-spacing:.05em}
#desma-prc .dprc-visa-score{font-size:40px; font-weight:800; line-height:1.1; display:block; font-variant-numeric:tabular-nums; color:var(--dp-ink)}
#desma-prc .dprc-visa-note{font-size:12px; color:var(--dp-muted); display:block; margin-bottom:10px; flex:1}
#desma-prc .dprc-tag{display:inline-block; font-size:12px; font-weight:700; padding:4px 10px; border-radius:99px}
#desma-prc .dprc-tag.ok{background:var(--dp-ok-bg); color:var(--dp-ok)}
#desma-prc .dprc-tag.mid{background:var(--dp-mid-bg); color:var(--dp-mid)}
#desma-prc .dprc-tag.low{background:var(--dp-low-bg); color:var(--dp-low)}
#desma-prc .dprc-h3{font-family:inherit; font-size:17px; font-weight:700; margin:26px 0 10px; padding:0; color:var(--dp-ink)}
#desma-prc table.dprc-table{width:100%; border-collapse:collapse; margin:0; font-size:15px; border:0; background:none}
#desma-prc table.dprc-table td{padding:10px 0; border:0; border-bottom:1px solid var(--dp-line); background:none; vertical-align:top; text-align:left}
#desma-prc table.dprc-table td:last-child{text-align:right; font-weight:700; white-space:nowrap; font-variant-numeric:tabular-nums; padding-left:12px; color:var(--dp-ink)}
#desma-prc table.dprc-table small{display:block; color:var(--dp-muted); font-size:13px}
#desma-prc table.dprc-table tr.dprc-total td{border-bottom:0; font-weight:800; font-size:16px; padding-top:14px; color:var(--dp-ink)}
#desma-prc ul.dprc-tips{list-style:none; margin:0; padding:0; display:grid; gap:8px}
#desma-prc ul.dprc-tips li{display:flex; gap:12px; align-items:center; padding:10px 12px; margin:0; border-radius:12px; background:var(--dp-soft); border:1px solid var(--dp-line); font-size:15px}
#desma-prc ul.dprc-tips li::before{display:none}
#desma-prc ul.dprc-tips b{flex:none; min-width:48px; text-align:center; background:var(--dp-brand); color:var(--dp-on-brand); border-radius:99px; padding:3px 8px; font-size:14px}
#desma-prc .dprc-cta{display:grid; gap:10px; grid-template-columns:1fr 1fr; margin-top:24px}
#desma-prc .dprc-fine{font-size:12.5px; color:var(--dp-muted); margin:16px 0 0}
#desma-prc .dprc-link{background:none; border:0; padding:0; color:var(--dp-ink); font:inherit; font-size:14px; font-weight:600; text-decoration:underline; cursor:pointer; margin-top:14px; box-shadow:none}
#desma-prc .dprc-link:hover{background:none; color:var(--dp-ink)}

/* ---------- mobile ---------- */
@media (max-width:600px){
  #desma-prc .dprc-hero{padding:24px 18px 20px; border-radius:16px}
  #desma-prc .dprc-title{font-size:24px}
  #desma-prc .dprc-subtitle{font-size:15px}
  #desma-prc .dprc-step{padding:18px 14px 16px; border-radius:16px}
  #desma-prc .dprc-badge{width:34px; height:34px; font-size:15px}
  #desma-prc .dprc-head{gap:11px}
  #desma-prc .dprc-q{font-size:17px}
  #desma-prc .dprc-hint, #desma-prc .dprc-fields, #desma-prc .dprc-consent, #desma-prc .dprc-details > .dprc-ferr{margin-left:0}
  #desma-prc .dprc-opts{grid-template-columns:1fr 1fr; gap:8px}
  #desma-prc .dprc-opts.dprc-wide{grid-template-columns:1fr}
  #desma-prc .dprc-opt .dprc-face{padding:10px 11px; gap:9px; font-size:14.5px}
  #desma-prc .dprc-bar{bottom:8px; padding:10px 10px 10px 16px; border-radius:16px}
  #desma-prc .dprc-bar-val{font-size:19px}
  #desma-prc .dprc-btn{padding:12px 18px}
  #desma-prc .dprc-result{padding:22px 16px}
  #desma-prc .dprc-score{flex-direction:column; text-align:center; gap:14px}
  #desma-prc .dprc-dial{width:136px; height:136px}
  #desma-prc .dprc-visas{gap:6px}
  #desma-prc .dprc-visa{padding:12px 4px}
  #desma-prc .dprc-visa-name{font-size:10.5px; letter-spacing:.02em; white-space:nowrap}
  #desma-prc .dprc-visa-score{font-size:30px}
  #desma-prc .dprc-visa-note{font-size:11px}
  #desma-prc .dprc-tag{font-size:10.5px; padding:3px 6px; white-space:nowrap}
  #desma-prc .dprc-phone{grid-template-columns:118px 1fr}
  #desma-prc .dprc-cta, #desma-prc .dprc-fields{grid-template-columns:1fr}
  #desma-prc .dprc-visas{display:grid; gap:12px; grid-template-columns:repeat(1,1fr)}
}
@media (prefers-reduced-motion:reduce){#desma-prc *{transition:none !important; scroll-behavior:auto !important}}
