/* Enquiry form, bottom sheet, country picker and compact action buttons.
   Loaded only when inc/lead-enabled.php is true (or on a preview page). Brand tokens from css/ryttc-page.css. */
:root{--lf-brand:#8a506b;--lf-brand-d:#6f3f56;--lf-ink:#2b2b2b;--lf-muted:#6b6b6b;--lf-line:#e4d8c6;--lf-cream:#fffbf5;--lf-wa:#1f7a3d;--lf-err:#b3261e}
/* Windows browsers draw flag emoji as letters; this small font (loaded only when a flag is shown) fixes it. */
@font-face{font-family:"Twemoji Country Flags";unicode-range:U+1F1E6-1F1FF,U+1F3F4,U+E0062-E007F;src:url(/fonts/TwemojiCountryFlags.woff2) format("woff2");font-display:swap}
.lf-flag{font-family:"Twemoji Country Flags","Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif}

/* ---------- form ---------- */
.lf{font:400 16px/1.4 "Kumbh Sans",system-ui,sans-serif;color:var(--lf-ink);text-align:left}
.lf *{box-sizing:border-box}
.lf-hp{position:absolute!important;left:-9999px!important;top:-9999px!important;width:1px;height:1px}
.lf-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px}
.lf-wide{grid-column:1/-1}
.lf-field label{display:block;margin:0 0 4px;font-size:13px;font-weight:600;color:var(--lf-ink)}
.lf-opt{font-weight:400;color:var(--lf-muted)}
.lf input[type=text],.lf input[type=email],.lf input[type=tel],.lf input[type=date],.lf select,.lf textarea,.lf-pick-btn{width:100%;min-height:46px;padding:10px 12px;border:1.5px solid var(--lf-line);border-radius:10px;background:#fff;color:var(--lf-ink);font:400 16px/1.3 "Kumbh Sans",system-ui,sans-serif;appearance:none;-webkit-appearance:none}
.lf textarea{min-height:84px;resize:vertical}
.lf select{background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b6b6b' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center;padding-right:32px}
.lf input[type=date]{display:block;min-width:0;line-height:1.3;padding-top:0;padding-bottom:0}
.lf input[type=date]:invalid{color:var(--lf-muted)}
.lf input[type=date]::-webkit-datetime-edit{padding:0}
.lf input[type=date]::-webkit-calendar-picker-indicator{width:20px;height:20px;padding:4px;margin-right:-4px;border-radius:6px;opacity:.65;cursor:pointer}
.lf input[type=date]::-webkit-calendar-picker-indicator:hover{opacity:1;background:#f4eaf0}
.lf input:focus,.lf select:focus,.lf textarea:focus,.lf-pick-btn:focus{outline:none;border-color:var(--lf-brand);box-shadow:0 0 0 3px rgba(138,80,107,.18)}
.lf [aria-invalid=true]{border-color:var(--lf-err)}
.lf-err{margin:4px 0 0;min-height:0;font-size:13px;line-height:1.35;color:var(--lf-err)}
.lf-err:empty{display:none}
.lf-err button{padding:0;border:0;background:none;color:var(--lf-brand);font:inherit;font-weight:600;text-decoration:underline;cursor:pointer}
.lf-phone{display:flex;gap:8px}
.lf-phone select,.lf-phone .lf-pick-btn{flex:0 0 112px;width:112px}
.lf-phone input{flex:1 1 auto;min-width:0}
.lf-submit{display:flex;align-items:center;justify-content:center;width:100%;min-height:50px;margin-top:14px;padding:0 20px;border:0;border-radius:10px;background:var(--lf-brand);color:#fff;font:700 16px/1 "Kumbh Sans",system-ui,sans-serif;cursor:pointer}
.lf-submit:hover{background:var(--lf-brand-d)}
.lf-submit[disabled]{opacity:.7;cursor:progress}
.lf-submit.is-busy span::after{content:"";display:inline-block;width:14px;height:14px;margin-left:10px;border:2px solid #fff;border-right-color:transparent;border-radius:50%;vertical-align:-2px;animation:lf-spin .7s linear infinite}
@keyframes lf-spin{to{transform:rotate(360deg)}}
.lf-note{margin:10px 0 0;font-size:12.5px;line-height:1.4;color:var(--lf-muted);text-align:center}
.lf-err-form{margin-top:10px;text-align:center}
@media (max-width:560px){.lf-grid{grid-template-columns:1fr}}

/* ---------- country picker (upgrades the native selects) ---------- */
.lf-pick-btn{display:flex;align-items:center;gap:8px;text-align:left;cursor:pointer;overflow:hidden;white-space:nowrap;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b6b6b' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center;padding-right:30px}
.lf-pick-btn .lf-flag{font-size:20px;line-height:1}
.lf-pick-btn .lf-pick-txt{overflow:hidden;text-overflow:ellipsis}
.lf-pick-btn .lf-pick-ph{color:var(--lf-muted)}
.lf-picker{position:fixed;z-index:2147483000;display:flex;flex-direction:column;background:#fff;border:1px solid var(--lf-line);border-radius:12px;box-shadow:0 12px 40px rgba(0,0,0,.22);overflow:hidden;font:400 16px/1.3 "Kumbh Sans",system-ui,sans-serif}
.lf-picker[hidden]{display:none}
.lf-picker input{flex:0 0 auto;width:100%;min-height:48px;padding:10px 14px;border:0;border-bottom:1px solid var(--lf-line);font:inherit;outline:none}
.lf-picker ul{flex:1 1 auto;margin:0;padding:4px 0;list-style:none;overflow-y:auto;overscroll-behavior:contain}
.lf-picker li{display:flex;align-items:center;gap:10px;padding:10px 14px;cursor:pointer}
.lf-picker li .lf-flag{font-size:20px;line-height:1}
.lf-picker li .lf-d{margin-left:auto;color:var(--lf-muted);font-size:14px}
.lf-picker li.is-active,.lf-picker li:hover{background:#f4eaf0}
.lf-picker li[aria-selected=true]{font-weight:700}
.lf-picker .lf-empty{padding:14px;color:var(--lf-muted);cursor:default}
.lf-picker .lf-sep{padding:6px 14px;font-size:11px;letter-spacing:.06em;text-transform:uppercase;color:var(--lf-muted);cursor:default}
.lf-picker .lf-sep:hover{background:none}
@media (max-width:560px){.lf-picker{left:8px!important;right:8px!important;width:auto!important;bottom:8px!important;top:auto!important;max-height:70dvh!important}}

/* ---------- bottom sheet ---------- */
.lf-sheet{position:fixed;inset:auto 0 0 0;margin:0 auto;width:100%;max-width:560px;max-height:92dvh;padding:8px 20px calc(20px + env(safe-area-inset-bottom));border:0;border-radius:18px 18px 0 0;background:var(--lf-cream);color:var(--lf-ink);overflow-y:auto;overscroll-behavior:contain;box-shadow:0 -10px 40px rgba(0,0,0,.25);animation:lf-up .28s ease-out}
.lf-sheet:not([open]){display:none}
.lf-sheet::backdrop{background:rgba(30,18,26,.55);animation:lf-fade .2s ease-out}
.lf-sheet.is-closing{animation:lf-down .2s ease-in forwards}
@keyframes lf-up{from{transform:translateY(100%)}to{transform:none}}
@keyframes lf-down{to{transform:translateY(100%)}}
@keyframes lf-fade{from{opacity:0}to{opacity:1}}
.lf-grab{width:44px;height:5px;margin:4px auto 10px;border-radius:3px;background:#d9cbb8;touch-action:none;cursor:grab}
.lf-sheet h2{margin:0 36px 2px 0;font:700 22px/1.25 "Kumbh Sans",system-ui,sans-serif;color:var(--lf-brand)}
.lf-sub{margin:0 0 14px;font-size:14px;line-height:1.45;color:var(--lf-muted)}
.lf-x{position:absolute;top:10px;right:12px;width:38px;height:38px;border:0;border-radius:50%;background:transparent;color:var(--lf-muted);font-size:26px;line-height:1;cursor:pointer}
.lf-x:hover{background:#f0e6d8}
.lf-sheet-wa{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:12px;padding:10px;border-radius:10px;color:var(--lf-wa);font-weight:700;font-size:15px;text-decoration:none}
.lf-sheet-wa:hover{background:#eaf5ee}
body.lf-lock{overflow:hidden}
@media (prefers-reduced-motion:reduce){.lf-sheet,.lf-sheet::backdrop{animation:none}}

/* ---------- compact action buttons ---------- */
.lf-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:0 16px;border:0;border-radius:999px;background:var(--lf-brand);color:#fff;font:700 14.5px/1 "Kumbh Sans",system-ui,sans-serif;text-decoration:none;white-space:nowrap;cursor:pointer}
.lf-btn svg{width:17px;height:17px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.lf-btn.lf-btn-wa{background:var(--lf-wa)}
.lf-btn:hover{color:#fff;filter:brightness(.92)}
/* mobile bottom bar: two small pills instead of a full-width block */
.lf-bar{display:none}
@media (max-width:768px){
  .lf-bar{display:flex;gap:10px;position:fixed;z-index:999;left:0;right:0;bottom:0;justify-content:center;padding:8px 12px calc(8px + env(safe-area-inset-bottom));background:none;pointer-events:none}
  .lf-bar .lf-btn{flex:0 1 150px;min-height:42px;box-shadow:0 3px 10px rgba(0,0,0,.22);pointer-events:auto}
  .enq-btn{display:none!important}   /* the side Apply Now tab: phones already have the bottom buttons */
  body{padding-bottom:calc(58px + env(safe-area-inset-bottom))}
}
/* top strip on the 200 hour page: three buttons on one row, smaller on phones */
@media (max-width:768px){
  .p200 .ad-strip-cta{flex-wrap:nowrap;gap:6px;width:100%}
  .p200 .ad-strip-cta button,.p200 .ad-strip-cta a{flex:1 1 0;min-width:0;min-height:38px;padding:0 8px;font-size:13.5px;white-space:nowrap;border-radius:999px}
}

/* thin, see-through, rounded scrollbars inside the sheet and the country list (same look as the page).
   Only ::-webkit-scrollbar is used here: Chrome ignores the rounded thumb when scrollbar-width/scrollbar-color are set. */
.lf-sheet::-webkit-scrollbar,.lf-picker ul::-webkit-scrollbar{width:8px;height:8px}
.lf-sheet::-webkit-scrollbar-track,.lf-picker ul::-webkit-scrollbar-track{background:transparent}
.lf-sheet::-webkit-scrollbar-thumb,.lf-picker ul::-webkit-scrollbar-thumb{background:rgba(138,80,107,.45);border:2px solid transparent;background-clip:padding-box;border-radius:8px}
.lf-sheet::-webkit-scrollbar-thumb:hover,.lf-picker ul::-webkit-scrollbar-thumb:hover{background:rgba(138,80,107,.75);border:2px solid transparent;background-clip:padding-box}
@supports not selector(::-webkit-scrollbar){.lf-sheet,.lf-picker ul{scrollbar-width:thin;scrollbar-color:rgba(138,80,107,.45) transparent}}
/* no ring on the sheet title or the close button unless the visitor uses the keyboard */
.lf-sheet h2:focus{outline:none}
.lf-x:focus:not(:focus-visible){outline:none;box-shadow:none}

/* full-page / inline form card */
.lf-page{max-width:640px;margin:0 auto 30px;padding:22px;border:1px solid var(--lf-line);border-radius:16px;background:var(--lf-cream)}
.lf-page .lf-title{margin:0 0 4px;font:700 22px/1.25 "Kumbh Sans",system-ui,sans-serif;color:var(--lf-brand)}
.lf-page .lf-sub{margin:0 0 16px}
@media (max-width:560px){.lf-page{padding:16px;border-radius:12px}}

/* compact form (hero strips): name, email, phone, timing only; the country is still detected and sent */
.lf-hero{padding:16px;border-radius:14px;background:#fffbf5;box-shadow:0 6px 24px rgba(0,0,0,.18)}
.lf-compact .lf-grid{grid-template-columns:1fr;gap:10px}
.lf-compact .lf-field:has([data-lf-country]),.lf-compact .lf-field:has([name=city]),.lf-compact .lf-field:has(textarea){display:none}
.lf-compact .lf-note{display:none}

/* button text stays white even inside .p200 / .pp pages (their link colour rule is more specific) */
.lf-btn,.lf-btn:visited,.lf-btn:hover,.lf-btn:focus,.p200 a.lf-btn,.p200 a.lf-btn:hover,.p200 .lf-btn-wa{color:#fff!important;text-decoration:none!important}
.p200 .ad-strip-cta a,.p200 .ad-strip-cta a:hover,.p200 .ad-strip-cta button{color:#fff!important}
.p200 .ad-strip-cta a.ad-dates,.p200 .ad-strip-cta a.ad-dates:hover{color:var(--rp-brand)!important}
