/* Form widgets added by forms.js on top of the canvas markup (phone, date, choice chips,
   email hints) and the sending overlay. Colours are the site's palette. */
.nf-field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; color: #D7E5E7; position: relative; min-width: 0; }
.nf-hint { font-size: 13px; font-weight: 400; color: #BFC9CA; min-height: 20px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nf-hint:empty { min-height: 0; }
.nf-hint.ok { color: #8FD3A8; }
.nf-hint.warn { color: #F2C987; }
.nf-hint button { font: inherit; font-size: 13px; font-weight: 700; color: #141514; background: #A4C4C9; border: 0; border-radius: 999px; padding: 2px 10px; cursor: pointer; }

/* Phone: country button and number in one box */
.nf-phone { display: flex; align-items: stretch; background: #141514; border: 1px solid #4A4A4A; border-radius: 12px; min-height: 48px; }
.nf-phone:focus-within, .nf-date:focus, .nf-date[aria-expanded="true"] { border-color: #A4C4C9; box-shadow: 0 0 0 3px rgba(164, 196, 201, 0.18); outline: none; }
.nf-phone input { font-family: inherit; font-size: 16px; color: #FFFFFF; background: transparent; border: 0 !important; outline: none; padding: 12px 14px 12px 10px !important; flex: 1; min-width: 0; min-height: 0 !important; font-variant-numeric: tabular-nums; box-shadow: none !important; }
.nf-country { font: inherit; font-size: 15px; font-weight: 400; color: #FFFFFF; background: transparent; border: 0; border-right: 1px solid #2E302D; padding: 0 10px 0 14px; display: flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; border-radius: 12px 0 0 12px; }
.nf-country:hover { background: rgba(255, 255, 255, 0.04); }
.nf-flag { font-size: 20px; line-height: 1; }
.nf-code { color: #BFC9CA; font-variant-numeric: tabular-nums; }
.nf-chev { width: 8px; height: 8px; border-right: 2px solid #BFC9CA; border-bottom: 2px solid #BFC9CA; transform: rotate(45deg) translate(-2px, -2px); }

/* Popovers (country list, calendar) */
.nf-pop { position: absolute; top: 100%; left: 0; z-index: 30; margin-top: 6px; background: #232522; border: 1px solid #4A4A4A; border-radius: 16px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5); padding: 8px; font-weight: 400; }
.nf-pop[hidden] { display: none; }
.nf-pop.nf-countries { width: min(340px, 100%); }
.nf-pop input { font: inherit; font-size: 15px; color: #FFFFFF; background: #141514; border: 1px solid #2E302D; border-radius: 10px; padding: 10px 12px; width: 100%; box-sizing: border-box; outline: none; }
.nf-pop input:focus { border-color: #A4C4C9; }
.nf-clist { list-style: none; margin: 8px 0 0; padding: 0; max-height: 260px; overflow-y: auto; }
.nf-clist li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; color: #FFFFFF; font-size: 15px; }
.nf-clist li[aria-selected="true"], .nf-clist li:hover { background: #25585E; }
.nf-clist li .nf-flag { font-size: 18px; }
.nf-clist li .nf-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nf-clist li .nf-code { font-size: 14px; }
.nf-clist .nf-sep { height: 1px; background: #2E302D; margin: 6px 4px; padding: 0; cursor: default; }
.nf-clist .nf-sep:hover { background: #2E302D; }

/* Date */
.nf-date { font-family: inherit; font-size: 16px; font-weight: 400; color: #FFFFFF; background: #141514; border: 1px solid #4A4A4A; border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%; box-sizing: border-box; text-align: left; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nf-date .nf-placeholder { color: #8A9394; }
.nf-date-text::first-letter { text-transform: uppercase; }
.nf-cal-icon { width: 18px; height: 18px; border: 2px solid #BFC9CA; border-radius: 4px; position: relative; flex: none; box-sizing: border-box; }
.nf-cal-icon::before { content: ""; position: absolute; left: 2px; right: 2px; top: 3px; height: 2px; background: #BFC9CA; }
.nf-pop.nf-cal { width: 320px; max-width: calc(100vw - 48px); padding: 14px; }
.nf-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: #FFFFFF; }
.nf-cal-head strong { font-size: 16px; }
.nf-cal-head strong::first-letter { text-transform: uppercase; }
.nf-cal-head button { font: inherit; color: #FFFFFF; background: transparent; border: 1px solid #2E302D; border-radius: 10px; width: 36px; height: 36px; cursor: pointer; font-size: 18px; }
.nf-cal-head button:disabled { opacity: 0.3; cursor: default; }
.nf-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.nf-cal-grid .nf-dow { font-size: 12px; font-weight: 700; color: #BFC9CA; padding: 6px 0; text-transform: uppercase; letter-spacing: 0.06em; }
.nf-cal-grid button { font: inherit; font-size: 15px; color: #FFFFFF; background: transparent; border: 0; border-radius: 10px; height: 38px; cursor: pointer; font-variant-numeric: tabular-nums; }
.nf-cal-grid button:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }
.nf-cal-grid button.nf-weekend { color: #A4C4C9; }
.nf-cal-grid button.nf-today { box-shadow: inset 0 0 0 1px #A4C4C9; }
.nf-cal-grid button[aria-pressed="true"] { background: #357D87; color: #FFFFFF; font-weight: 700; }
.nf-cal-grid button:disabled { color: #4E5553; cursor: default; }
.nf-cal-foot { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid #2E302D; }
.nf-cal-foot button { font: inherit; font-size: 14px; font-weight: 600; color: #A4C4C9; background: transparent; border: 0; cursor: pointer; padding: 4px 6px; }

/* Choice chips (replace the selects) */
.nf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nf-chips input { position: absolute; opacity: 0; pointer-events: none; }
.nf-chips label { font-size: 15px; font-weight: 600; color: #FFFFFF; background: transparent; border: 1px solid #4A4A4A; border-radius: 999px; padding: 10px 18px; min-height: 44px; box-sizing: border-box; display: inline-flex; align-items: center; cursor: pointer; transition: background 0.15s, border-color 0.15s; font-variant-numeric: tabular-nums; }
.nf-chips label:hover { border-color: #A4C4C9; }
.nf-chips input:checked + label { background: #FFFFFF; color: #1D1E1C; border-color: #FFFFFF; font-weight: 700; }
.nf-chips input:focus-visible + label { outline: 2px solid #A4C4C9; outline-offset: 2px; }

/* Sending overlay: the njuko "N" drawn stroke by stroke */
.nf-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 24px; background: rgba(20, 21, 20, 0.84); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-family: 'Titillium Web', 'Segoe UI', Calibri, Arial, sans-serif; color: #FFFFFF; text-align: center; opacity: 0; transition: opacity 0.25s; }
.nf-overlay.nf-on { opacity: 1; }
.nf-overlay[hidden] { display: none; }
.nf-overlay svg { width: 108px; height: 100px; overflow: visible; }
.nf-overlay .nf-stroke { fill: none; stroke: #FFFFFF; stroke-width: 44.27; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.nf-overlay.nf-busy .nf-s1 { animation: nf-draw 1.6s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
.nf-overlay.nf-busy .nf-s2 { animation: nf-draw 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.2s infinite; stroke: #A4C4C9; }
.nf-overlay.nf-done .nf-stroke { stroke-dashoffset: 0; transition: stroke 0.3s; }
.nf-overlay.nf-done .nf-s2 { stroke: #8FD3A8; }
.nf-overlay p { margin: 0; font-size: 20px; font-weight: 600; max-width: 32ch; line-height: 1.4; }
@keyframes nf-draw {
    0% { stroke-dashoffset: 1; }
    45%, 60% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -1; }
}
@media (prefers-reduced-motion: reduce) {
    .nf-overlay.nf-busy .nf-stroke { animation: nf-pulse 1.4s ease-in-out infinite; stroke-dashoffset: 0; }
    @keyframes nf-pulse { 50% { opacity: 0.35; } }
}
