/* بوابة حق الرد — inherits the theme's font and colours, works in light and dark mode */
.albs-r {
	--albs-navy: #071B40;
	--albs-gold: #B4904F;
	--albs-gold-2: #D4B46A;
	--albs-line: rgba(127, 127, 127, .28);
	--albs-soft: rgba(127, 127, 127, .07);
	--albs-bad: #c0392b;
	--albs-ok: #1e8e4e;
	max-width: 820px;
	margin: 0 auto;
	font: inherit;
	color: inherit;
	line-height: 1.75;
}
.albs-r *, .albs-r *::before, .albs-r *::after { box-sizing: border-box; }

.albs-r-intro { margin-bottom: 28px; }
.albs-r-eyebrow { margin: 0 0 4px; color: var(--albs-gold); font-weight: 700; font-size: .85em; }
.albs-r-intro h2 { margin: 0 0 18px; font-size: clamp(1.35rem, 3.6vw, 1.9rem); line-height: 1.35; }
.albs-r-promises {
	list-style: none; margin: 0 0 16px; padding: 0;
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.albs-r-promises li {
	padding: 14px 16px; border-radius: 14px; background: var(--albs-soft);
	border-top: 3px solid var(--albs-gold); display: flex; flex-direction: column; gap: 2px;
}
.albs-r-promises strong { font-size: 1.15em; }
.albs-r-promises span { font-size: .88em; opacity: .8; line-height: 1.55; }
.albs-r-note { font-size: .9em; opacity: .85; margin: 0; }
.albs-r-note a { color: var(--albs-gold); }

.albs-r-flash { padding: 12px 16px; border-radius: 12px; margin: 0 0 20px; font-weight: 500; }
.albs-r-flash.is-bad { background: rgba(192, 57, 43, .1); border: 1px solid rgba(192, 57, 43, .35); }
.albs-r-flash.is-ok { background: rgba(30, 142, 78, .1); border: 1px solid rgba(30, 142, 78, .35); }

.albs-r-step {
	border: 1px solid var(--albs-line); border-radius: 16px;
	padding: 20px 20px 8px; margin: 0 0 18px; min-width: 0;
}
.albs-r-step legend {
	padding: 0 8px; font-weight: 700; font-size: 1.02em; display: flex; align-items: center; gap: 8px;
}
.albs-r-step legend span {
	width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center;
	background: var(--albs-navy); color: var(--albs-gold-2); font-size: .8em;
}

.albs-r-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.albs-r-choice { position: relative; cursor: pointer; }
.albs-r-choice input { position: absolute; opacity: 0; inset-inline-start: 14px; top: 18px; }
.albs-r-choice > span {
	display: flex; flex-direction: column; gap: 2px; height: 100%;
	padding: 14px 16px 14px 16px; padding-inline-start: 44px;
	border: 1.5px solid var(--albs-line); border-radius: 14px; transition: border-color .15s, background .15s;
	position: relative;
}
.albs-r-choice > span::before {
	content: ""; position: absolute; inset-inline-start: 16px; top: 18px;
	width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--albs-line);
}
.albs-r-choice input:checked + span { border-color: var(--albs-gold); background: rgba(180, 144, 79, .08); }
.albs-r-choice input:checked + span::before { border-color: var(--albs-gold); background: radial-gradient(circle, var(--albs-gold) 45%, transparent 50%); }
.albs-r-choice input:focus-visible + span { outline: 2px solid var(--albs-gold); outline-offset: 2px; }
.albs-r-choice small { opacity: .75; font-size: .85em; line-height: 1.5; }

.albs-r-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.albs-r-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.albs-r-field > span { font-weight: 600; font-size: .95em; }
.albs-r-field em { font-style: normal; font-weight: 400; opacity: .6; font-size: .9em; margin-inline-start: 4px; }
.albs-r-field small { font-size: .82em; opacity: .7; line-height: 1.5; }
.albs-r input[type=text], .albs-r input[type=email], .albs-r input[type=tel], .albs-r input[type=url],
.albs-r select, .albs-r textarea {
	width: 100%; font: inherit; color: inherit; background: transparent;
	border: 1.5px solid var(--albs-line); border-radius: 10px; padding: 10px 12px; min-height: 46px;
	transition: border-color .15s, box-shadow .15s;
}
.albs-r select option { color: #111; }
.albs-r textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
.albs-r input:focus, .albs-r select:focus, .albs-r textarea:focus {
	outline: none; border-color: var(--albs-gold); box-shadow: 0 0 0 3px rgba(180, 144, 79, .2);
}
.albs-r [aria-invalid=true] { border-color: var(--albs-bad); }
.albs-r-err { color: var(--albs-bad); font-size: .86em; margin: 0; font-weight: 500; }
.albs-r input[type=file] { font: inherit; font-size: .9em; padding: 10px; border: 1.5px dashed var(--albs-line); border-radius: 10px; width: 100%; }
.albs-r-filelist { list-style: none; padding: 0; margin: 4px 0 0; font-size: .86em; }
.albs-r-filelist li { padding: 4px 0; display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px dashed var(--albs-line); }
.albs-r-filelist li.is-bad { color: var(--albs-bad); }

.albs-r-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; cursor: pointer; font-size: .95em; line-height: 1.6; }
.albs-r-check input { margin-top: .35em; width: 18px; height: 18px; flex: none; accent-color: var(--albs-gold); }

.albs-r-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.albs-r-submit { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.albs-r-submit p { margin: 0; font-size: .85em; opacity: .7; flex: 1 1 240px; }
.albs-r button[type=submit], .albs-r-btn {
	font: inherit; font-weight: 700; cursor: pointer; border: 0; border-radius: 12px;
	padding: 13px 26px; background: var(--albs-navy); color: #fff !important; text-decoration: none;
	display: inline-block; box-shadow: inset 0 -3px 0 var(--albs-gold); transition: transform .12s, filter .12s;
}
.albs-r button[type=submit]:hover, .albs-r-btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.albs-r button[type=submit]:focus-visible, .albs-r-btn:focus-visible { outline: 2px solid var(--albs-gold); outline-offset: 3px; }

/* Receipt */
.albs-r-receipt { text-align: center; padding: 28px 20px; border: 1px solid var(--albs-line); border-radius: 18px; }
.albs-r-receipt__icon {
	width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center;
	background: var(--albs-ok); color: #fff; font-size: 28px; font-weight: 700;
}
.albs-r-receipt h2 { margin: 0 0 6px; }
.albs-r-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.albs-r-codes div { background: var(--albs-soft); border-radius: 12px; padding: 12px; }
.albs-r-codes dt { font-size: .85em; opacity: .75; }
.albs-r-codes dd { margin: 4px 0 0; font-size: 1.3em; font-weight: 700; letter-spacing: 1px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.albs-r-next { text-align: start; max-width: 520px; margin: 0 auto 20px; padding-inline-start: 1.2em; }
.albs-r-next li { margin-bottom: 6px; }
.albs-r-next strong { color: var(--albs-gold); margin-inline-end: 6px; }

/* Tracking */
.albs-r-trackform { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.albs-r-trackform .albs-r-submit { margin: 0 0 16px; }
.albs-r-status { border: 1px solid var(--albs-line); border-radius: 16px; padding: 18px 20px; margin-top: 8px; }
.albs-r-status__badge { display: inline-block; margin: 0 0 12px; padding: 4px 14px; border-radius: 999px; font-weight: 700; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.albs-r-status dl { margin: 0 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.albs-r-status dt { font-size: .82em; opacity: .7; }
.albs-r-status dd { margin: 0; font-weight: 600; }

@media (max-width: 640px) {
	.albs-r-promises, .albs-r-choices, .albs-r-grid, .albs-r-codes, .albs-r-trackform, .albs-r-status dl { grid-template-columns: 1fr; }
	.albs-r-step { padding: 16px 14px 4px; }
	.albs-r button[type=submit] { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.albs-r * { transition: none !important; }
}
