/**
 * Afoomart Informational & Service Pages Stylesheet
 * 
 * Provides responsive, accessible, high-conversion layouts for:
 * - Order Tracking Experience (Creative interactive tracker & timeline)
 * - Returns & Refunds Policy (Jumia benchmarked 7-day guarantee)
 * - Privacy Notice & Terms of Service (NDPA 2023 compliant legal layout)
 * - Help Center & FAQs (Accordion & support channels)
 * - Shipping & Delivery (Rates, timelines, hub pickup)
 * - About Us & Seller Landing Pages (Sell on Afoomart, Affiliates, Logistics)
 *
 * @package Afoomart
 */

/* -------------------------------------------------------------------------
 * General Info Page Layout
 * ------------------------------------------------------------------------- */
.af-info-page {
	padding: var(--af-space-8, 32px) 0 var(--af-space-16, 64px);
	background-color: var(--af-color-bg-light, #F8FAFC);
	color: var(--af-color-text-main, #1E293B);
}

.af-info-hero {
	background: linear-gradient(135deg, #0A192F 0%, #113F6D 100%);
	color: #FFFFFF;
	padding: var(--af-space-10, 40px) 0;
	border-radius: var(--af-radius-lg, 12px);
	margin-bottom: var(--af-space-8, 32px);
	text-align: center;
	position: relative;
	overflow: hidden;
	box-shadow: 0 10px 25px -5px rgba(10, 25, 47, 0.25);
}

.af-info-hero::before {
	content: '';
	position: absolute;
	top: -50px;
	right: -50px;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(222, 44, 39, 0.2) 0%, transparent 70%);
	pointer-events: none;
}

.af-info-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: rgba(255, 255, 255, 0.12);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #FFFFFF;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 4px 14px;
	border-radius: 9999px;
	margin-bottom: var(--af-space-3, 12px);
}

.af-info-hero-title {
	font-size: clamp(24px, 4vw, 36px);
	font-weight: 800;
	color: #FFFFFF;
	margin-bottom: var(--af-space-3, 12px);
	line-height: 1.25;
}

.af-info-hero-desc {
	font-size: clamp(14px, 2vw, 16px);
	color: rgba(255, 255, 255, 0.85);
	max-width: 680px;
	margin: 0 auto;
	line-height: 1.6;
}

/* -------------------------------------------------------------------------
 * Content Card & Two-Column Layout
 * ------------------------------------------------------------------------- */
.af-info-card {
	background: #FFFFFF;
	border: 1px solid var(--af-color-border, #E2E8F0);
	border-radius: var(--af-radius-lg, 12px);
	padding: var(--af-space-6, 24px);
	margin-bottom: var(--af-space-6, 24px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

@media (min-width: 768px) {
	.af-info-card {
		padding: var(--af-space-8, 32px);
	}
}

.af-info-grid-2col {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--af-space-6, 24px);
}

@media (min-width: 992px) {
	.af-info-grid-2col {
		grid-template-columns: 280px 1fr;
		gap: var(--af-space-8, 32px);
	}
}

/* -------------------------------------------------------------------------
 * Sidebar Sticky Navigation for Legal/Policy Pages
 * ------------------------------------------------------------------------- */
.af-info-sidebar {
	position: sticky;
	top: 100px;
	background: #FFFFFF;
	border: 1px solid var(--af-color-border, #E2E8F0);
	border-radius: var(--af-radius-lg, 12px);
	padding: var(--af-space-4, 16px);
	height: fit-content;
}

.af-info-sidebar-title {
	font-size: 14px;
	font-weight: 700;
	color: var(--af-color-text-muted, #64748B);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: var(--af-space-3, 12px);
	padding-bottom: var(--af-space-2, 8px);
	border-bottom: 1px solid var(--af-color-border, #E2E8F0);
}

.af-info-nav-links {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.af-info-nav-link {
	display: block;
	padding: 8px 12px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--af-color-text-main, #334155);
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
}

.af-info-nav-link:hover,
.af-info-nav-link.is-active {
	background-color: rgba(222, 44, 39, 0.08);
	color: var(--af-color-primary-red, #DE2C27);
	font-weight: 600;
}

/* -------------------------------------------------------------------------
 * Typography in Information Pages
 * ------------------------------------------------------------------------- */
.af-info-content h2 {
	font-size: 22px;
	font-weight: 700;
	color: #0A192F;
	margin-top: var(--af-space-6, 24px);
	margin-bottom: var(--af-space-3, 12px);
	padding-bottom: 6px;
	border-bottom: 2px solid #F1F5F9;
}

.af-info-content h2:first-child {
	margin-top: 0;
}

.af-info-content h3 {
	font-size: 17px;
	font-weight: 700;
	color: #1E293B;
	margin-top: var(--af-space-4, 16px);
	margin-bottom: var(--af-space-2, 8px);
}

.af-info-content p {
	font-size: 15px;
	line-height: 1.7;
	color: #334155;
	margin-bottom: var(--af-space-4, 16px);
}

.af-info-content ul,
.af-info-content ol {
	padding-left: 20px;
	margin-bottom: var(--af-space-4, 16px);
	line-height: 1.7;
	color: #334155;
	font-size: 15px;
}

.af-info-content li {
	margin-bottom: 8px;
}

.af-callout {
	background-color: #F0FDF4;
	border-left: 4px solid #10B981;
	padding: var(--af-space-4, 16px);
	border-radius: 0 8px 8px 0;
	margin: var(--af-space-4, 16px) 0;
	color: #065F46;
	font-size: 14px;
	line-height: 1.6;
}

.af-callout-warning {
	background-color: #FEF2F2;
	border-left-color: #EF4444;
	color: #991B1B;
}

.af-callout-info {
	background-color: #EFF6FF;
	border-left-color: #3B82F6;
	color: #1E40AF;
}

/* -------------------------------------------------------------------------
 * ORDER TRACKING EXPERIENCE (Creative & Interactive)
 * ------------------------------------------------------------------------- */
.af-tracker-box {
	background: #FFFFFF;
	border: 1px solid var(--af-color-border, #E2E8F0);
	border-radius: var(--af-radius-lg, 12px);
	padding: var(--af-space-6, 24px);
	margin-bottom: var(--af-space-8, 32px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.af-tracker-form {
	display: flex;
	flex-direction: column;
	gap: var(--af-space-4, 16px);
}

@media (min-width: 640px) {
	.af-tracker-form {
		flex-direction: row;
		align-items: flex-end;
	}
}

.af-tracker-field {
	flex: 1;
}

.af-tracker-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #475569;
	margin-bottom: 6px;
}

.af-tracker-input {
	width: 100%;
	height: 48px;
	padding: 0 16px;
	border: 2px solid #E2E8F0;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	color: #1E293B;
	background-color: #FFFFFF;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.af-tracker-input:focus {
	outline: none;
	border-color: #DE2C27;
	box-shadow: 0 0 0 3px rgba(222, 44, 39, 0.15);
}

.af-tracker-btn {
	height: 48px;
	padding: 0 28px;
	background: #DE2C27;
	color: #FFFFFF;
	border: none;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: background-color 0.2s, transform 0.1s;
	white-space: nowrap;
}

.af-tracker-btn:hover {
	background: #B91C1C;
}

.af-tracker-quick-chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	font-size: 13px;
	color: #64748B;
}

.af-quick-chip {
	background: #F1F5F9;
	border: 1px solid #CBD5E1;
	border-radius: 9999px;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
	transition: all 0.2s;
}

.af-quick-chip:hover {
	background: #E2E8F0;
	border-color: #94A3B8;
	color: #0F172A;
}

/* Order Tracker Live Status Card */
.af-track-result {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: var(--af-radius-lg, 12px);
	overflow: hidden;
	margin-top: var(--af-space-6, 24px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
	animation: afFadeIn 0.3s ease-out;
}

@keyframes afFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}

.af-track-status-header {
	background: linear-gradient(135deg, #0A192F 0%, #1E3A8A 100%);
	color: #FFFFFF;
	padding: var(--af-space-6, 24px);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
}

.af-track-status-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 9999px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
}

.af-status-in-transit {
	background: #FEF3C7;
	color: #92400E;
}

.af-status-out-for-delivery {
	background: #DBEAFE;
	color: #1E40AF;
}

.af-status-delivered {
	background: #D1FAE5;
	color: #065F46;
}

/* Visual Stepper / Progress Bar */
.af-track-stepper {
	padding: var(--af-space-8, 32px) var(--af-space-6, 24px);
	border-bottom: 1px solid #F1F5F9;
}

.af-stepper-track {
	display: flex;
	justify-content: space-between;
	position: relative;
	max-width: 800px;
	margin: 0 auto;
}

.af-stepper-track::before {
	content: '';
	position: absolute;
	top: 20px;
	left: 30px;
	right: 30px;
	height: 4px;
	background: #E2E8F0;
	z-index: 1;
}

.af-stepper-progress-line {
	position: absolute;
	top: 20px;
	left: 30px;
	height: 4px;
	background: #10B981;
	z-index: 2;
	transition: width 0.5s ease;
}

.af-step-node {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	width: 100px;
}

.af-step-icon-wrap {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: #FFFFFF;
	border: 3px solid #CBD5E1;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	font-weight: 700;
	color: #64748B;
	margin-bottom: 8px;
	transition: all 0.3s;
}

.af-step-node.is-done .af-step-icon-wrap {
	background: #10B981;
	border-color: #10B981;
	color: #FFFFFF;
}

.af-step-node.is-active .af-step-icon-wrap {
	background: #FFFFFF;
	border-color: #DE2C27;
	color: #DE2C27;
	box-shadow: 0 0 0 4px rgba(222, 44, 39, 0.2);
}

.af-step-label {
	font-size: 12px;
	font-weight: 600;
	color: #475569;
	line-height: 1.3;
}

.af-step-node.is-active .af-step-label {
	color: #DE2C27;
	font-weight: 700;
}

.af-step-node.is-done .af-step-label {
	color: #0F172A;
}

.af-step-time {
	font-size: 11px;
	color: #94A3B8;
	margin-top: 2px;
}

/* Stepper Responsive on Mobile */
@media (max-width: 640px) {
	.af-stepper-track {
		flex-direction: column;
		gap: 20px;
	}
	.af-stepper-track::before,
	.af-stepper-progress-line {
		top: 20px;
		left: 20px;
		width: 4px;
		bottom: 20px;
		height: auto;
		right: auto;
	}
	.af-step-node {
		flex-direction: row;
		width: 100%;
		text-align: left;
		gap: 16px;
	}
}

/* Rider & Delivery PIN Card */
.af-delivery-agent-card {
	background: #F8FAFC;
	border: 1px dashed #CBD5E1;
	border-radius: 8px;
	padding: 16px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	margin: 20px;
}

.af-delivery-pin-box {
	background: #0A192F;
	color: #FFFFFF;
	padding: 8px 16px;
	border-radius: 6px;
	text-align: center;
}

.af-delivery-pin-val {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 4px;
	color: #F59E0B;
}

/* -------------------------------------------------------------------------
 * RETURNS & REFUNDS (Jumia Benchmarked 7-Day Experience)
 * ------------------------------------------------------------------------- */
.af-returns-pillars {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 16px;
	margin-bottom: var(--af-space-8, 32px);
}

.af-return-pillar-card {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	padding: 20px;
	text-align: center;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
	transition: transform 0.2s, box-shadow 0.2s;
}

.af-return-pillar-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.af-pillar-icon {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(222, 44, 39, 0.08);
	color: #DE2C27;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	margin-bottom: 12px;
}

.af-pillar-title {
	font-size: 16px;
	font-weight: 700;
	color: #0A192F;
	margin-bottom: 6px;
}

.af-pillar-desc {
	font-size: 13px;
	color: #64748B;
	line-height: 1.5;
}

/* 4-Step Return Process Cards */
.af-return-steps {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
	margin-bottom: 32px;
}

@media (min-width: 640px) {
	.af-return-steps {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.af-return-steps {
		grid-template-columns: repeat(4, 1fr);
	}
}

.af-return-step-card {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-top: 4px solid #DE2C27;
	border-radius: 8px;
	padding: 20px;
	position: relative;
}

.af-step-number-tag {
	position: absolute;
	top: -14px;
	right: 16px;
	background: #0A192F;
	color: #FFFFFF;
	font-size: 11px;
	font-weight: 800;
	padding: 3px 10px;
	border-radius: 9999px;
}

.af-step-card-title {
	font-size: 16px;
	font-weight: 700;
	color: #0A192F;
	margin-bottom: 8px;
}

.af-step-card-desc {
	font-size: 13px;
	color: #475569;
	line-height: 1.5;
}

/* Return Eligibility Table */
.af-eligibility-table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
	font-size: 14px;
}

.af-eligibility-table th {
	background-color: #0A192F;
	color: #FFFFFF;
	text-align: left;
	padding: 12px 16px;
	font-weight: 700;
}

.af-eligibility-table td {
	padding: 14px 16px;
	border-bottom: 1px solid #E2E8F0;
	color: #334155;
	vertical-align: top;
}

.af-eligibility-table tr:nth-child(even) {
	background-color: #F8FAFC;
}

.af-badge-yes {
	display: inline-block;
	background-color: #D1FAE5;
	color: #065F46;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 4px;
}

.af-badge-no {
	display: inline-block;
	background-color: #FEE2E2;
	color: #991B1B;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 4px;
}

/* -------------------------------------------------------------------------
 * ACCORDION SYSTEM (FAQs, Policy Toggles)
 * ------------------------------------------------------------------------- */
.af-faq-group {
	margin-bottom: 24px;
}

.af-faq-item {
	border: 1px solid #E2E8F0;
	border-radius: 8px;
	margin-bottom: 10px;
	background: #FFFFFF;
	overflow: hidden;
}

.af-faq-question {
	width: 100%;
	text-align: left;
	background: none;
	border: none;
	padding: 16px 20px;
	font-size: 16px;
	font-weight: 600;
	color: #0A192F;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	transition: background-color 0.2s;
}

.af-faq-question:hover {
	background-color: #F8FAFC;
}

.af-faq-icon {
	font-size: 18px;
	transition: transform 0.2s ease;
	color: #64748B;
}

.af-faq-item.is-open .af-faq-icon {
	transform: rotate(180deg);
	color: #DE2C27;
}

.af-faq-answer {
	padding: 0 20px 16px;
	font-size: 14px;
	line-height: 1.6;
	color: #475569;
	display: none;
}

.af-faq-item.is-open .af-faq-answer {
	display: block;
}

/* -------------------------------------------------------------------------
 * CONTACT US & HELPLINE CHANNELS
 * ------------------------------------------------------------------------- */
.af-channels-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	margin-bottom: 32px;
}

.af-channel-card {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	padding: 24px;
	text-align: center;
	transition: all 0.2s;
}

.af-channel-card:hover {
	border-color: #DE2C27;
	box-shadow: 0 4px 12px rgba(222, 44, 39, 0.08);
}

.af-channel-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #F1F5F9;
	color: #0A192F;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	margin-bottom: 12px;
}

.af-channel-title {
	font-size: 16px;
	font-weight: 700;
	color: #0A192F;
	margin-bottom: 4px;
}

.af-channel-info {
	font-size: 14px;
	font-weight: 600;
	color: #DE2C27;
	margin-bottom: 4px;
}

.af-channel-desc {
	font-size: 12px;
	color: #64748B;
}

/* -------------------------------------------------------------------------
 * SELL ON AFOOMART (High Conversion Landing)
 * ------------------------------------------------------------------------- */
.af-seller-perks {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
	margin: 28px 0;
}

.af-seller-perk-card {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 10px;
	padding: 24px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.af-seller-perk-title {
	font-size: 17px;
	font-weight: 700;
	color: #0A192F;
	margin-bottom: 8px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.af-seller-cta-banner {
	background: linear-gradient(135deg, #DE2C27 0%, #B91C1C 100%);
	color: #FFFFFF;
	border-radius: 12px;
	padding: 36px 24px;
	text-align: center;
	margin-top: 36px;
}

.af-seller-cta-title {
	font-size: 26px;
	font-weight: 800;
	color: #FFFFFF;
	margin-bottom: 10px;
}

.af-seller-cta-btn {
	display: inline-block;
	background: #FFFFFF;
	color: #DE2C27;
	font-size: 16px;
	font-weight: 700;
	padding: 12px 32px;
	border-radius: 8px;
	text-decoration: none;
	margin-top: 16px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	transition: transform 0.2s;
}

.af-seller-cta-btn:hover {
	transform: scale(1.03);
	color: #991B1B;
}

/* Print optimization for legal & terms pages */
@media print {
	.af-main-header,
	.af-mobile-header,
	.site-footer,
	.af-info-sidebar,
	.af-info-hero-badge,
	.af-breadcrumbs,
	#af-cart-drawer {
		display: none !important;
	}

	.af-info-page {
		padding: 0 !important;
		background: #FFFFFF !important;
	}

	.af-info-grid-2col {
		display: block !important;
	}

	.af-info-card {
		box-shadow: none !important;
		border: 1px solid #CCCCCC !important;
		page-break-inside: avoid;
		margin-bottom: 20px !important;
	}

	.af-info-hero {
		background: none !important;
		color: #000000 !important;
		box-shadow: none !important;
		padding: 10px 0 !important;
		text-align: left !important;
	}

	.af-info-hero-title,
	.af-info-hero-desc {
		color: #000000 !important;
	}
}
