/* Steel Alborz warranty inquiry page + printable card */

.swp {
	--swp-red: #d71920;
	--swp-red-dark: #a8121a;
	--swp-red-soft: #fdecec;
	--swp-ink: #1f2023;
	--swp-muted: #6b6e75;
	--swp-line: #e6e7ea;
	--swp-bg: #f5f5f7;
	--swp-surface: #fff;
	--swp-green: #138a4c;
	--swp-green-soft: #e8f6ee;
	--swp-amber: #b86e00;
	--swp-amber-soft: #fff4e2;
	--swp-gray: #5c6068;
	--swp-gray-soft: #eff0f2;
	--swp-radius: 18px;
	--swp-shadow: 0 1px 2px rgba(16, 17, 20, .04), 0 12px 32px -12px rgba(16, 17, 20, .12);

	direction: rtl;
	text-align: right;
	color: var(--swp-ink);
	font-family: inherit;
	line-height: 1.8;
	max-width: 1080px;
	margin: 0 auto;
	padding: 24px 16px 56px;
}

.swp *,
.swp *::before,
.swp *::after {
	box-sizing: border-box;
}

.swp h1, .swp h2, .swp h3, .swp h4, .swp p {
	margin: 0;
	padding: 0;
	letter-spacing: 0;
	text-transform: none;
}

.swp svg {
	width: 1.25em;
	height: 1.25em;
	flex: none;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.swp-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Hero + search ---------- */

.swp-hero {
	position: relative;
	overflow: hidden;
	border-radius: 24px;
	padding: 56px 24px 48px;
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 55%),
		linear-gradient(135deg, #e01f27 0%, #b5141b 100%);
	color: #fff;
	text-align: center;
}

.swp-hero::after {
	content: "";
	position: absolute;
	inset: auto -10% -60% auto;
	width: 420px;
	height: 420px;
	border-radius: 50%;
	border: 48px solid rgba(255, 255, 255, .06);
	pointer-events: none;
}

.swp-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 640px;
	margin: 0 auto;
}

.swp-eyebrow {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .16);
	font-size: 13px;
	font-weight: 500;
}

.swp .swp-title {
	margin-top: 16px;
	font-size: clamp(22px, 4vw, 32px);
	font-weight: 800;
	line-height: 1.5;
	color: #fff;
}

.swp-lead {
	margin-top: 10px !important;
	font-size: 15px;
	color: rgba(255, 255, 255, .88);
}

.swp-search {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 28px auto 0 !important;
	padding: 8px;
	max-width: 560px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 18px 40px -16px rgba(60, 0, 0, .45);
}

.swp-search__icon {
	display: flex;
	color: var(--swp-muted);
	padding-inline-start: 8px;
}

.swp .swp-search__input {
	flex: 1;
	min-width: 0;
	height: 52px;
	margin: 0;
	padding: 0 6px;
	border: 0;
	box-shadow: none;
	background: transparent;
	color: var(--swp-ink);
	font-family: inherit;
	font-size: 19px;
	font-weight: 600;
	text-align: left;
	outline: none;
}

.swp .swp-search__input::placeholder {
	color: #a3a6ad;
	font-weight: 400;
	font-size: 15px;
	text-align: right;
	direction: rtl;
}

.swp .swp-search__btn {
	flex: none;
	height: 52px;
	min-height: 0;
	margin: 0;
	padding: 0 28px;
	border: 0;
	border-radius: 12px;
	background: var(--swp-ink);
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 52px;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background-color .2s ease, transform .1s ease;
}

.swp .swp-search__btn:hover {
	background: #000;
}

.swp .swp-search__btn:active {
	transform: scale(.97);
}

.swp-search:focus-within {
	box-shadow: 0 0 0 4px rgba(255, 255, 255, .35), 0 18px 40px -16px rgba(60, 0, 0, .45);
}

.swp-hint {
	margin-top: 14px !important;
	font-size: 13px;
	color: rgba(255, 255, 255, .75);
}

/* ---------- Panels ---------- */

.swp-panel {
	margin-top: -28px;
	position: relative;
	z-index: 2;
	margin-inline: auto;
	max-width: 920px;
	background: var(--swp-surface);
	border: 1px solid var(--swp-line);
	border-radius: var(--swp-radius);
	box-shadow: var(--swp-shadow);
	animation: swp-rise .45s cubic-bezier(.2, .8, .2, 1) both;
}

@keyframes swp-rise {
	from { opacity: 0; transform: translateY(12px); }
	to { opacity: 1; transform: none; }
}

.swp-message {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 28px;
}

.swp-message__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	flex: none;
	border-radius: 14px;
	font-size: 24px;
}

.swp-message--missing .swp-message__icon { background: var(--swp-gray-soft); color: var(--swp-gray); }
.swp-message--error .swp-message__icon { background: var(--swp-red-soft); color: var(--swp-red); }

.swp .swp-message__title {
	font-size: 18px;
	font-weight: 800;
	margin-bottom: 4px;
}

.swp-message p {
	color: var(--swp-muted);
	font-size: 14.5px;
}

.swp-message .swp-btn {
	margin-top: 16px;
}

/* ---------- Result ---------- */

.swp-status {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 24px 28px;
	border-radius: var(--swp-radius) var(--swp-radius) 0 0;
	border-bottom: 1px solid var(--swp-line);
}

.swp-result--active .swp-status { background: linear-gradient(180deg, var(--swp-green-soft), #fff); }
.swp-result--expired .swp-status { background: linear-gradient(180deg, var(--swp-amber-soft), #fff); }
.swp-result--none .swp-status { background: linear-gradient(180deg, var(--swp-gray-soft), #fff); }

.swp-status__icon {
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	flex: none;
	border-radius: 16px;
	color: #fff;
	font-size: 28px;
}

.swp-result--active .swp-status__icon { background: var(--swp-green); }
.swp-result--expired .swp-status__icon { background: var(--swp-amber); }
.swp-result--none .swp-status__icon { background: var(--swp-gray); }

.swp-status__text {
	flex: 1;
	min-width: 0;
}

.swp .swp-status__text h2 {
	font-size: 19px;
	font-weight: 800;
	line-height: 1.6;
}

.swp-result--active .swp-status__text h2 { color: var(--swp-green); }
.swp-result--expired .swp-status__text h2 { color: var(--swp-amber); }

.swp-status__text p {
	font-size: 14px;
	color: var(--swp-muted);
}

.swp-countdown {
	flex: none;
	text-align: center;
	padding: 8px 18px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid #cfe9da;
}

.swp-countdown strong {
	display: block;
	font-size: 26px;
	font-weight: 800;
	line-height: 1.3;
	color: var(--swp-green);
}

.swp-countdown span {
	font-size: 12px;
	color: var(--swp-muted);
}

.swp-product {
	display: grid;
	grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
	gap: 28px;
	padding: 28px;
}

.swp-product__label {
	font-size: 13px;
	color: var(--swp-muted);
}

.swp .swp-product__name {
	margin-top: 2px;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.5;
}

.swp-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 14px;
}

.swp-chip {
	padding: 3px 12px;
	border-radius: 999px;
	background: var(--swp-bg);
	border: 1px solid var(--swp-line);
	font-size: 13px;
	font-weight: 600;
}

.swp-details {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0;
}

.swp-details__row {
	padding: 12px 16px;
	border-radius: 12px;
	background: var(--swp-bg);
}

.swp-details dt {
	font-size: 12.5px;
	font-weight: 400;
	color: var(--swp-muted);
	margin: 0;
}

.swp-details dd {
	margin: 2px 0 0;
	font-size: 15.5px;
	font-weight: 700;
	color: var(--swp-ink);
	text-align: right;
	overflow-wrap: anywhere;
}

.swp-mono {
	font-variant-numeric: tabular-nums;
	letter-spacing: .04em;
}

.swp-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0 28px 28px;
}

.swp .swp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	margin: 0;
	padding: 0 20px;
	border-radius: 12px;
	border: 1px solid transparent;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	text-transform: none;
	letter-spacing: 0;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .1s ease;
}

.swp .swp-btn:active {
	transform: scale(.97);
}

.swp .swp-btn--primary {
	background: var(--swp-red);
	color: #fff;
}

.swp .swp-btn--primary:hover {
	background: var(--swp-red-dark);
	color: #fff;
}

.swp .swp-btn--ghost {
	background: #fff;
	border-color: var(--swp-line);
	color: var(--swp-ink);
}

.swp .swp-btn--ghost:hover {
	border-color: #c9cbd0;
	background: var(--swp-bg);
	color: var(--swp-ink);
}

.swp .swp-btn[aria-busy="true"] {
	opacity: .7;
	cursor: progress;
}

.swp .swp-btn:focus-visible,
.swp .swp-search__btn:focus-visible,
.swp-terms__item summary:focus-visible {
	outline: 3px solid rgba(215, 25, 32, .35);
	outline-offset: 2px;
}

/* ---------- Card preview ---------- */

.swp-card-section,
.swp-terms {
	max-width: 920px;
	margin: 48px auto 0;
}

.swp-section-head {
	margin-bottom: 18px;
}

.swp .swp-section-head h2 {
	font-size: 20px;
	font-weight: 800;
}

.swp-section-head p {
	margin-top: 4px !important;
	font-size: 14px;
	color: var(--swp-muted);
}

.swp-card-frame {
	position: relative;
	overflow: hidden;
	border-radius: var(--swp-radius);
	background: var(--swp-bg);
	border: 1px solid var(--swp-line);
	padding: 24px;
}

.swp-card-frame .swc {
	transform-origin: top right;
	box-shadow: 0 30px 60px -30px rgba(16, 17, 20, .35);
}

/* ---------- Steps ---------- */

.swp-steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	max-width: 920px;
	margin: -28px auto 0;
	position: relative;
	z-index: 2;
}

.swp-step {
	padding: 24px;
	background: var(--swp-surface);
	border: 1px solid var(--swp-line);
	border-radius: var(--swp-radius);
	box-shadow: var(--swp-shadow);
}

.swp-step__num {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--swp-red-soft);
	color: var(--swp-red);
	font-weight: 800;
}

.swp .swp-step h3 {
	margin-top: 14px;
	font-size: 16px;
	font-weight: 800;
}

.swp-step p {
	margin-top: 4px !important;
	font-size: 14px;
	color: var(--swp-muted);
}

/* ---------- Terms ---------- */

.swp-terms__notice {
	margin-top: 10px !important;
	padding: 12px 16px;
	border-radius: 12px;
	background: var(--swp-red-soft);
	color: var(--swp-red-dark) !important;
	font-weight: 600;
}

.swp-terms__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	align-items: start;
}

.swp-terms__item {
	background: var(--swp-surface);
	border: 1px solid var(--swp-line);
	border-radius: var(--swp-radius);
	overflow: hidden;
}

.swp-terms__item summary {
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 20px;
	font-size: 16px;
	font-weight: 800;
	cursor: pointer;
}

.swp-terms__item summary::-webkit-details-marker {
	display: none;
}

.swp-terms__item summary::after {
	content: "";
	width: 9px;
	height: 9px;
	border-left: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform .2s ease;
}

.swp-terms__item[open] summary::after {
	transform: rotate(135deg);
}

.swp-terms__body {
	padding: 0 20px 18px;
	font-size: 14px;
	line-height: 2;
	color: #44474d;
}

.swp-terms__body p {
	margin-bottom: 8px !important;
}

/* ---------- Support strip ---------- */

.swp-support {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	max-width: 920px;
	margin: 48px auto 0;
	padding: 20px 24px;
	border-radius: var(--swp-radius);
	background: #2d2e31;
	color: #fff;
}

.swp-support strong {
	font-size: 16px;
}

.swp-support p {
	margin-top: 2px !important;
	font-size: 14px;
	color: rgba(255, 255, 255, .72);
}

.swp .swp-support__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .1);
	color: #fff;
	font-size: 18px;
	font-weight: 800;
	text-decoration: none;
}

.swp .swp-support__phone:hover {
	background: rgba(255, 255, 255, .18);
	color: #fff;
}

/* ---------- Toast ---------- */

.swp-toast {
	position: fixed;
	bottom: 24px;
	left: 50%;
	z-index: 99999;
	padding: 10px 18px;
	border-radius: 12px;
	background: var(--swp-ink);
	color: #fff;
	font-size: 14px;
	opacity: 0;
	transform: translate(-50%, 12px);
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}

.swp-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ---------- Responsive ---------- */

@media (max-width: 782px) {
	.swp { padding: 12px 12px 40px; }
	.swp-hero { padding: 40px 16px 52px; border-radius: 20px; }
	.swp-product { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
	.swp-status { flex-wrap: wrap; padding: 20px; }
	.swp-countdown { width: 100%; display: flex; align-items: baseline; justify-content: center; gap: 8px; }
	.swp-actions { padding: 0 20px 20px; }
	.swp-actions .swp-btn { flex: 1 1 100%; }
	.swp-steps, .swp-terms__grid { grid-template-columns: 1fr; }
	.swp-message { padding: 20px; flex-direction: column; }
	.swp-card-frame { padding: 12px; }
}

@media (max-width: 480px) {
	.swp-details { grid-template-columns: 1fr; }
	.swp .swp-search__btn { padding: 0 18px; }
	.swp .swp-search__input { font-size: 17px; }
	.swp-search__icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.swp-panel { animation: none; }
	.swp *, .swp-toast { transition: none !important; }
}

/* =========================================================
   Warranty card (A4 @ 96dpi = 794px wide). No letter-spacing:
   it breaks Persian glyph joining in html2canvas.
   ========================================================= */

.swc {
	width: 794px;
	background: #fff;
	color: #232427;
	direction: rtl;
	text-align: right;
	font-family: inherit;
	line-height: 1.8;
	overflow: hidden;
}

.swc * {
	box-sizing: border-box;
	letter-spacing: 0 !important;
}

.swc-cover {
	height: 290px; /* stops above the artwork's own title line */
	background-color: #d1d2d4;
	background-repeat: no-repeat;
	background-position: top center;
	background-size: cover;
	border-bottom: 6px solid #d71920;
}

.swc-body {
	padding: 26px 40px 20px;
}

.swc-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.swc-kicker {
	font-size: 12px;
	font-weight: 600;
	color: #d71920;
}

.swc .swc-title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.6;
	color: #232427;
}

.swc-stamp {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border: 2px solid #138a4c;
	border-radius: 999px;
	color: #138a4c;
	font-size: 14px;
	font-weight: 800;
	white-space: nowrap;
}

.swc-stamp__check {
	display: inline-grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #138a4c;
	color: #fff;
	font-size: 13px;
	line-height: 1;
}

.swc-greeting {
	margin: 14px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: #d71920;
}

.swc-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin-top: 18px;
}

.swc-field {
	display: flex;
	align-items: stretch;
	min-height: 42px;
	border: 1px solid #e3e4e7;
	border-radius: 10px;
	overflow: hidden;
}

.swc-field__label {
	display: flex;
	align-items: center;
	flex: none;
	width: 128px;
	padding: 0 12px;
	background: #f1f1f3;
	font-size: 12px;
	font-weight: 600;
	color: #5c6068;
}

.swc-field__value {
	display: flex;
	align-items: center;
	flex: 1;
	padding: 0 12px;
	font-size: 14px;
	font-weight: 800;
	color: #232427;
}

.swc-field__value[dir="ltr"] {
	justify-content: flex-end;
}

.swc-field--accent {
	border-color: #f2b8bb;
}

.swc-field--accent .swc-field__label {
	background: #d71920;
	color: #fff;
}

.swc-notice {
	margin: 16px 0 0;
	padding: 10px 14px;
	border-right: 4px solid #d71920;
	background: #fdecec;
	border-radius: 8px;
	font-size: 12.5px;
	font-weight: 600;
	color: #a8121a;
}

.swc-terms {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
	margin-top: 16px;
	font-size: 10.5px;
	line-height: 1.9;
	color: #4a4d53;
}

.swc-terms h4 {
	margin: 0 0 4px;
	font-size: 12.5px;
	font-weight: 800;
	color: #232427;
}

.swc-terms p {
	margin: 0 0 5px;
}

.swc-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 14px 40px;
	background: #3a3a3c;
	color: #fff;
	font-size: 11px;
}

.swc-foot__contact {
	display: flex;
	flex-direction: column;
}

.swc-foot__verify {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	color: rgba(255, 255, 255, .8);
}

.swc-foot__verify span[dir="ltr"] {
	color: #fff;
	font-weight: 600;
}

/* Off-screen copy used for PDF capture (unscaled). */
.swc-capture {
	position: absolute !important;
	margin: 0 !important;
	top: 0 !important;
	left: -10000px !important;
	transform: none !important;
	box-shadow: none !important;
}

/* Print happens in an iframe that holds only the card (see warranty.js). */
.swc-print-doc {
	margin: 0;
	background: #fff;
}

.swc-print-doc .swc {
	margin: 0 auto;
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}

.swc-print-doc .swc * {
	-webkit-print-color-adjust: exact;
	print-color-adjust: exact;
}
