/**
 * Rukn Insurance Manager — Rukn brand theme layer.
 *
 * Loaded after every other plugin stylesheet. Colors come from the logo:
 * deep navy (the "R" and wordmark) and teal (the sweeping leg of the R).
 * The one signature element is the teal "swoosh" that sweeps across the
 * navy header bands — everything else stays quiet.
 */

.rkim-wizard,
.rkim-auth,
.rkim-tracking,
.rkim-dash {
	--rk-navy: var(--rkim-primary, #0A3A6B);
	--rk-navy-deep: color-mix(in srgb, var(--rkim-primary, #0A3A6B) 78%, #000);
	--rk-teal: var(--rkim-accent, #0B9282);
	--rk-cta: var(--rkim-button, #087F72);
	--rk-teal-soft: color-mix(in srgb, var(--rkim-accent, #0B9282) 9%, #fff);
	--rk-navy-soft: color-mix(in srgb, var(--rkim-primary, #0A3A6B) 6%, #fff);
	--rk-ink: #0B2340;
	--rk-muted: #5B6B80;
	--rk-line: #DDE4EC;
	--rk-swoosh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 320 120' preserveAspectRatio='none'%3E%3Cpath d='M0 120 C70 112 150 78 205 0 L262 0 C214 84 132 120 58 120 Z' fill='%230B9282'/%3E%3Cpath d='M150 120 C215 104 268 62 300 0 L320 0 L320 12 C290 70 240 108 196 120 Z' fill='%230B9282' fill-opacity='.35'/%3E%3C/svg%3E");
	--rkim-ink: var(--rk-ink);
	--rkim-muted: var(--rk-muted);
	--rkim-line: var(--rk-line);
	font-family: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--rk-ink);
}

/* ---------- Shared: logo chip ---------- */
.rkim-brandchip {
	display: inline-flex;
	align-items: center;
	background: #fff;
	border-radius: 10px;
	padding: 6px 12px;
	line-height: 0;
	box-shadow: 0 2px 10px rgba(6, 30, 60, 0.18);
}
.rkim-brandchip img { height: 36px; width: auto; max-width: 150px; display: block; }
.rkim-brandchip--sm img { height: 30px; }

/* ---------- Shared: buttons ---------- */
.rkim-wizard .rkim-btn--primary,
.rkim-tracking .rkim-btn--primary,
.rkim-auth .rkim-btn--primary,
.rkim-dash .rkim-btn--primary,
.rkim-agent .rkim-btn--primary,
.rkim-agent-detail .rkim-btn--primary {
	background: var(--rk-cta);
	color: #fff;
	box-shadow: 0 6px 16px color-mix(in srgb, var(--rk-cta) 28%, transparent);
}
.rkim-wizard .rkim-btn--primary:hover,
.rkim-tracking .rkim-btn--primary:hover,
.rkim-auth .rkim-btn--primary:hover,
.rkim-dash .rkim-btn--primary:hover,
.rkim-agent .rkim-btn--primary:hover {
	background: color-mix(in srgb, var(--rk-cta) 86%, #000);
}
.rkim-wizard .rkim-btn--ghost,
.rkim-tracking .rkim-btn--ghost,
.rkim-dash .rkim-btn--ghost {
	background: #fff;
	color: var(--rk-navy);
	border: 1.5px solid color-mix(in srgb, var(--rk-navy) 35%, #fff);
}
.rkim-wizard .rkim-btn--ghost:hover,
.rkim-tracking .rkim-btn--ghost:hover,
.rkim-dash .rkim-btn--ghost:hover { border-color: var(--rk-navy); background: var(--rk-navy-soft); }

.rkim-wizard .rkim-btn:focus-visible,
.rkim-tracking .rkim-btn:focus-visible,
.rkim-auth .rkim-btn:focus-visible,
.rkim-dash .rkim-btn:focus-visible,
.rkim-wizard .rkim-type-card:focus-within {
	outline: 3px solid color-mix(in srgb, var(--rk-teal) 55%, #fff);
	outline-offset: 2px;
}

/* ---------- Shared: fields ---------- */
.rkim-wizard .rkim-field input:focus,
.rkim-wizard .rkim-field select:focus,
.rkim-wizard .rkim-field textarea:focus,
.rkim-tracking input:focus,
.rkim-auth .rkim-auth__field input:focus,
.rkim-dash .rkim-field input:focus,
.rkim-dash .rkim-field select:focus,
.rkim-dash select:focus,
.rkim-dash input:focus,
.rkim-dash textarea:focus {
	outline: none;
	border-color: var(--rk-teal);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--rk-teal) 18%, transparent);
}

/* =========================================================
 * Quote wizard
 * ======================================================= */
.rkim-wizard {
	border-radius: 20px;
	border-color: var(--rk-line);
	box-shadow: 0 18px 50px rgba(10, 58, 107, 0.10);
}
.rkim-wizard__head {
	position: relative;
	overflow: hidden;
	padding: 18px 28px;
	min-height: 84px;
	background: var(--rk-navy);
}
.rkim-wizard__head::after {
	content: "";
	position: absolute;
	right: -10px;
	bottom: 0;
	width: 300px;
	height: 100%;
	background: var(--rk-swoosh) no-repeat right bottom / 100% 100%;
	pointer-events: none;
}
.rkim-wizard__brand {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 15px;
	font-weight: 500;
}
.rkim-wizard__brandtext { color: rgba(255, 255, 255, 0.86); }
.rkim-wizard__steplabel {
	position: relative;
	z-index: 1;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.28);
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12.5px;
	opacity: 1;
}

.rkim-wizard .rkim-progress__fill { background: linear-gradient(90deg, var(--rk-teal), var(--rk-navy)); }
.rkim-wizard .rkim-progress__track { background: #E7EDF3; height: 5px; }
.rkim-wizard .rkim-progress__dot.is-active .rkim-progress__num {
	background: var(--rk-navy);
	border-color: var(--rk-navy);
	color: #fff;
}
.rkim-wizard .rkim-progress__dot.is-active { color: var(--rk-navy); }
.rkim-wizard .rkim-progress__dot.is-done .rkim-progress__num {
	background: var(--rk-teal);
	border-color: var(--rk-teal);
	color: #fff;
}
.rkim-wizard .rkim-progress__dot.is-done { color: var(--rk-teal); }

.rkim-wizard .rkim-step__title {
	font-size: 25px;
	font-weight: 700;
	letter-spacing: -0.2px;
	color: var(--rk-navy);
}

/* Type cards: horizontal rows with a teal edge when chosen. */
.rkim-wizard .rkim-type-card {
	display: grid;
	grid-template-columns: 50px 1fr;
	grid-template-rows: auto auto;
	column-gap: 14px;
	row-gap: 2px;
	align-items: center;
	padding: 18px 44px 18px 18px;
	border: 1.5px solid var(--rk-line);
	border-radius: 14px;
}
.rkim-wizard .rkim-type-card__icon {
	grid-row: 1 / span 2;
	width: 50px;
	height: 50px;
	border-radius: 12px;
	background: var(--rk-navy);
	color: #fff;
}
.rkim-wizard .rkim-type-card__title { font-size: 15.5px; font-weight: 600; color: var(--rk-ink); align-self: end; }
.rkim-wizard .rkim-type-card__desc { font-size: 13px; color: var(--rk-muted); align-self: start; }
.rkim-wizard .rkim-type-card:hover { border-color: color-mix(in srgb, var(--rk-teal) 45%, #fff); }
.rkim-wizard .rkim-type-card.is-selected {
	border-color: var(--rk-teal);
	background: var(--rk-teal-soft);
	box-shadow: inset 4px 0 0 var(--rk-teal);
}
.rkim-wizard .rkim-type-card.is-selected .rkim-type-card__icon { background: var(--rk-teal); }
.rkim-wizard .rkim-type-card__check { top: 50%; margin-top: -11px; background: var(--rk-teal); }
.rkim-wizard .rkim-type-card.is-selected .rkim-type-card__check { transform: scale(1); }

.rkim-wizard .rkim-section__title,
.rkim-wizard .rkim-review__heading { color: var(--rk-navy); }
.rkim-wizard .rkim-success__icon { color: var(--rk-teal); }
.rkim-wizard .rkim-success__ref { color: var(--rk-navy); }

@media (max-width: 640px) {
	.rkim-wizard__head { padding: 14px 16px; min-height: 72px; }
	.rkim-wizard__head::after { width: 170px; opacity: 0.8; }
	.rkim-wizard__brandtext { display: none; }
	.rkim-brandchip img { height: 30px; }
	.rkim-wizard .rkim-step__title { font-size: 21px; }
}

/* =========================================================
 * Staff login — split layout (brand panel + form)
 * ======================================================= */
.rkim-auth--split {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	max-width: 900px;
	margin: 40px auto;
	background: #fff;
	border: 1px solid var(--rk-line);
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 22px 60px rgba(10, 58, 107, 0.14);
}
.rkim-auth__panel {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	gap: 10px;
	min-height: 460px;
	padding: 40px 36px 56px;
	background: var(--rk-navy);
	color: #fff;
}
.rkim-auth__panel::after {
	content: "";
	position: absolute;
	left: -40px;
	bottom: -6px;
	width: 520px;
	height: 120px;
	transform: scaleX(-1);
	background: var(--rk-swoosh) no-repeat center / 100% 100%;
	pointer-events: none;
}
.rkim-auth__panel > * { position: relative; z-index: 1; margin: 0; }
.rkim-auth__panel-ar {
	position: absolute !important;
	top: 26px;
	right: 32px;
	font-family: "Noto Kufi Arabic", "Outfit", Tahoma, sans-serif;
	font-size: 64px;
	font-weight: 700;
	line-height: 1;
	color: rgba(255, 255, 255, 0.14);
}
.rkim-auth__panel-title { font-size: 28px; font-weight: 700; letter-spacing: -0.3px; }
.rkim-auth__panel-text { max-width: 30ch; font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.8); margin-bottom: 110px !important; }

.rkim-auth--split .rkim-auth__card {
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 44px 44px 40px;
	align-self: center;
}
.rkim-auth--split .rkim-auth__brand { text-align: left; margin-bottom: 26px; }
.rkim-auth--split .rkim-auth__logo { max-height: 64px; max-width: 210px; }
.rkim-auth--split .rkim-auth__title { text-align: left; font-size: 24px; color: var(--rk-navy); }
.rkim-auth--split .rkim-auth__subtitle { text-align: left; }
.rkim-auth .rkim-auth__forgot { color: var(--rk-teal); }
.rkim-auth .rkim-auth__field input[type="text"],
.rkim-auth .rkim-auth__field input[type="password"] { background: #F7F9FB; }

@media (max-width: 760px) {
	.rkim-auth--split { grid-template-columns: 1fr; margin: 16px 10px; border-radius: 18px; }
	.rkim-auth__panel { min-height: 0; padding: 22px 22px 30px; }
	.rkim-auth__panel::after { height: 70px; width: 360px; }
	.rkim-auth__panel-ar { font-size: 40px; top: 16px; right: 20px; }
	.rkim-auth__panel-title { font-size: 21px; }
	.rkim-auth__panel-text { display: none; }
	.rkim-auth__panel-title { margin-bottom: 44px !important; }
	.rkim-auth--split .rkim-auth__card { padding: 28px 22px 26px; }
}

/* =========================================================
 * Tracking portal
 * ======================================================= */
.rkim-tracking__head {
	position: relative;
	overflow: hidden;
	text-align: left;
	background: var(--rk-navy);
	color: #fff;
	border-radius: 18px;
	padding: 24px 28px 30px;
	margin-bottom: 18px;
}
.rkim-tracking__head::after {
	content: "";
	position: absolute;
	right: -10px;
	bottom: 0;
	width: 280px;
	height: 100%;
	background: var(--rk-swoosh) no-repeat right bottom / 100% 100%;
	pointer-events: none;
}
.rkim-tracking__head > * { position: relative; z-index: 1; }
.rkim-tracking__head .rkim-brandchip { margin-bottom: 16px; }
.rkim-tracking .rkim-tracking__title { color: #fff; font-weight: 700; }
.rkim-tracking .rkim-tracking__desc { color: rgba(255, 255, 255, 0.82); max-width: 46ch; }
.rkim-tracking .rkim-tracking__form,
.rkim-tracking .rkim-track-card { border-color: var(--rk-line); box-shadow: 0 10px 30px rgba(10, 58, 107, 0.07); }
.rkim-tracking .rkim-track-card__title { color: var(--rk-navy); }
.rkim-tracking .rkim-timeline__item.is-current .rkim-timeline__marker { background: var(--rk-teal); border-color: var(--rk-teal); }

@media (max-width: 640px) {
	.rkim-tracking__head { padding: 18px 18px 24px; }
	.rkim-tracking__head::after { width: 160px; opacity: 0.8; }
}

/* =========================================================
 * Company dashboard, reports, detail, agent panel
 * ======================================================= */
.rkim-dash .rkim-dash__header,
.rkim-agent .rkim-dash__head {
	position: relative;
	overflow: hidden;
	justify-content: flex-start;
	background: var(--rk-navy);
	border: 0;
	border-radius: 18px;
	padding: 20px 24px;
	color: #fff;
	box-shadow: 0 12px 34px rgba(10, 58, 107, 0.16);
}
.rkim-dash .rkim-dash__header::after,
.rkim-agent .rkim-dash__head::after {
	content: "";
	position: absolute;
	right: -10px;
	bottom: 0;
	width: 260px;
	height: 100%;
	background: var(--rk-swoosh) no-repeat right bottom / 100% 100%;
	opacity: 0.9;
	pointer-events: none;
}
.rkim-dash .rkim-dash__header > *,
.rkim-agent .rkim-dash__head > * { position: relative; z-index: 1; }
.rkim-dash .rkim-dash__header > div:not(.rkim-dash__headeractions),
.rkim-agent .rkim-dash__head > div:not(.rkim-dash__headeractions) { margin-right: auto; }
.rkim-dash .rkim-dash__header > .rkim-btn:last-child { margin-left: auto; }

.rkim-dash__mark {
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	padding: 7px;
	background: #fff;
	border-radius: 12px;
	object-fit: contain;
}
.rkim-dash .rkim-dash__title,
.rkim-agent .rkim-dash__title { color: #fff; font-weight: 700; letter-spacing: -0.2px; }
.rkim-dash .rkim-dash__welcome,
.rkim-dash .rkim-dash__company,
.rkim-agent .rkim-dash__welcome { color: rgba(255, 255, 255, 0.78); }

/* Ghost buttons sitting on the navy band. */
.rkim-dash .rkim-dash__header .rkim-btn--ghost,
.rkim-agent .rkim-dash__head .rkim-btn--ghost {
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, 0.45);
}
.rkim-dash .rkim-dash__header .rkim-btn--ghost:hover,
.rkim-agent .rkim-dash__head .rkim-btn--ghost:hover { background: rgba(255, 255, 255, 0.18); border-color: #fff; }

/* Summary stats: navy total, teal edges for the rest. */
.rkim-dash .rkim-stat { border-top-color: var(--rk-teal); border-radius: 14px; }
.rkim-dash .rkim-stat--status { border-top-color: var(--rkim-badge, var(--rk-teal)); }
.rkim-dash .rkim-stat--total {
	background: var(--rk-navy);
	border-color: var(--rk-navy);
	border-top-color: var(--rk-teal);
	color: #fff;
}
.rkim-dash .rkim-stat--total .rkim-stat__label,
.rkim-dash .rkim-stat--total .rkim-stat__num { color: rgba(255, 255, 255, 0.85); }
.rkim-dash .rkim-stat__value,
.rkim-dash .rkim-stat__num { color: var(--rk-navy); }
.rkim-dash .rkim-stat--total .rkim-stat__value { color: #fff; }

/* Table */
.rkim-dash .rkim-dash__table thead th,
.rkim-dash .rkim-dash__table thead th:last-child,
.rkim-dash .rkim-table thead th,
.rkim-dash .rkim-table thead th:last-child {
	background: var(--rk-navy-soft);
	color: var(--rk-navy);
	text-transform: none;
	letter-spacing: 0;
	font-size: 12.5px;
	font-weight: 600;
}
.rkim-dash .rkim-dash__table tbody tr:hover td,
.rkim-dash .rkim-table tbody tr:hover td { background: #F7FAFC; }
.rkim-dash .rkim-table a { color: var(--rk-navy); }
.rkim-dash .rkim-pagination__link.is-current {
	background: var(--rk-navy);
	border-color: var(--rk-navy);
	color: #fff;
}
.rkim-agent-detail h2,
.rkim-agent-detail h3 { color: var(--rk-navy); }

@media (max-width: 640px) {
	.rkim-dash .rkim-dash__header,
	.rkim-agent .rkim-dash__head { padding: 16px; border-radius: 14px; }
	.rkim-dash .rkim-dash__header::after,
	.rkim-agent .rkim-dash__head::after { width: 150px; opacity: 0.6; }
	.rkim-dash__mark { width: 40px; height: 40px; padding: 6px; }
}

@media (prefers-reduced-motion: reduce) {
	.rkim-wizard *,
	.rkim-dash *,
	.rkim-tracking *,
	.rkim-auth * { transition: none !important; animation: none !important; }
}

/* Sortable column links inherit the navy header color. */
.rkim-dash .rkim-dash__table thead th a { color: inherit; text-decoration: none; }
.rkim-dash .rkim-dash__table thead th a:hover { color: var(--rk-teal); }

/* =========================================================
 * Wizard — Personal products (grouped cards, plans, checkboxes)
 * ======================================================= */
.rkim-wizard .rkim-types__group {
	margin: 22px 0 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--rk-muted);
}
.rkim-wizard .rkim-types__group:first-of-type { margin-top: 4px; }
.rkim-wizard .rkim-types + .rkim-types__group { margin-top: 26px; }

.rkim-wizard .rkim-field__label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.rkim-wizard .rkim-field__hint { display: block; margin-top: 4px; font-size: 12.5px; color: var(--rk-teal); }
.rkim-wizard .rkim-field input[readonly] { background: #F3F6F9; color: var(--rk-muted); }
.rkim-wizard .rkim-section__note {
	margin: 16px 18px 0;
	padding: 10px 14px;
	border-radius: 10px;
	background: var(--rk-teal-soft);
	color: var(--rk-ink);
	font-size: 13px;
}

.rkim-wizard .rkim-radio:has(input:checked) {
	border-color: var(--rk-teal);
	background: var(--rk-teal-soft);
	color: var(--rk-ink);
}
.rkim-wizard .rkim-radio input { accent-color: var(--rk-teal); }

/* Plan cards (Lifestyle Protect shield choice). */
.rkim-plans {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
}
.rkim-plan-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 16px 16px 16px 44px;
	border: 1.5px solid var(--rk-line);
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease;
}
.rkim-plan-card input {
	position: absolute;
	left: 16px;
	top: 18px;
	width: 17px;
	height: 17px;
	margin: 0;
	accent-color: var(--rk-teal);
}
.rkim-plan-card__title { font-size: 15px; font-weight: 600; color: var(--rk-navy); }
.rkim-plan-card__desc { font-size: 12.5px; color: var(--rk-muted); line-height: 1.4; }
.rkim-plan-card:hover { border-color: color-mix(in srgb, var(--rk-teal) 45%, #fff); }
.rkim-plan-card:has(input:checked),
.rkim-plan-card.is-selected {
	border-color: var(--rk-teal);
	background: var(--rk-teal-soft);
	box-shadow: inset 0 -3px 0 var(--rk-teal);
}
.rkim-plan-card:focus-within { outline: 3px solid color-mix(in srgb, var(--rk-teal) 45%, #fff); outline-offset: 2px; }

/* Checkbox groups (Cyber risks, War perils). */
.rkim-checks {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 12px;
}
.rkim-checkopt {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 12px;
	border: 1.5px solid var(--rk-line);
	border-radius: 10px;
	font-size: 14px;
	line-height: 1.35;
	cursor: pointer;
}
.rkim-checkopt input { width: 17px; height: 17px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--rk-teal); }
.rkim-checkopt:has(input:checked) { border-color: var(--rk-teal); background: var(--rk-teal-soft); }

@media (max-width: 640px) {
	.rkim-plans, .rkim-checks { grid-template-columns: 1fr; }
}

/* Radios/checkboxes inside schema fields must not inherit the text-input box. */
.rkim-wizard .rkim-field--schema input[type="radio"],
.rkim-wizard .rkim-field--schema input[type="checkbox"] {
	width: 17px;
	height: 17px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	flex-shrink: 0;
}

/* ---------- Processing fee (staff) ---------- */
.rkim-staff-fee { border-left: 4px solid var(--rkim-accent, #0B9282); }
.rkim-staff-fee__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.rkim-staff-fee__head .rkim-detail__cardtitle { margin: 0; }
.rkim-staff-fee__muted { font-size: 13px; color: #5B6B80; }
.rkim-staff-fee__notice { padding: 10px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 500; }
.rkim-staff-fee__notice--success { background: #EAF7F4; color: #0A5E53; }
.rkim-staff-fee__notice--error { background: #FEF3F2; color: #B42318; }
.rkim-staff-fee__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 16px; }
.rkim-staff-fee__actions form { display: flex; flex-direction: column; gap: 8px; padding: 14px; background: #F7F9FB; border: 1px solid #E3E9F0; border-radius: 12px; }
.rkim-staff-fee__actions label { font-size: 12.5px; font-weight: 600; color: #5B6B80; }
.rkim-staff-fee__actions input[type="text"] { padding: 10px 12px; border: 1.5px solid #DDE4EC; border-radius: 10px; font: inherit; font-size: 14px; }
.rkim-staff-fee__actions .rkim-btn { align-self: flex-start; margin-left: 0 !important; margin-right: 0 !important; }
.rkim-feetag { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.rkim-feetag--submitted { background: #DBEAFE; color: #1D4ED8; }
.rkim-feetag--due, .rkim-feetag--rejected { background: #FEF3C7; color: #92400E; }
.rkim-feetag--paid { background: #DDF3EE; color: #0A5E53; }

/* Staff login: link for customers who opened the wrong login page. */
.rkim-auth .rkim-auth__switch { margin: 18px 0 0; font-size: 14px; color: var(--rk-muted, #5B6B80); text-align: center; }
.rkim-auth .rkim-auth__switch a { color: var(--rk-teal, #0B9282); font-weight: 600; }
