/* Plan B Interview Portal — styled after planbconsultancy.in
   Palette (from the site's Elementor kit): primary #001C0F, accent #2C2122,
   secondary #FFE6BC, background #F0F3F6, text #191919, grey #8F8F8F.
   Everything is scoped under .pbi so the theme can't bleed in (and vice versa). */

.pbi, .pbi-standalone {
	--pbi-green: #001C0F;
	--pbi-dark: #2C2122;
	--pbi-dark-2: #3a2d2e;
	--pbi-cream: #FFE6BC;
	--pbi-cream-2: #FFF4E0;
	--pbi-bg: #F0F3F6;
	--pbi-white: #FFFFFF;
	--pbi-text: #191919;
	--pbi-text-2: #4d5257;
	--pbi-grey: #8F8F8F;
	--pbi-line: #D2CFD2;
	--pbi-line-2: #E3E1E3;
	--pbi-ok: #1D7A55; --pbi-ok-bg: #E3F2EA;
	--pbi-warn: #9A5B12; --pbi-warn-bg: #FFF1D8;
	--pbi-bad: #B23A32; --pbi-bad-bg: #FBE7E5;
	--pbi-r: 13px; --pbi-r-lg: 20px;
	--pbi-font: "PBI Jakarta", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------- standalone page chrome ---------- */
body.pbi-standalone .pbi-shell, body.pbi-standalone .pbi-shell *, body.pbi-standalone .pbi-shell *::before, body.pbi-standalone .pbi-shell *::after { box-sizing: border-box; }
body.pbi-standalone { margin: 0; overflow-x: hidden; background: var(--pbi-bg); color: var(--pbi-text); font-family: var(--pbi-font); }
.pbi-shell { min-height: 100vh; display: flex; flex-direction: column; }
.pbi-shell > main { flex: 1; }
.pbi-site-head { background: var(--pbi-bg); }
.pbi-site-head-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.pbi-logo { display: inline-flex; align-items: center; text-decoration: none; }
.pbi-logo img { height: 44px; width: auto; display: block; }
.pbi-logo-text { font: 700 26px/1 var(--pbi-font); color: var(--pbi-green); letter-spacing: -.02em; }
.pbi-logo-text b { display: inline-block; margin-left: 3px; padding: 2px 6px; border: 2.5px solid var(--pbi-green); border-radius: 6px; }
.pbi-site-foot { border-top: 1px solid var(--pbi-line-2); margin-top: 40px; }
.pbi-site-foot-in { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; padding-top: 22px; padding-bottom: 26px; font: 400 13px/1.5 var(--pbi-font); color: var(--pbi-grey); }
.pbi-site-foot a { color: var(--pbi-text-2); text-decoration: none; }
.pbi-site-foot a:hover { color: var(--pbi-green); }

/* ---------- base / reset inside the app ---------- */
.pbi, .pbi *, .pbi *::before, .pbi *::after { box-sizing: border-box; }
.pbi { background: var(--pbi-bg); border-radius: 20px; padding-bottom: 8px; font-family: var(--pbi-font); font-size: 16px; line-height: 1.65; font-weight: 400; color: var(--pbi-text); -webkit-font-smoothing: antialiased; text-align: left; }
.pbi :where(h1, h2, h3, p, ul, ol, li, figure) { margin: 0; padding: 0; }
.pbi ul, .pbi ol { list-style: none; }
.pbi :where(h1, h2, h3) { font-family: var(--pbi-font); color: var(--pbi-green); text-transform: none; }
.pbi [hidden] { display: none !important; }
.pbi-wrap { width: 100%; max-width: 1180px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.pbi-narrow { max-width: 780px; }
.pbi-band { padding-top: 34px; padding-bottom: 48px; }
.pbi-i { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: middle; }

.pbi-h1 { font-size: clamp(36px, 6.4vw, 72px); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; margin-top: 22px; max-width: 13ch; }
.pbi-h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 700; line-height: 1.2; letter-spacing: -.015em; margin: 8px 0 8px; }
.pbi-h3 { font-size: 18px; font-weight: 600; line-height: 1.35; }
.pbi-lede { font-size: 18px; font-weight: 300; line-height: 1.85; color: var(--pbi-text); max-width: 56ch; margin-top: 22px; }
.pbi-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--pbi-grey); }
.pbi-muted { color: var(--pbi-text-2); }
.pbi-small { font-size: 13.5px; }
.pbi-hint { font-size: 13px; color: var(--pbi-grey); margin-top: 6px; line-height: 1.5; }
.pbi-bad { color: var(--pbi-bad) !important; }
.pbi-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pbi-hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }

/* "We're Plan B" style tag */
.pbi-tag { display: inline-flex; align-items: center; gap: 10px; background: var(--pbi-white); border-radius: 6px; padding: 5px 12px 5px 5px; font-size: 13.5px; font-weight: 600; color: var(--pbi-green); }
.pbi-tag-dot { width: 26px; height: 26px; border-radius: 5px; background: var(--pbi-dark); color: var(--pbi-cream); display: inline-flex; align-items: center; justify-content: center; }
.pbi-tag-dot .pbi-i { width: 15px; height: 15px; }

/* ---------- buttons (dark pill + round arrow badge, as on the site) ---------- */
.pbi .pbi-btn { -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 12px; font: 500 16px/1.2 var(--pbi-font); text-transform: none; letter-spacing: 0; border-radius: 50px; border: 1.5px solid transparent; padding: 7px 7px 7px 24px; min-height: 50px; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .1s; box-shadow: none; width: auto; margin: 0; }
.pbi .pbi-btn:active { transform: scale(.985); }
.pbi .pbi-btn:focus-visible { outline: 2px solid var(--pbi-green); outline-offset: 3px; }
.pbi .pbi-btn-dark { background: var(--pbi-dark); color: #fff; border-color: var(--pbi-dark); }
.pbi .pbi-btn-dark:hover { background: var(--pbi-green); border-color: var(--pbi-green); color: #fff; }
.pbi .pbi-btn-ico { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--pbi-dark); display: inline-flex; align-items: center; justify-content: center; transition: transform .2s; }
.pbi .pbi-btn-dark:hover .pbi-btn-ico { transform: translateX(2px); color: var(--pbi-green); }
.pbi .pbi-btn-line { background: var(--pbi-white); color: var(--pbi-text); border-color: var(--pbi-line); padding: 7px 20px; gap: 8px; }
.pbi .pbi-btn-line:hover { border-color: var(--pbi-dark); color: var(--pbi-dark); background: #fff; }
.pbi .pbi-btn-sm { min-height: 40px; font-size: 14px; padding: 5px 16px; }
.pbi .pbi-btn-sm.pbi-btn-dark { padding: 5px 5px 5px 18px; }
.pbi .pbi-btn-sm .pbi-btn-ico { width: 30px; height: 30px; }
.pbi .pbi-btn[disabled] { opacity: .55; cursor: not-allowed; }
.pbi-site-head .pbi-btn { -webkit-appearance: none; display: inline-flex; align-items: center; gap: 10px; font: 500 14px/1.2 var(--pbi-font); border-radius: 50px; background: var(--pbi-dark); color: #fff; padding: 5px 5px 5px 18px; min-height: 40px; text-decoration: none; }
.pbi-site-head .pbi-btn:hover { background: var(--pbi-green); }
.pbi-site-head .pbi-btn-ico { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--pbi-dark); display: inline-flex; align-items: center; justify-content: center; }
.pbi-site-head .pbi-i { width: 16px; height: 16px; }

.pbi-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin-top: 32px; }
.pbi-nav { display: flex; align-items: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.pbi-spacer { flex: 1; }
.pbi-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ---------- landing ---------- */
.pbi-hero { display: grid; grid-template-columns: 1.45fr 1fr; gap: 40px; align-items: end; padding-top: 30px; padding-bottom: 20px; }
@media (max-width: 860px) { .pbi-hero { grid-template-columns: 1fr; gap: 28px; } }
.pbi-dark-card { background: var(--pbi-dark); color: #fff; border-radius: var(--pbi-r-lg); padding: 28px; }
.pbi-dark-eyebrow { font-size: 13px; font-weight: 600; color: var(--pbi-cream); letter-spacing: .04em; text-transform: uppercase; }
.pbi-checklist { margin-top: 16px !important; display: grid; gap: 4px; }
.pbi-checklist li { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.09); font-size: 15px; font-weight: 400; color: #fff; }
.pbi-checklist li:last-child { border-bottom: 0; }
.pbi-checklist .pbi-i { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: rgba(255,230,188,.12); color: var(--pbi-cream); }
.pbi-proc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
@media (max-width: 760px) { .pbi-proc { grid-template-columns: 1fr; } }
.pbi-proc .pbi-card { margin-top: 0; }
.pbi-proc-item h3 { font-size: 19px; font-weight: 600; margin-top: 14px; }
.pbi-proc-item p { font-size: 14.5px; font-weight: 300; line-height: 1.7; color: var(--pbi-text); margin-top: 6px; }
.pbi-num { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 50px; background: var(--pbi-cream); color: var(--pbi-green); font-weight: 700; font-size: 15px; }

/* ---------- rail ---------- */
.pbi-rail { position: sticky; top: 0; z-index: 50; background: rgba(240,243,246,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); border-bottom: 1px solid var(--pbi-line-2); }
body.admin-bar .pbi-rail { top: 32px; }
@media (max-width: 782px) { body.admin-bar .pbi-rail { top: 46px; } }
.pbi-rail-in { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.pbi-rail-title { font-weight: 600; font-size: 14px; color: var(--pbi-green); white-space: nowrap; }
.pbi-steps { display: flex; gap: 6px; margin-left: auto !important; align-items: center; }
.pbi-step { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--pbi-grey); padding-right: 8px; }
.pbi-step + .pbi-step::before { content: ""; width: 20px; height: 1.5px; background: var(--pbi-line); margin-right: 6px; }
.pbi-dot { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--pbi-line); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; background: #fff; }
.pbi-step.is-done .pbi-dot { background: var(--pbi-cream); border-color: var(--pbi-cream); color: var(--pbi-green); }
.pbi-step.is-current { color: var(--pbi-green); font-weight: 600; }
.pbi-step.is-current .pbi-dot { background: var(--pbi-dark); border-color: var(--pbi-dark); color: #fff; }
.pbi-lbl { display: none; }
@media (min-width: 600px) { .pbi-lbl { display: inline; } }
@media (max-width: 480px) { .pbi-rail-title { display: none; } .pbi-steps { margin-left: 0 !important; } }

/* ---------- screens ---------- */
.pbi-screen { display: none; }
.pbi-screen.is-active { display: block; animation: pbi-fade .35s ease; }
@keyframes pbi-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pbi-screen.is-active { animation: none; } }

/* ---------- cards & forms ---------- */
.pbi-card { background: var(--pbi-white); border-radius: var(--pbi-r-lg); padding: 26px; }
.pbi-card + .pbi-card { margin-top: 16px; }
.pbi-form { margin-top: 22px; }
@media (max-width: 520px) { .pbi-card { padding: 20px 18px; } }
.pbi-field { margin-bottom: 20px; }
.pbi-label { display: block; font-size: 14.5px; font-weight: 600; color: var(--pbi-green); margin-bottom: 8px; line-height: 1.4; }
.pbi-req { color: #b07a1f; }
.pbi :where(input[type=text], input[type=email], input[type=tel], textarea, select) {
	-webkit-appearance: none; appearance: none; display: block; width: 100%; max-width: none; margin: 0;
	font: 400 15.5px/1.55 var(--pbi-font); color: var(--pbi-text); background: var(--pbi-bg);
	border: 1.5px solid transparent; border-radius: 12px; padding: 12px 15px; min-height: 50px; outline: none; box-shadow: none;
	transition: border-color .15s, background .15s, box-shadow .15s;
}
.pbi select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232C2122' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.pbi textarea { resize: vertical; min-height: 104px; }
.pbi :where(input, textarea, select):focus { background: #fff; border-color: var(--pbi-dark); box-shadow: 0 0 0 4px rgba(255,230,188,.7); }
.pbi ::placeholder { color: #a3a6aa; opacity: 1; }
.pbi-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .pbi-grid2 { grid-template-columns: 1fr; } }
.pbi-err { color: var(--pbi-bad); font-size: 13px; margin-top: 7px; display: none; }
.pbi-field.is-invalid :where(input, textarea, select) { border-color: var(--pbi-bad); background: #fff; }
.pbi-field.is-invalid .pbi-err, .pbi-err.is-shown { display: block; }
.pbi-hr { border: 0; border-top: 1px solid var(--pbi-line-2); margin: 26px 0; }

/* pills (like "Tax Consulting" chips on the site) */
.pbi-choices { display: flex; flex-wrap: wrap; gap: 9px; }
.pbi-choice { position: relative; display: inline-block; margin: 0; }
.pbi-choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pbi-choice span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1.5px solid var(--pbi-line); border-radius: 50px; font-size: 14px; font-weight: 500; color: var(--pbi-text); background: #fff; cursor: pointer; transition: .15s; user-select: none; }
.pbi-choice span .pbi-i { width: 16px; height: 16px; }
.pbi-choice:hover span { border-color: var(--pbi-dark); }
.pbi-choice input:focus-visible + span { outline: 2px solid var(--pbi-green); outline-offset: 2px; }
.pbi-choice input:checked + span { background: var(--pbi-dark); border-color: var(--pbi-dark); color: #fff; }
.pbi-choice-acc input:checked + span { background: var(--pbi-cream); border-color: var(--pbi-cream); color: var(--pbi-green); }

/* photo + CV */
.pbi-io { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 6px; }
@media (max-width: 600px) { .pbi-io { grid-template-columns: 1fr; } }
.pbi-shot { position: relative; overflow: hidden; aspect-ratio: 3 / 4; max-height: 340px; border-radius: 16px; background: var(--pbi-dark); color: rgba(255,255,255,.75); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 14px; }
.pbi-shot .pbi-i { width: 34px; height: 34px; color: var(--pbi-cream); }
.pbi-shot img, .pbi-shot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pbi-shot video { transform: scaleX(-1); }
.pbi-drop { border: 1.5px dashed var(--pbi-line); border-radius: 16px; padding: 26px 16px; text-align: center; background: var(--pbi-bg); cursor: pointer; transition: .15s; }
.pbi-drop:hover, .pbi-drop.is-drag, .pbi-drop:focus-visible { border-color: var(--pbi-dark); background: var(--pbi-cream-2); outline: none; }
.pbi-drop > .pbi-i { width: 30px; height: 30px; color: var(--pbi-dark); }
.pbi-drop p { font-size: 14px; margin-top: 8px; }
.pbi-note { margin-top: 12px; font-size: 13.5px; line-height: 1.5; padding: 11px 13px; border-radius: 12px; display: flex; gap: 9px; align-items: flex-start; }
.pbi-note.is-ok { background: var(--pbi-ok-bg); color: #10533a; }
.pbi-note.is-bad { background: var(--pbi-bad-bg); color: #7f2620; }
.pbi-note.is-work { background: var(--pbi-warn-bg); color: #7a4810; }

/* dictation + per-field flags */
.pbi-dictbar { margin-top: 10px; }
.pbi .pbi-mic { -webkit-appearance: none; display: inline-flex; align-items: center; gap: 8px; font: 500 13.5px/1.2 var(--pbi-font); color: var(--pbi-text); background: #fff; border: 1.5px solid var(--pbi-line); border-radius: 50px; padding: 8px 15px; cursor: pointer; text-transform: none; }
.pbi .pbi-mic:hover { border-color: var(--pbi-dark); }
.pbi .pbi-mic .pbi-i { width: 16px; height: 16px; color: var(--pbi-dark); }
.pbi .pbi-mic.is-rec { background: var(--pbi-bad-bg); border-color: #e3b3ae; color: #7f2620; }
.pbi .pbi-mic.is-rec .pbi-i { color: var(--pbi-bad); }
.pbi-flag { display: none; align-items: center; gap: 6px; font-size: 13px; margin-top: 8px; }
.pbi-flag.is-shown { display: inline-flex; }
.pbi-flag.is-ok { color: var(--pbi-ok); }
.pbi-flag.is-warn { color: var(--pbi-warn); }
.pbi-flag .pbi-i { width: 15px; height: 15px; }

/* practical round */
.pbi-qbar { height: 6px; background: #fff; border-radius: 6px; overflow: hidden; margin: 16px 0 18px; }
.pbi-qbar i { display: block; height: 100%; width: 0; background: var(--pbi-dark); border-radius: 6px; transition: width .35s ease; }
.pbi-qhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.pbi-chip { display: inline-block; font-size: 12.5px; font-weight: 600; background: var(--pbi-cream); color: var(--pbi-green); border-radius: 50px; padding: 5px 13px; }
.pbi-qcount { font-size: 13px; color: var(--pbi-grey); font-variant-numeric: tabular-nums; }
.pbi-qtext { font-size: clamp(19px, 2.4vw, 23px); font-weight: 600; line-height: 1.4; color: var(--pbi-green); letter-spacing: -.01em; }
.pbi-qcard textarea { margin-top: 18px; min-height: 140px; }
.pbi-loadbox { text-align: center; padding: 60px 20px; }
.pbi-spin { display: inline-block; width: 38px; height: 38px; border: 3px solid #fff; border-top-color: var(--pbi-dark); border-radius: 50%; animation: pbi-spin 1s linear infinite; margin-bottom: 14px; }
@keyframes pbi-spin { to { transform: rotate(360deg); } }

/* closing */
.pbi-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 22px 0 16px; }
.pbi-tile { background: #fff; border-radius: var(--pbi-r); padding: 16px 18px; }
.pbi-tile .k { font-size: 12px; font-weight: 600; color: var(--pbi-grey); text-transform: uppercase; letter-spacing: .04em; }
.pbi-tile .v { font-size: 26px; font-weight: 700; color: var(--pbi-green); margin-top: 4px; letter-spacing: -.01em; }
.pbi-chipset { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.pbi-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--pbi-text-2); cursor: pointer; margin-top: 4px; }
.pbi-consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--pbi-dark); flex: none; }

/* done */
.pbi-done { text-align: center; padding: 56px 24px; max-width: 760px; margin: 10px auto 0; }
.pbi-done .pbi-h2 { color: #fff; margin-top: 18px; }
.pbi-done p { color: rgba(255,255,255,.8); max-width: 50ch; margin: 10px auto 0; font-weight: 300; }
.pbi-seal { width: 66px; height: 66px; border-radius: 50%; background: var(--pbi-cream); color: var(--pbi-dark); display: inline-flex; align-items: center; justify-content: center; }
.pbi-seal .pbi-i { width: 32px; height: 32px; stroke-width: 2.4; }
.pbi-done-note { display: inline-flex !important; gap: 8px; align-items: center; margin-top: 22px !important; background: var(--pbi-dark-2); border-radius: 12px; padding: 12px 16px; font-size: 14px; }
.pbi-done-note .pbi-i { color: var(--pbi-cream); }
.pbi-ref { font-size: 13px !important; color: rgba(255,255,255,.55) !important; margin-top: 18px !important; letter-spacing: .03em; }
.pbi-noscript { padding: 20px; text-align: center; }
