/* Aflak broker area: registration + dashboard. Colours follow the Elementor kit. */
.aflak-b {
	--b-navy: var(--e-global-color-primary, #14233F);
	--b-navy-2: #1C3157;
	--b-blue: var(--e-global-color-secondary, #3563AE);
	--b-text: var(--e-global-color-text, #4A5872);
	--b-gold: var(--e-global-color-accent, #C49B4F);
	--b-gold-text: var(--e-global-color-aflak_gold_text, #8A6A2C);
	--b-muted: var(--e-global-color-aflak_muted, #5B6880);
	--b-border: var(--e-global-color-aflak_border, #E3E7EE);
	--b-bg: var(--e-global-color-aflak_bg, #F6F7F9);
	--b-soft: var(--e-global-color-aflak_soft_blue, #EAF0FA);
	--b-green: #1F7A4D;
	--b-amber: #B7791F;
	--b-red: #B42318;
	--b-grey: #8A94A6;
	color: var(--b-text);
	font-size: 15px;
	line-height: 1.7;
	text-align: right;
}
.aflak-b *, .aflak-b *::before, .aflak-b *::after { box-sizing: border-box; }
.aflak-b [hidden] { display: none !important; }
.aflak-b h1, .aflak-b h2, .aflak-b h3 { color: var(--b-navy); margin: 0; line-height: 1.35; font-weight: 700; }
.aflak-b h1 { font-size: clamp(24px, 2.6vw, 30px); }
.aflak-b h2 { font-size: 19px; }
.aflak-b h3 { font-size: 17px; }
.aflak-b p { margin: 0 0 10px; }
.aflak-b a { color: var(--b-blue); }
.aflak-b-muted { color: var(--b-muted); }
.aflak-b-kicker { display: inline-block; color: var(--b-gold-text); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.aflak-b-ico { flex: none; vertical-align: middle; }
.aflak-b .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.aflak-b :focus-visible { outline: 3px solid var(--b-gold); outline-offset: 2px; }

/* Surfaces */
.aflak-b-card { background: #fff; border: 1px solid var(--b-border); border-radius: 16px; padding: 24px; }
.aflak-b-card--narrow { max-width: 620px; margin: 0 auto; }
.aflak-b-card h3 { margin-bottom: 12px; }

/* Buttons */
.aflak-b .aflak-b-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border-radius: 10px; border: 1px solid var(--b-blue); background: var(--b-blue); color: #fff !important; font: inherit; font-weight: 700; line-height: 1.4; text-decoration: none; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: 0; transition: background-color .15s, border-color .15s; }
.aflak-b .aflak-b-btn:hover { background: #2B539A; border-color: #2B539A; }
.aflak-b .aflak-b-btn--ghost { background: #fff; color: var(--b-navy) !important; border-color: var(--b-border); }
.aflak-b .aflak-b-btn--ghost:hover { background: var(--b-bg); border-color: #CBD3E0; }
.aflak-b .aflak-b-btn--sm { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.aflak-b .aflak-b-btn--block { width: 100%; }
.aflak-b .aflak-b-btn[disabled] { opacity: .6; cursor: progress; }
.aflak-b .aflak-b-iconbtn { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 10px; border: 1px solid var(--b-border); background: #fff; color: var(--b-muted); cursor: pointer; box-shadow: none; }
.aflak-b .aflak-b-iconbtn:hover { color: var(--b-red); border-color: #F1C4C0; background: #FFF7F6; }
.aflak-b-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.aflak-b-actions form { margin: 0; }

/* Alerts */
.aflak-b-alert { border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; border: 1px solid; font-size: 14px; }
.aflak-b-alert.is-success { background: #EDF7F1; border-color: #C3E4D0; color: #175C3A; }
.aflak-b-alert.is-error { background: #FDF0EE; border-color: #F4C7C1; color: #8E1F13; }
.aflak-b-alert.is-warning { background: #FFF7E6; border-color: #F0DCA4; color: #6E5310; }
.aflak-b-alert.is-info { background: var(--b-soft); border-color: #CFDDF3; color: #23447C; }

/* ---------- The licence card: the broker as clients see them ---------- */
.aflak-b-license {
	position: relative; overflow: hidden; color: #DCE4F2;
	background: linear-gradient(160deg, var(--b-navy-2), var(--b-navy) 60%);
	border-radius: 16px; padding: 20px 20px 18px;
	border: 1px solid rgba(196, 155, 79, .55);
	box-shadow: inset 0 0 0 4px var(--b-navy), inset 0 0 0 5px rgba(196, 155, 79, .35);
}
.aflak-b-license__top { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.aflak-b-license__avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--b-gold); color: var(--b-navy); font-weight: 700; font-size: 22px; }
.aflak-b-license__name { display: block; color: #fff; font-size: 17px; line-height: 1.3; }
.aflak-b-license__office { display: block; font-size: 13px; color: #AEBBD3; }
.aflak-b-license__rows { margin: 0; display: grid; gap: 8px; }
.aflak-b-license__rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 8px; }
.aflak-b-license__rows dt { font-size: 13px; color: #AEBBD3; }
.aflak-b-license__rows dd { margin: 0; color: #fff; font-weight: 700; font-size: 16px; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.aflak-b-license__status { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; color: var(--b-gold); font-weight: 700; }
.aflak-b-license__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.aflak-b-license__status.is-pending { color: #F2C76E; }
.aflak-b-license__status.is-rejected, .aflak-b-license__status.is-suspended { color: #F3A39A; }

/* ---------- App shell ---------- */
.aflak-b-app { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.aflak-b-side { position: sticky; top: 112px; display: grid; gap: 14px; }
.aflak-b-nav { display: grid; gap: 2px; background: #fff; border: 1px solid var(--b-border); border-radius: 16px; padding: 8px; }
.aflak-b-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--b-text); text-decoration: none; font-weight: 600; }
.aflak-b-nav a:hover { background: var(--b-bg); color: var(--b-navy); }
.aflak-b-nav a.is-active { background: var(--b-soft); color: var(--b-blue); }
.aflak-b-nav a span { flex: 1; }
.aflak-b-nav em { font-style: normal; font-size: 13px; min-width: 26px; text-align: center; padding: 1px 8px; border-radius: 999px; background: var(--b-bg); color: var(--b-muted); }
.aflak-b-nav a.is-active em { background: #fff; color: var(--b-blue); }
.aflak-b-nav__quiet { color: var(--b-muted) !important; border-top: 1px solid var(--b-border); border-radius: 0 0 10px 10px !important; margin-top: 4px; }
.aflak-b-main { min-width: 0; }
.aflak-b-pagehead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.aflak-b-pagehead p { margin: 4px 0 0; }
.aflak-b-back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; text-decoration: none; margin-bottom: 4px; }

/* ---------- Property list ---------- */
.aflak-b-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.aflak-b .aflak-b-filter button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--b-border); background: #fff; color: var(--b-text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: none; line-height: 1.4; }
.aflak-b .aflak-b-filter button em { font-style: normal; color: var(--b-muted); font-weight: 400; }
.aflak-b .aflak-b-filter button.is-active { background: var(--b-navy); border-color: var(--b-navy); color: #fff; }
.aflak-b .aflak-b-filter button.is-active em { color: #C7D2E5; }
.aflak-b-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--b-grey); flex: none; }
.aflak-b-dot.is-publish { background: var(--b-green); }
.aflak-b-dot.is-pending { background: var(--b-amber); }
.aflak-b-dot.is-returned { background: var(--b-red); }
.aflak-b-grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.aflak-b-prop { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--b-border); border-radius: 16px; overflow: hidden; }
.aflak-b-prop.is-returned { border-color: #F1C4C0; }
.aflak-b-prop__media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--b-bg); }
.aflak-b .aflak-b-prop__media img { position: absolute; inset: 0; width: 100%; height: 100% !important; max-width: none; object-fit: cover; display: block; border-radius: 0; }
.aflak-b-prop__noimg { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--b-grey); font-size: 13px; }
.aflak-b-prop__body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.aflak-b-state { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--b-muted); }
.aflak-b-state.is-publish { color: var(--b-green); }
.aflak-b-state.is-pending { color: var(--b-amber); }
.aflak-b-state.is-returned { color: var(--b-red); }
.aflak-b-prop__title { font-size: 17px !important; margin-bottom: 4px !important; }
.aflak-b-prop__title a { color: inherit; text-decoration: none; }
.aflak-b-prop__title a:hover { color: var(--b-blue); }
.aflak-b-prop__place { display: flex; align-items: center; gap: 4px; color: var(--b-muted); font-size: 14px; margin-bottom: 8px !important; }
.aflak-b-prop__price { color: var(--b-navy); font-weight: 700; font-size: 18px; margin-bottom: 6px !important; font-variant-numeric: tabular-nums; }
.aflak-b-prop__meta { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.aflak-b-prop__meta li { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--b-bg); color: var(--b-muted); }
.aflak-b-prop__note { font-size: 14px; background: #FDF0EE; color: #8E1F13; border-radius: 10px; padding: 8px 12px; }
.aflak-b-prop__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: auto; padding-top: 4px; }
.aflak-b-prop__actions .aflak-b-btn { white-space: nowrap; }
.aflak-b-prop__actions form { margin: 0 auto 0 0; }
.aflak-b-filter-empty { color: var(--b-muted); text-align: center; padding: 24px; }
.aflak-b-empty { text-align: center; padding: 48px 24px; }
.aflak-b-empty__art { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; background: var(--b-soft); color: var(--b-blue); }
.aflak-b-empty__art .aflak-b-ico { width: 36px; height: 36px; }
.aflak-b-empty h2 { margin-bottom: 8px; }
.aflak-b-empty p { max-width: 420px; margin: 0 auto 18px; color: var(--b-muted); }

/* ---------- Forms ---------- */
.aflak-b-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.aflak-b-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.aflak-b .is-span-2 { grid-column: 1 / -1; }
.aflak-b-field { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; border: 0; padding: 0; }
.aflak-b-field > span, .aflak-b-field > label > span, .aflak-b-field > legend { font-weight: 600; color: var(--b-navy); font-size: 14px; padding: 0; }
.aflak-b-field input, .aflak-b-field select, .aflak-b-field textarea, .aflak-b-bound input, .aflak-b-inline input {
	width: 100%; max-width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px; border: 1px solid #D5DBE5; border-radius: 10px;
	background: #fff; color: var(--b-navy); font: inherit; font-size: 15px; box-shadow: none;
}
.aflak-b-field textarea { min-height: 160px; resize: vertical; line-height: 1.8; }
.aflak-b-field input:focus, .aflak-b-field select:focus, .aflak-b-field textarea:focus, .aflak-b-bound input:focus, .aflak-b-inline input:focus { outline: none; border-color: var(--b-blue); box-shadow: 0 0 0 3px rgba(53, 99, 174, .15); }
.aflak-b-field input[type=file] { padding: 9px; background: var(--b-bg); overflow: hidden; }
.aflak-b-field input:disabled { background: var(--b-bg); color: var(--b-muted); }
.aflak-b-field.has-error input, .aflak-b-field.has-error select, .aflak-b-field.has-error textarea, .aflak-b-drop.has-error { border-color: var(--b-red); }
.aflak-b-error { color: var(--b-red); font-size: 13px; }
.aflak-b-help { color: var(--b-muted); font-size: 13px; }
small.aflak-b-help { display: inline-flex; align-items: center; gap: 4px; }
.aflak-b input[type=checkbox], .aflak-b input[type=radio] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; flex: none; accent-color: var(--b-blue); box-shadow: none; }
.aflak-b-check { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 0; cursor: pointer; font-size: 14px; }
.aflak-b-check input { margin-top: 3px; }
.aflak-b-check.has-error span { color: var(--b-red); }
.aflak-b-hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.aflak-b-inline { margin-top: 2px; font-size: 14px; }
.aflak-b-inline summary { cursor: pointer; color: var(--b-blue); width: fit-content; }
.aflak-b-inline input { margin-top: 8px; }
.aflak-b-sublabel { font-weight: 600; color: var(--b-navy); font-size: 14px; margin: 18px 0 8px !important; }
.aflak-b-formbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

/* Numbered sections: the form really is a sequence. */
.aflak-b-property { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 24px; align-items: start; }
.aflak-b-formcol { min-width: 0; display: grid; gap: 16px; }
.aflak-b-section { background: #fff; border: 1px solid var(--b-border); border-radius: 16px; scroll-margin-top: 120px; }
.aflak-b-section__head { display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px 0; }
.aflak-b-section__head p { margin: 2px 0 0; font-size: 14px; color: var(--b-muted); }
.aflak-b-section__head small { font-size: 13px; font-weight: 400; color: var(--b-muted); }
.aflak-b-section__num { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--b-border); color: var(--b-muted); font-weight: 700; font-size: 15px; }
.aflak-b-section.is-complete .aflak-b-section__num { background: var(--b-green); border-color: var(--b-green); color: #fff; }
.aflak-b-section__body { padding: 16px 22px 22px; }
.aflak-b-form > .aflak-b-section + .aflak-b-section { margin-top: 16px; }

.aflak-b-segment { gap: 8px; }
.aflak-b-segment__opts { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--b-bg); border: 1px solid var(--b-border); border-radius: 12px; width: fit-content; max-width: 100%; }
.aflak-b-segment__opts label { position: relative; cursor: pointer; }
.aflak-b-segment__opts input { position: absolute; opacity: 0; inset: 0; width: 100% !important; height: 100% !important; cursor: pointer; }
.aflak-b-segment__opts span { display: block; padding: 7px 16px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--b-text); }
.aflak-b-segment__opts input:checked + span { background: #fff; color: var(--b-navy); box-shadow: 0 1px 2px rgba(20, 35, 63, .12); }
.aflak-b-segment__opts input:focus-visible + span { outline: 3px solid var(--b-gold); }
.aflak-b-calc { align-self: end; min-height: 46px; display: flex; align-items: center; padding: 0 14px; border-radius: 10px; background: var(--b-soft); color: var(--b-navy); font-weight: 700; font-variant-numeric: tabular-nums; }
.aflak-b-calc:empty { background: transparent; }

.aflak-b-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.aflak-b-chip { position: relative; cursor: pointer; }
.aflak-b-chip input { position: absolute; opacity: 0; inset: 0; width: 100% !important; height: 100% !important; cursor: pointer; }
.aflak-b-chip span { display: inline-block; padding: 6px 14px; border: 1px solid var(--b-border); border-radius: 999px; font-size: 14px; background: #fff; }
.aflak-b-chip input:checked + span { background: var(--b-soft); border-color: var(--b-blue); color: var(--b-blue); font-weight: 700; }
.aflak-b-chip input:focus-visible + span { outline: 3px solid var(--b-gold); }
.aflak-b-details { margin-top: 18px; border: 1px solid var(--b-border); border-radius: 12px; padding: 12px 16px; }
.aflak-b-details summary { cursor: pointer; font-weight: 600; color: var(--b-navy); }
.aflak-b-bounds { display: grid; gap: 10px; margin-top: 12px; }
.aflak-b-bound { display: grid; grid-template-columns: 70px 2fr 1fr 1fr auto; gap: 8px; align-items: center; }
.aflak-b-bound .aflak-b-check { margin: 0; }

.aflak-b-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; }
.aflak-b-gallery figure { margin: 0; border: 1px solid var(--b-border); border-radius: 12px; overflow: hidden; background: #fff; }
.aflak-b-gallery img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; display: block; }
.aflak-b-gallery figcaption { display: flex; justify-content: space-between; gap: 4px; padding: 6px; }
.aflak-b-tag { position: relative; cursor: pointer; font-size: 12px; }
.aflak-b-tag input { position: absolute; opacity: 0; inset: 0; width: 100% !important; height: 100% !important; cursor: pointer; }
.aflak-b-tag span { display: inline-block; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--b-border); color: var(--b-muted); }
.aflak-b-tag input:checked + span { background: var(--b-navy); border-color: var(--b-navy); color: #fff; }
.aflak-b-tag--danger input:checked + span { background: var(--b-red); border-color: var(--b-red); }
.aflak-b-tag input:focus-visible + span { outline: 3px solid var(--b-gold); }
.aflak-b-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 16px; border: 1.5px dashed #C3CCDA; border-radius: 14px; background: var(--b-bg); text-align: center; cursor: pointer; margin-bottom: 12px; }
.aflak-b-drop:hover, .aflak-b-drop.is-over { border-color: var(--b-blue); background: var(--b-soft); }
.aflak-b-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.aflak-b-drop__icon { width: 44px; height: 44px; border-radius: 12px; background: #fff; display: grid; place-items: center; color: var(--b-blue); margin-bottom: 4px; }
.aflak-b-drop strong { color: var(--b-navy); }
.aflak-b-drop:focus-within { outline: 3px solid var(--b-gold); outline-offset: 2px; }
.aflak-b-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-bottom: 14px; }
.aflak-b-previews:empty { display: none; }
.aflak-b-previews img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; }
.aflak-b-declare { margin-top: 18px; padding: 14px 16px; border-radius: 12px; background: var(--b-bg); }

/* Progress rail */
.aflak-b-rail { position: sticky; top: 112px; }
.aflak-b-rail__inner { background: #fff; border: 1px solid var(--b-border); border-radius: 16px; padding: 18px; }
.aflak-b-rail__title { display: flex; justify-content: space-between; font-weight: 700; color: var(--b-navy); margin-bottom: 8px !important; }
.aflak-b-rail__title span { color: var(--b-muted); font-weight: 400; font-size: 14px; }
.aflak-b-meter { height: 6px; border-radius: 999px; background: var(--b-bg); overflow: hidden; margin-bottom: 14px; }
.aflak-b-meter span { display: block; height: 100%; width: 0; background: var(--b-green); border-radius: inherit; transition: width .3s; }
.aflak-b-steps-nav { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 2px; }
.aflak-b-steps-nav a { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; color: var(--b-text); text-decoration: none; font-size: 14px; }
.aflak-b-steps-nav a:hover { background: var(--b-bg); }
.aflak-b-steps-nav i { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid #C3CCDA; flex: none; }
.aflak-b-steps-nav li.is-complete i { background: var(--b-green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; border-color: var(--b-green); }
.aflak-b-steps-nav li.is-optional i { border-style: dashed; }
.aflak-b-rail__actions { display: grid; gap: 8px; }
.aflak-b-rail__actions .aflak-b-help { margin-top: 4px; }

/* Applicant */
.aflak-b-applicant { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; max-width: 960px; margin: 0 auto; }
.aflak-b-applicant h2 { font-size: 22px; margin-bottom: 8px; }
.aflak-b-timeline { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 0; }
.aflak-b-timeline li { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 0; color: var(--b-muted); }
.aflak-b-timeline li:not(:last-child)::after { content: ""; position: absolute; right: 13px; top: 36px; bottom: -8px; width: 2px; background: var(--b-border); }
.aflak-b-timeline__dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--b-border); background: #fff; display: grid; place-items: center; flex: none; }
.aflak-b-timeline li.is-done { color: var(--b-navy); }
.aflak-b-timeline li.is-done .aflak-b-timeline__dot { background: var(--b-green); border-color: var(--b-green); color: #fff; }
.aflak-b-timeline li.is-current { color: var(--b-navy); font-weight: 700; }
.aflak-b-timeline li.is-current .aflak-b-timeline__dot { border-color: var(--b-amber); box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 14px var(--b-amber); }

/* Registration */
.aflak-b-register { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }
.aflak-b-register__intro { padding-top: 12px; }
.aflak-b-register__intro h2 { font-size: clamp(24px, 3vw, 30px); }
.aflak-b-form .aflak-b-grid + .aflak-b-check { margin-top: 18px; }
.aflak-b-register .aflak-b-form h3 { margin-bottom: 16px; }
.aflak-b-register .aflak-b-btn--block { margin-top: 18px; }
.aflak-b-steps { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 14px; }
.aflak-b-steps li { display: flex; gap: 12px; align-items: flex-start; }
.aflak-b-steps strong { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--b-soft); color: var(--b-blue); display: grid; place-items: center; }
.aflak-b-facts { display: grid; gap: 8px; margin: 16px 0; }
.aflak-b-facts div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--b-border); padding-bottom: 6px; }
.aflak-b-facts dt { color: var(--b-muted); }
.aflak-b-facts dd { margin: 0; font-weight: 700; color: var(--b-navy); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.aflak-b-property { grid-template-columns: 1fr; }
	.aflak-b-rail { position: sticky; top: auto; bottom: 0; z-index: 20; margin: 0; }
	.aflak-b-rail__inner { border-radius: 16px 16px 0 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 20px rgba(20, 35, 63, .08); display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; }
	.aflak-b-rail__title { margin: 0 !important; }
	.aflak-b-meter { grid-column: 1 / -1; margin: 0; order: 3; }
	.aflak-b-steps-nav, .aflak-b-rail__actions .aflak-b-help { display: none; }
	.aflak-b-rail__actions { grid-row: 1; grid-column: 2; display: flex; gap: 8px; }
	.aflak-b-rail__actions .aflak-b-btn { width: auto; min-height: 42px; padding: 8px 14px; font-size: 14px; }
}
@media (max-width: 900px) {
	.aflak-b-app, .aflak-b-applicant { grid-template-columns: 1fr; gap: 16px; }
	.aflak-b-side { position: static; }
	.aflak-b-app:not(.is-view-list) .aflak-b-license { display: none; }
	.aflak-b-license { padding: 16px; }
	.aflak-b-license__rows { grid-template-columns: 1fr 1fr; gap: 12px; }
	.aflak-b-license__rows div { flex-direction: column; gap: 0; }
	.aflak-b-license__status { margin-top: 10px; }
	.aflak-b-nav { display: flex; overflow-x: auto; padding: 6px; gap: 4px; scrollbar-width: none; }
	.aflak-b-nav a { flex: none; padding: 8px 12px; }
	.aflak-b-nav a span { flex: none; }
	.aflak-b-nav__quiet { border-top: 0; margin-top: 0; border-radius: 10px !important; }
	.aflak-b-register { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 640px) {
	.aflak-b-card { padding: 18px 16px; }
	.aflak-b-section__head { padding: 16px 16px 0; }
	.aflak-b-section__body { padding: 14px 16px 18px; }
	.aflak-b-grid { grid-template-columns: 1fr; }
	.aflak-b-grid--3 { grid-template-columns: 1fr 1fr; }
	.aflak-b-grid-cards { grid-template-columns: 1fr; }
	.aflak-b-bound { grid-template-columns: 1fr 1fr; }
	.aflak-b-bound strong, .aflak-b-bound input[type=text] { grid-column: 1 / -1; }
	.aflak-b-pagehead .aflak-b-btn { width: 100%; }
	.aflak-b-rail__title { font-size: 14px; }
	.aflak-b-rail__actions .aflak-b-btn--ghost { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.aflak-b * { transition: none !important; scroll-behavior: auto !important; }
}

/* In the theme's generic page template the broker area brings its own surfaces. */
.entry-content:has(> .aflak-b), .entry-content:has(> p > .aflak-b) { border: 0; background: transparent; box-shadow: none; padding: 0; max-width: 1280px; }
.entry-content > p:has(> .aflak-b) { margin: 0; }

/* Customer requests (shared by the broker dashboard and the customer account) */
.aflak-b-dot.is-new, .aflak-b-dot.is-review { background: var(--b-amber); }
.aflak-b-dot.is-followup { background: var(--b-blue); }
.aflak-b-dot.is-viewing { background: #6D4BC3; }
.aflak-b-dot.is-done { background: var(--b-green); }
.aflak-b-dot.is-closed { background: var(--b-grey); }
.aflak-b-state.is-new, .aflak-b-state.is-review { color: var(--b-amber); }
.aflak-b-state.is-followup { color: var(--b-blue); }
.aflak-b-state.is-viewing { color: #6D4BC3; }
.aflak-b-state.is-done { color: var(--b-green); }
.aflak-b-requests { display: grid; gap: 14px; }
.aflak-b-request { padding: 18px 20px; }
.aflak-b-request.is-closed, .aflak-b-request.is-done { background: #FBFCFD; }
.aflak-b-request__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; }
.aflak-b-request__head h2 { font-size: 17px; }
.aflak-b-request__head h2 small { color: var(--b-muted); font-size: 13px; font-weight: 500; margin-inline-start: 6px; }
.aflak-b-request__head time { font-size: 13px; white-space: nowrap; }
.aflak-b-request__dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 8px 18px; margin: 0 0 12px; }
.aflak-b-request__dl div { min-width: 0; }
.aflak-b-request__dl dt { color: var(--b-muted); font-size: 12.5px; }
.aflak-b-request__dl dd { margin: 0; color: var(--b-navy); font-weight: 600; overflow-wrap: anywhere; }
.aflak-b-request__contact { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.aflak-b-request__form { display: grid; grid-template-columns: minmax(140px, 200px) minmax(0, 1fr) auto; gap: 10px; align-items: end; padding-top: 12px; border-top: 1px solid var(--b-border); }
.aflak-b-request__form .aflak-b-field { margin: 0; }
@media (max-width: 680px) {
	.aflak-b-request__form { grid-template-columns: 1fr; }
	.aflak-b-request__head { flex-direction: column; gap: 4px; }
}
