/* Public online lead form (form.php) — Jobber-style layout */
:root{--ink:#032b3a;--muted:#5a6b73;--line:#d9d8d2;--navy:#1f3646;--navy-d:#152733;--green:#33821c;--bg:#fff;--card:#fff;--red:#c4382f;--chip:#ecebe6}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
body{padding-bottom:84px}
.rf-top{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:center;gap:12px;height:78px;padding:0 16px;background:#fff;box-shadow:0 2px 6px rgba(3,43,58,.08);font-size:20px;font-weight:800}
.rf-top img{max-height:46px;max-width:160px}
.rf-page{max-width:592px;margin:0 auto;padding:40px 16px}
.rf-progress{display:flex;justify-content:center;gap:7px;margin:0 0 30px}
.rf-progress span{width:99px;height:7px;border-radius:4px;background:#dfdfdc;transition:background .2s}
.rf-progress span.on{background:var(--navy)}
.rf-desc{color:var(--muted);text-align:center;margin:-12px 0 20px}
.rf-card{background:var(--card);border-radius:8px;box-shadow:0 1px 6px rgba(3,43,58,.1);padding:32px 32px 30px}
.rf-section h2,.rf-review h2{font-size:16px;font-weight:700;margin:0 0 12px}
.rf-review h2{font-size:21px;margin-bottom:18px}
.rf-q{margin-bottom:20px}
.rf-q:last-child{margin-bottom:0}
.rf-label{display:flex;align-items:center;gap:8px;font-size:14px;color:#3f5560;margin:0 0 8px;padding:0}
.rf-req{font-size:10px;font-weight:600;background:var(--chip);color:var(--ink);border-radius:6px;padding:2px 6px}
/* Floating labels */
.rf-fl{position:relative;display:block;margin:0}
.rf-fl input,.rf-fl select{display:block;width:100%;height:48px;border:1px solid var(--line);border-radius:6px;background:#fff;padding:20px 15px 4px;font:inherit;font-size:14px;color:var(--ink);outline:none;appearance:none}
.rf-fl span{position:absolute;left:16px;top:14px;font-size:14px;color:#5f7179;pointer-events:none;transition:top .12s,font-size .12s}
.rf-fl input:focus+span,.rf-fl input:not(:placeholder-shown)+span,.rf-fl.up span{top:6px;font-size:11px}
.rf-fl input::placeholder{color:#5f7179}
.rf-fl input:placeholder-shown:not(:focus){padding-top:12px}
.rf-fl input:focus,.rf-fl select:focus,.rf-q textarea:focus{border-color:var(--ink);box-shadow:0 0 0 1px var(--ink)}
.rf-sel select{padding-right:36px;cursor:pointer;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23032b3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center/18px}
.rf-row2{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.rf-row3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
.rf-address .rf-fl{margin-bottom:20px}
.rf-address .rf-row3 .rf-fl{margin-bottom:0}
.rf-q textarea{display:block;width:100%;min-height:88px;border:1px solid var(--line);border-radius:6px;padding:12px 15px;font:inherit;font-size:14px;color:var(--ink);resize:vertical;outline:none}
fieldset{border:0;margin:0;padding:0}
.rf-choice{display:flex;align-items:center;gap:10px;padding:5px 0;cursor:pointer;font-size:14px}
.rf-choice input{width:18px;height:18px;accent-color:var(--navy);margin:0}
.rf-multi{border:1px solid var(--line);border-radius:6px;background:#fff}
.rf-multi summary{list-style:none;cursor:pointer;padding:6px 40px 6px 15px;min-height:48px;display:flex;flex-direction:column;justify-content:center;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23032b3a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center/18px}
.rf-multi summary::-webkit-details-marker{display:none}
.rf-multi-l{font-size:11px;color:#5f7179}
.rf-multi[open] summary{border-bottom:1px solid var(--line)}
.rf-multi-list{padding:6px 15px}
.rf-yesno{display:flex;justify-content:space-between;align-items:center;gap:12px;cursor:pointer;font-size:14px}
.rf-switch{appearance:none;width:44px;height:24px;border-radius:12px;background:#c9d2d6;position:relative;cursor:pointer;margin:0;flex:none;transition:background .15s}
.rf-switch::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:transform .15s}
.rf-switch:checked{background:var(--navy)}.rf-switch:checked::after{transform:translateX(20px)}
.rf-img-head{justify-content:space-between}
.rf-count{font-size:11px;background:var(--chip);border-radius:10px;padding:1px 8px;color:var(--ink)}
.rf-drop{position:relative;min-height:54px;border:1px dashed #c5c8c4;border-radius:6px;display:flex;align-items:center;justify-content:center;color:var(--ink);padding:8px}
.rf-drop.over{border-color:var(--navy);background:#f4f6f7}
.rf-drop input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer}
.rf-drop.has-files>svg{display:none}
.rf-thumbs{display:flex;flex-wrap:wrap;gap:8px}
.rf-thumbs img{width:64px;height:64px;object-fit:cover;border-radius:6px}
.has-error input,.has-error select,.has-error textarea,.has-error .rf-multi,.has-error .rf-drop{border-color:var(--red)!important}
.rf-error{color:var(--red);font-size:12px;margin-top:6px}
.rf-alert{background:#fdecec;border:1px solid #f3b9b9;color:#8a1f1f;border-radius:8px;padding:10px 14px;margin-bottom:16px}
.rf-review h3{font-size:16px;font-weight:700;margin:22px 0 12px}
.rf-review h3:first-child{margin-top:0}
.rf-rv{margin-bottom:14px}
.rf-rv-l{color:#3f5560;font-size:14px;margin-bottom:2px}
.rf-rv-v{font-size:14px;font-weight:600;white-space:pre-wrap;word-break:break-word}
.rf-foot{position:fixed;left:0;right:0;bottom:0;z-index:5;display:flex;align-items:center;gap:10px;padding:13px 14px;background:#fff;box-shadow:0 -1px 0 rgba(3,43,58,.06)}
.rf-foot-brand{flex:1;color:var(--muted);font-size:12px}
.rf-btn{height:40px;padding:0 16px;border-radius:6px;border:1px solid var(--navy);background:var(--navy);color:#fff;font:inherit;font-weight:700;font-size:14px;cursor:pointer}
.rf-btn:hover{background:var(--navy-d)}
.rf-btn:disabled{opacity:.55;cursor:default}
.rf-btn-outline{background:#fff;color:var(--ink);border-color:var(--line)}.rf-btn-outline:hover{background:#f8f7f4}
.rf-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.rf-done{text-align:center;padding:44px 28px}
.rf-done h2{font-size:22px;margin:0 0 8px}
.rf-done p{margin:0;color:var(--muted)}
.rf-check{width:56px;height:56px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;margin:0 auto 16px}
@media(max-width:560px){.rf-card{padding:24px 18px}.rf-row3{grid-template-columns:1fr}.rf-progress span{width:64px}.rf-page{padding-top:28px}}
.rf-consent{margin:6px 0 0;font-size:12px;line-height:1.35;color:#3f5560}
/* Booking calendar */
.rf-bk-price{font-size:14px;margin:-2px 0 10px;color:#3f5560}
.rf-bk{display:grid;grid-template-columns:300px 1fr;gap:24px;align-items:start}
.rf-bk-h{font-size:15px;font-weight:700;margin-bottom:8px}
.rf-cal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:14px}
.rf-cal-nav{display:flex;gap:4px}
.rf-cal-nav button{width:28px;height:28px;border:0;background:none;font-size:20px;line-height:1;color:var(--ink);cursor:pointer;border-radius:50%}
.rf-cal-nav button:hover:not(:disabled){background:#f1f1ee}
.rf-cal-nav button:disabled{color:#c5c8c4;cursor:default}
.rf-cal-grid{display:grid;grid-template-columns:repeat(7,1fr);row-gap:6px;justify-items:center}
.rf-dow{font-size:11px;color:#3f5560;padding:4px 0 6px}
.rf-day{width:36px;height:36px;border-radius:50%;border:0;background:none;font:inherit;font-size:13px;color:#9aa5aa;cursor:default}
.rf-day.open{background:#e7e6e1;color:var(--ink);font-weight:600;cursor:pointer}
.rf-day.open:hover{background:#d9d8d2}
.rf-day.sel{background:var(--navy)!important;color:#fff!important}
.rf-tz-h{margin-top:18px}
.rf-tz{display:inline-block;border:1px solid var(--line);border-radius:6px;padding:8px 14px;font-size:14px;font-weight:600}
.rf-times-date{font-size:14px;height:28px;display:flex;align-items:center;margin-bottom:8px}   /* level with the month row */
.rf-times-dur{font-size:13px;color:#3f5560;margin-bottom:10px}
/* Booking section: "Select a time" column starts level with the section title */
@media(min-width:641px){
  .rf-section:not([hidden]):has(>.rf-q:only-of-type .rf-bk){display:grid;grid-template-columns:300px 1fr;grid-template-rows:auto auto auto 1fr;column-gap:24px;align-items:start}
  .rf-section:has(>.rf-q:only-of-type .rf-bk)>h2,.rf-section:has(>.rf-q:only-of-type .rf-bk) .rf-label,.rf-section:has(>.rf-q:only-of-type .rf-bk) .rf-cal{grid-column:1}
  .rf-section:has(>.rf-q:only-of-type .rf-bk) .rf-q,.rf-section:has(>.rf-q:only-of-type .rf-bk) .rf-bk{display:contents}
  .rf-section:has(>.rf-q:only-of-type .rf-bk) .rf-times{grid-column:2;grid-row:1/5}
  .rf-section:has(>.rf-q:only-of-type .rf-bk) .rf-q>:not(.rf-label):not(.rf-bk){grid-column:1/-1}
}
.rf-slots{display:flex;flex-direction:column;gap:8px;max-height:290px;overflow-y:auto;padding:2px 6px 2px 2px}
.rf-slot{height:54px;border:1px solid var(--line);border-radius:6px;background:#fff;text-align:left;padding:0 16px;font:inherit;font-size:14px;color:var(--ink);cursor:pointer;flex:none}
.rf-slot:hover{border-color:var(--ink)}
.rf-slot.sel{border-color:var(--navy);background:var(--navy);color:#fff}
.rf-slot-note{color:#5f7179;font-size:13px;margin:4px 0}
.rf-booking .rf-label,.rf-assessment .rf-label,.rf-job_booking .rf-label{margin-bottom:12px}
@media(max-width:640px){.rf-bk{grid-template-columns:1fr}.rf-page{max-width:100%}}
.rf-page:has(.rf-bk){max-width:760px}
.ac-menu{position:fixed;z-index:90;background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:0 8px 24px rgba(3,43,58,.14);padding:4px 0;font-size:14px}
.ac-opt{display:flex;align-items:center;gap:10px;padding:9px 14px;cursor:pointer;color:var(--ink)}
.ac-opt svg{color:#5f7179;flex:none}.ac-opt small{color:#5f7179}
.ac-opt:hover,.ac-opt.on{background:#f4f4f2}
.ac-powered{text-align:right;font-size:11px;color:#5f7179;padding:4px 12px 2px}
/* Image upload (Jobber style) */
.rf-images .rf-thumbs{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start;margin-bottom:8px}
.rf-images .rf-thumbs:empty{display:none}
.rf-thumb{position:relative;width:54px;height:54px}
.rf-thumb img{width:54px;height:54px;object-fit:cover;border-radius:6px;border:1px solid var(--line)}
.rf-thumb-del{position:absolute;top:4px;right:4px;width:26px;height:26px;border:0;border-radius:6px;background:#fff;color:var(--red);display:grid;place-items:center;cursor:pointer;opacity:0;box-shadow:0 1px 4px rgba(0,0,0,.15);transition:opacity .12s}
.rf-thumb:hover .rf-thumb-del,.rf-thumb-del:focus{opacity:1}
@media(hover:none){.rf-thumb-del{opacity:1}}
/* Embedded in a website (embed.js) */
.is-embed,.is-embed body{background:transparent}
body.is-embed{padding-bottom:0}
.is-embed .rf-top{display:none}
.is-embed .rf-page{padding:12px 8px 8px}
.is-embed .rf-foot{position:static;box-shadow:none;background:none;padding:16px 0 4px;max-width:592px;margin:0 auto}
html.is-embed-html,.is-embed{overflow:hidden}
body.is-popup{overflow:auto}
.is-popup .rf-page{padding-top:20px}
html:has(body.is-popup),body.is-popup{background:#fff}
/* Pop-up: the window is already the card */
.is-popup .rf-card{box-shadow:none;border:0;border-radius:0;padding:8px 24px 16px}
.is-popup .rf-page{padding:20px 8px 4px}
@media(max-width:560px){.is-popup .rf-card{padding:4px 12px 12px}}
.is-popup .rf-page{padding:40px 8px 12px}
.is-popup .rf-foot{padding:20px 0 28px}
@media(max-width:560px){.is-popup .rf-page{padding:56px 4px 8px}}
/* Buttons line up with the fields (embedded / pop-up) and are a bit wider */
.rf-btn{min-width:120px;padding:0 24px}
.is-embed .rf-foot{max-width:none;padding-left:32px;padding-right:32px;gap:10px}
.is-popup .rf-foot{padding-left:24px;padding-right:24px}
.is-embed .rf-foot-brand{display:none}
.is-embed .rf-foot{justify-content:flex-end}
@media(max-width:560px){.is-embed .rf-foot{padding-left:18px;padding-right:18px}.is-popup .rf-foot{padding-left:12px;padding-right:12px}.rf-btn{min-width:100px}}
/* Pop-up: Back / Next stay pinned to the bottom of the window, the form scrolls above them */
.is-popup .rf-foot{position:fixed;left:0;right:0;bottom:0;z-index:5;max-width:none;margin:0;background:#fff;border-top:1px solid var(--line);padding:12px 32px;justify-content:flex-end}
body.is-popup:has(.rf-foot){padding-bottom:72px}
@media(max-width:560px){.is-popup .rf-foot{padding:10px 16px}}
/* Sending overlay */
.rf-sending{position:fixed;inset:0;z-index:50;background:rgba(255,255,255,.88);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;text-align:center;padding:20px}
.rf-spinner{width:44px;height:44px;border-radius:50%;border:4px solid #dfe3e5;border-top-color:var(--navy);animation:rf-spin .8s linear infinite}
@keyframes rf-spin{to{transform:rotate(360deg)}}
.rf-sending-t{font-size:16px;font-weight:700}
.rf-sending-s{font-size:13px;color:var(--muted)}
/* Pop-up: closing countdown after sending */
.rf-closing{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:22px;font-size:14px;color:var(--muted);flex-wrap:wrap}
.rf-closing strong{color:var(--ink)}
/* Photos being prepared (shrunk) before upload */
.rf-img-busy .rf-drop{pointer-events:none;opacity:.6}
.rf-img-busy .rf-drop::after{content:"Preparing photos…";position:absolute;left:0;right:0;bottom:6px;text-align:center;font-size:12px;color:var(--muted)}
.rf-closing{flex-direction:column;gap:28px;margin-top:20px}
.is-popup .rf-done{padding-bottom:28px}
.rf-times-fee{font-size:13px;color:#3f5560;margin-bottom:4px}
/* Voice message */
.rf-vo-rec{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:54px;border:1px dashed #c5c8c4;border-radius:6px;background:#fff;color:var(--ink);font:inherit;font-weight:600;cursor:pointer;padding:8px 12px}
.rf-vo-rec:hover{border-color:var(--navy);background:#f4f6f7}
.rf-vo-rec small{font-weight:400;color:var(--muted)}
.rf-vo-live{display:flex;align-items:center;gap:10px;min-height:54px;border:1px solid var(--line);border-radius:6px;padding:8px 8px 8px 15px}
.rf-vo-dot{width:10px;height:10px;border-radius:50%;background:var(--red);animation:rfvo 1s ease-in-out infinite}
@keyframes rfvo{50%{opacity:.25}}
.rf-vo-time{font-weight:600;font-variant-numeric:tabular-nums}
.rf-vo-of{color:var(--muted);flex:1}
.rf-vo-stop{border:0;border-radius:6px;background:var(--navy);color:#fff;font:inherit;font-weight:600;padding:9px 16px;cursor:pointer}
.rf-vo-done{display:flex;align-items:center;gap:8px}
.rf-vo-done audio{flex:1;min-width:0;height:40px}
.rf-vo-del{flex:none;width:40px;height:40px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--ink);cursor:pointer;display:flex;align-items:center;justify-content:center}
.rf-vo-file{position:relative;display:flex;align-items:center;justify-content:center;min-height:54px;border:1px dashed #c5c8c4;border-radius:6px;font-weight:600;cursor:pointer}
.rf-vo-file input{position:absolute;inset:0;opacity:0;cursor:pointer}
.rf-vo-msg{color:var(--muted);font-size:12px;margin:6px 0 0}
.has-error .rf-vo-rec,.has-error .rf-vo-file{border-color:var(--red)!important}
.rf-vo [hidden]{display:none!important}
/* Badge after a question's name ("Most popular"), set in the form builder */
.rf-badge{display:inline-block;margin-left:4px;font-size:10px;font-weight:600;line-height:1.4;background:#e2f2d9;color:#2a6b16;border-radius:6px;padding:1px 6px;vertical-align:1px;white-space:nowrap}
