/* ================================================================
   APOSTILLE PRICING WIDGET — Scoped Styles
   All rules are scoped to .apw-wrap to avoid conflicts with themes.
   Colors use CSS custom properties set inline per widget instance.
   ================================================================ */

/* ── Reset ── */
.apw-wrap *, .apw-wrap *::before, .apw-wrap *::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

/* ── Outer wrapper ── */
.apw-wrap {
	/* Fallback values — overridden by inline style per instance */
	--apw-blue:    #0B315E;
	--apw-blue-dk: #062040;
	--apw-blue-lt: rgba(11,49,94,0.07);
	--apw-blue-bd: rgba(11,49,94,0.14);
	--apw-gold:    #d29c34;
	--apw-gold-dk: #b8821c;
	--apw-gold-lt: #FEF9EC;
	--apw-gold-bd: rgba(210,156,52,0.28);
	--apw-bg:      #F4F7FC;
	--apw-border:  #E5E9F0;
	--apw-radius:  16px;
	--apw-text-h:  #0B315E;
	--apw-text-b:  #000;
	--apw-text-m:  #000;

	background: transparent;
	padding: 64px 24px 72px;
	width: 100%;
}

.apw-inner {
	max-width: 1160px;
	margin: 0 auto;
}

/* ═══════════════════════════════════════════
   SECTION HEADER
═══════════════════════════════════════════ */
.apw-header {
	text-align: center;
	margin-bottom: 52px;
}

.apw-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--apw-blue-lt);
	border: 1px solid var(--apw-blue-bd);
	color: var(--apw-blue);
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	padding: 6px 18px;
	border-radius: 100px;
	margin-bottom: 16px;
}
.apw-eyebrow::before {
	content: '';
	width: 7px;
	height: 7px;
	background: var(--apw-blue);
	border-radius: 50%;
	flex-shrink: 0;
}

.apw-title {
	font-size: clamp(26px, 3.5vw, 42px);
	font-weight: 800;
	color: var(--apw-text-h);
	letter-spacing: -0.5px;
	line-height: 1.15;
	margin-bottom: 14px;
}

.apw-subtitle {
	font-size: 16px;
	color: var(--apw-text-b);
	max-width: 520px;
	margin: 0 auto;
	line-height: 1.65;
}

/* ═══════════════════════════════════════════
   GRID
═══════════════════════════════════════════ */
.apw-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	align-items: stretch;
	padding-top: 20px;
}

/* ═══════════════════════════════════════════
   CARD BASE
═══════════════════════════════════════════ */
.apw-card {
	background: #ffffff;
	border-radius: var(--apw-radius);
	border: 2px solid var(--apw-border);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.apw-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 20px 60px rgba(11,49,94,0.12);
	border-color: var(--apw-blue);
}

/* Featured card */
.apw-card.featured {
	border-color: var(--apw-blue);
	box-shadow: 0 16px 56px rgba(11,49,94,0.18);
	transform: translateY(-20px);
}
.apw-card.featured:hover {
	transform: translateY(-28px);
	box-shadow: 0 24px 72px rgba(11,49,94,0.22);
}

/* Popular badge strip */
.apw-badge {
	background: linear-gradient(135deg, var(--apw-blue) 0%, var(--apw-blue-dk) 100%);
	color: #fff;
	text-align: center;
	padding: 9px 16px;
	font-size: 10.5px;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
}

/* ═══════════════════════════════════════════
   CARD HEAD
═══════════════════════════════════════════ */
.apw-card-head {
	padding: 26px 26px 20px;
	border-bottom: 1px solid var(--apw-border);
}

.apw-tier {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: var(--apw-text-m);
	margin-bottom: 8px;
}
.apw-tier-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}
.apw-tier--feat {
	color: var(--apw-blue);
}

.apw-card-title {
	font-size: 19px;
	font-weight: 800;
	color: var(--apw-text-h);
	line-height: 1.2;
	margin-bottom: 18px;
}

/* ── Price block — numeric ── */
.apw-price {
	display: flex;
	align-items: flex-end;
	gap: 3px;
	margin-bottom: 16px;
}
.apw-price-cur {
	font-size: 22px;
	font-weight: 800;
	color: var(--apw-text-h);
	line-height: 1;
	margin-bottom: 6px;
}
.apw-price-amt {
	font-size: 52px;
	font-weight: 700;
	color: var(--apw-text-h);
	line-height: 1;
}
.apw-feat-clr {
	color: var(--apw-blue) !important;
}
.apw-price-note {
	font-size: 11px;
	font-weight: 500;
	color: var(--apw-text-m);
	line-height: 1.3;
	margin-bottom: 6px;
	margin-left: 3px;
}

/* ── Price block — contact / text ── */
.apw-price--contact {
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
}
.apw-price-contact {
	font-size: 28px;
	font-weight: 900;
	color: var(--apw-gold);
	line-height: 1.1;
	letter-spacing: -0.5px;
}
.apw-price-sub {
	font-size: 12px;
	font-weight: 500;
	color: var(--apw-text-m);
	line-height: 1.3;
}

/* Meta rows */
.apw-meta {
	display: flex;
	flex-direction: column;
	gap: 7px;
	margin-top: 4px;
}
.apw-meta-item {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: 13px;
	font-weight: 500;
	color: var(--apw-text-b);
}
.apw-meta-icon {
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: var(--apw-blue-lt);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.apw-meta-item b {
	color: #111827;
	font-weight: 700;
}

/* ═══════════════════════════════════════════
   DESCRIPTION
═══════════════════════════════════════════ */
.apw-desc {
	padding: 18px 26px;
	border-bottom: 1px solid var(--apw-border);
	font-size: 13.5px;
	color: var(--apw-text-b);
	line-height: 1.65;
}

/* ═══════════════════════════════════════════
   FEATURES LIST
═══════════════════════════════════════════ */
.apw-features {
	padding: 20px 26px 24px;
	flex: 1;
}

.apw-features-title {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: var(--apw-text-m);
	margin-bottom: 16px;
}
.apw-features-title::before,
.apw-features-title::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--apw-border);
}

.apw-feat-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.apw-feat-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13.5px;
	font-weight: 500;
	color: #1F2937;
	line-height: 1.4;
}
.apw-feat-check {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--apw-blue-lt);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: 1px;
}

/* ═══════════════════════════════════════════
   CTA BUTTON
═══════════════════════════════════════════ */
.apw-cta {
	padding: 0 26px 26px;
}
.apw-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 15px 20px;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: 0.2px;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: all 0.22s ease;
	line-height: 1;
}
.apw-btn svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	stroke-width: 2.2;
	fill: none;
	flex-shrink: 0;
}

/* Outline (Standard) */
.apw-btn.outline {
	background: transparent;
	color: var(--apw-blue);
	border: 2px solid var(--apw-blue);
}
.apw-btn.outline:hover {
	background: var(--apw-blue);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(11,49,94,0.28);
}

/* Gold (Fast / Featured) */
.apw-btn.gold {
	background: linear-gradient(135deg, var(--apw-gold) 0%, var(--apw-gold-dk) 100%);
	color: #fff;
	box-shadow: 0 6px 22px rgba(210,156,52,0.38);
}
.apw-btn.gold:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(210,156,52,0.52);
}

/* Navy (Rush) */
.apw-btn.navy {
	background: linear-gradient(135deg, var(--apw-blue) 0%, var(--apw-blue-dk) 100%);
	color: #fff;
	box-shadow: 0 6px 22px rgba(11,49,94,0.32);
}
.apw-btn.navy:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 30px rgba(11,49,94,0.44);
}

/* Discount section button */
.apw-btn--disc {
	display: inline-flex;
	width: auto;
	margin-top: 24px;
	padding: 13px 24px;
	background: var(--apw-gold);
	color: #fff !important;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	gap: 8px;
	transition: all 0.22s ease;
	box-shadow: 0 4px 18px rgba(210,156,52,0.35);
}
.apw-btn--disc:hover {
	background: var(--apw-gold-dk);
	color: #fff;
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(210,156,52,0.48);
}
.apw-btn--disc svg {
	width: 16px;
	height: 16px;
	stroke: currentColor;
	stroke-width: 2.2;
	fill: none;
	flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   SHIPPING NOTE STRIP
═══════════════════════════════════════════ */
.apw-ship {
	background: var(--apw-gold-lt);
	border-top: 1px solid var(--apw-gold-bd);
	padding: 9px 26px;
	font-size: 11.5px;
	font-weight: 500;
	color: #92400E;
	display: flex;
	align-items: center;
	gap: 6px;
}

/* ═══════════════════════════════════════════
   TRUST ROW
═══════════════════════════════════════════ */
.apw-trust {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	margin-top: 44px;
	flex-wrap: wrap;
}
.apw-trust-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--apw-text-b);
}
.apw-trust-item svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}
.apw-trust-sep {
	width: 1px;
	height: 20px;
	background: var(--apw-border);
}

/* ═══════════════════════════════════════════
   MULTIPLE APOSTILLE DISCOUNT
═══════════════════════════════════════════ */
.apw-discount {
	margin-top: 48px;
	background: linear-gradient(135deg, var(--apw-blue) 0%, var(--apw-blue-dk) 100%);
	border-radius: var(--apw-radius);
	padding: 52px 48px;
	color: #fff;
	position: relative;
	overflow: hidden;
}
.apw-discount::before {
	content: '';
	position: absolute;
	top: -90px;
	right: -90px;
	width: 320px;
	height: 320px;
	background: rgba(255,255,255,0.04);
	border-radius: 50%;
	pointer-events: none;
}
.apw-discount::after {
	content: '';
	position: absolute;
	bottom: -70px;
	left: -50px;
	width: 240px;
	height: 240px;
	background: rgba(255,255,255,0.03);
	border-radius: 50%;
	pointer-events: none;
}
.apw-discount-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 52px;
	align-items: start;
	position: relative;
	z-index: 1;
}

/* Left column */
.apw-discount-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--apw-gold);
	color: #fff;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 5px 14px;
	border-radius: 100px;
	margin-bottom: 16px;
}
.apw-discount-title {
	font-size: clamp(22px, 2.5vw, 30px);
	font-weight: 800;
	color: #fff !important;
	line-height: 1.2;
	margin-bottom: 8px;
}
.apw-discount-subtitle {
	font-size: 16px;
	font-weight: 700;
	color: var(--apw-gold);
	margin-bottom: 18px;
}
.apw-discount-desc {
	font-size: 14px;
	line-height: 1.72;
	opacity: 0.87;
}

/* Right column */
.apw-discount-list {
	list-style: none;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 9px 16px;
	margin-bottom: 24px;
}
.apw-discount-list li {
	position: relative;
	padding-left: 20px;
	font-size: 13.5px;
	opacity: 0.9;
	line-height: 1.45;
}
.apw-discount-list li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: var(--apw-gold);
	font-weight: 700;
}

.apw-discount-price-box {
	background: rgba(255,255,255,0.1);
	border-radius: 12px;
	padding: 20px 24px;
	backdrop-filter: blur(4px);
	border: 1px solid rgba(255,255,255,0.12);
}
.apw-dp-row {
	font-size: 13.5px;
	margin-bottom: 9px;
	opacity: 0.88;
	line-height: 1.45;
}
.apw-dp-row:last-child { margin-bottom: 0; }
.apw-dp-row--hl {
	font-size: 16px;
	font-weight: 800;
	color: var(--apw-gold);
	opacity: 1;
	margin-bottom: 10px;
}

/* ═══════════════════════════════════════════
   PRICING NOTES
═══════════════════════════════════════════ */
.apw-notes {
	margin-top: 28px;
	background: #F8FAFC;
	border-radius: var(--apw-radius);
	padding: 36px 40px;
	border-left: 4px solid var(--apw-blue);
}
.apw-notes-title {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: var(--apw-blue);
	margin-bottom: 18px;
}
.apw-notes-content {
	font-size: 14px;
	color: var(--apw-text-b);
	line-height: 1.75;
	margin-bottom: 22px;
}
.apw-notes-content p   { margin: 0 0 10px; }
.apw-notes-content p:last-child { margin-bottom: 0; }

.apw-notes-fees-label {
	font-size: 13.5px;
	font-weight: 600;
	color: #000;
	margin-bottom: 14px;
}
.apw-notes-list {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 7px 20px;
	margin-bottom: 0;
}
.apw-notes-list li {
	position: relative;
	padding-left: 15px;
	font-size: 13px;
	color: var(--apw-text-b);
	line-height: 1.5;
}
.apw-notes-list li::before {
	content: '•';
	position: absolute;
	left: 0;
	color: var(--apw-blue);
	font-weight: 700;
}
.apw-notes-footer {
	font-size: 13px;
	color: #000;
	font-weight:700;
	font-style: italic;
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid #E5E9F0;
}

/* ═══════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 900px)
═══════════════════════════════════════════ */
@media (max-width: 900px) {
	.apw-wrap { padding: 48px 20px 60px; }

	/* Cards: 2 cols, rush spans full width */
	.apw-grid {
		grid-template-columns: 1fr 1fr;
		padding-top: 0;
		gap: 20px;
	}
	.apw-grid .apw-card:nth-child(3) { grid-column: 1 / -1; }
	.apw-card.featured { transform: none; }
	.apw-card:hover    { transform: translateY(-4px); }
	.apw-title         { font-size: clamp(24px, 4vw, 32px); }
	.apw-price-amt     { font-size: 44px; }

	/* Discount */
	.apw-discount          { padding: 36px 28px; }
	.apw-discount-inner    { grid-template-columns: 1fr; gap: 28px; }
	.apw-discount-list     { grid-template-columns: 1fr 1fr; }

	/* Notes */
	.apw-notes             { padding: 28px 24px; }
	.apw-notes-list        { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 600px)
═══════════════════════════════════════════ */
@media (max-width: 600px) {
	.apw-wrap { padding: 40px 14px 52px; }

	/* Single-column cards */
	.apw-grid { grid-template-columns: 1fr; gap: 16px; padding-top: 0; }
	.apw-grid .apw-card:nth-child(3) { grid-column: auto; }
	.apw-card.featured { transform: none; }

	.apw-card-head  { padding: 20px 18px 16px; }
	.apw-features   { padding: 16px 18px 20px; }
	.apw-desc       { padding: 14px 18px; }
	.apw-cta        { padding: 0 18px 18px; }
	.apw-ship       { padding: 9px 18px; }

	.apw-title      { font-size: 24px; }
	.apw-subtitle   { font-size: 14px; }
	.apw-price-amt  { font-size: 46px; }
	.apw-card-title { font-size: 17px; }

	.apw-trust     { gap: 14px; }
	.apw-trust-sep { display: none; }
	.apw-trust-item { font-size: 12px; }

	/* Discount */
	.apw-discount          { padding: 28px 18px; margin-top: 32px; }
	.apw-discount-list     { grid-template-columns: 1fr; }
		padding-top: 0;
	.apw-discount-price-box{ padding: 16px 18px; }

	/* Notes */
	.apw-notes             { padding: 22px 18px; }
	.apw-notes-list        { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — SMALL MOBILE (≤ 400px)
═══════════════════════════════════════════ */
@media (max-width: 400px) {
	.apw-notes-list { grid-template-columns: 1fr; }
		padding-top: 0;
}
