/* ─────────────────────────────────────────────
   Frontend Entry Methods — fem-style.css
   ───────────────────────────────────────────── */

:root {
	--fem-primary:      #1a1a2e;
	--fem-accent:       #e94560;
	--fem-accent-soft:  rgba(233, 69, 96, 0.08);
	--fem-surface:      #ffffff;
	--fem-border:       #e8eaf0;
	--fem-text:         #1a1a2e;
	--fem-text-muted:   #6b7280;
	--fem-notice-bg:    #fffbeb;
	--fem-notice-bdr:   #fcd34d;
	--fem-radius:       14px;
	--fem-radius-sm:    8px;
	--fem-shadow:       0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
	--fem-shadow-lg:    0 20px 60px -10px rgba(0,0,0,.22), 0 8px 20px -5px rgba(0,0,0,.12);
}

/* ── Toggle ── */
.fem-wrapper {
	margin: 24px 0;
}

.fem-toggle {
	display: flex;
	background: #eeeeee !important;
	border-radius: 6px;
	padding: 4px;
	gap: 4px;
	width: 100%;
	box-sizing: border-box;
	margin-bottom: 25px;
}

.fem-tab {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 20px;
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 700;
	color: #888 !important;
	background: transparent !important;
	cursor: pointer;
	transition: all .2s cubic-bezier(.4,0,.2,1);
	white-space: nowrap;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	font-size: 13px;
}

.fem-tab:hover {
	color: #ccc !important;
}

.fem-tab.is-active {
	background: #3fb2e5 !important;
	color: #fff !important;
	box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

/* postal tab accent on active */
.fem-tab[data-tab="postal"].is-active {
	color: #fff;
}

/* ── Modal Backdrop ── */
.fem-modal-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 99999;
	background: rgba(10, 10, 20, 0.65);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	align-items: center;
	justify-content: center;
	padding: 16px;
	opacity: 0;
	transition: opacity .25s ease;
}

.fem-modal-backdrop.is-open {
	display: flex;
}

.fem-modal-backdrop.is-visible {
	opacity: 1;
}

/* ── Modal Box ── */
.fem-modal-box {
	background: var(--fem-surface);
	border-radius: var(--fem-radius);
	box-shadow: var(--fem-shadow-lg);
	width: 100%;
	max-width: 620px;
	max-height: 88vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transform: translateY(24px) scale(.97);
	transition: transform .28s cubic-bezier(.34,1.3,.64,1), opacity .25s ease;
	opacity: 0;
}

.fem-modal-backdrop.is-visible .fem-modal-box {
	transform: translateY(0) scale(1);
	opacity: 1;
}

/* ── Modal Header ── */
.fem-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 28px 20px;
	border-bottom: 1px solid var(--fem-border);
	flex-shrink: 0;
	background: linear-gradient(135deg, #fafafa 0%, #f0f0f8 100%);
}

.fem-modal-header h2 {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 20px;
	font-weight: 800;
	color: var(--fem-text);
	margin: 0;
	letter-spacing: -0.03em;
}

.fem-modal-title-icon {
	font-size: 22px;
}

.fem-modal-close {
	background: none !important;
	border: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 16px;
	color: var(--fem-text-muted) !important;
	transition: background .15s, color .15s;
	flex-shrink: 0;
}

.fem-modal-close:hover {
	background: #f1f5f9 !important;
	color: var(--fem-text) !important;
}

/* ── Modal Body ── */
.fem-modal-body {
	overflow-y: auto;
	padding: 24px 28px;
	display: flex;
	flex-direction: column;
	gap: 24px;
	/* Subtle scrollbar */
	scrollbar-width: thin;
	scrollbar-color: #d1d5db transparent;
}

.fem-modal-body::-webkit-scrollbar { width: 5px; }
.fem-modal-body::-webkit-scrollbar-track { background: transparent; }
.fem-modal-body::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 99px; }

/* ── Section ── */
.fem-modal-section {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fem-modal-section-title {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--fem-text-muted);
	margin: 0;
}

/* ── Notices ── */
.fem-notices {
	background: var(--fem-notice-bg);
	border: 1px solid var(--fem-notice-bdr);
	border-radius: var(--fem-radius-sm);
	padding: 16px 20px;
}

.fem-notice-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 9px;
}

.fem-notice-list li {
	font-size: 13.5px;
	color: #92400e;
	padding-left: 20px;
	position: relative;
	line-height: 1.5;
}

.fem-notice-list li::before {
	content: '!';
	position: absolute;
	left: 0;
	top: 0;
	font-size: 11px;
	font-weight: 800;
	color: #d97706;
	width: 16px;
	height: 16px;
	background: #fde68a;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 16px;
	text-align: center;
}

/* ── Cards Grid ── */
.fem-cards-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.fem-card {
	display: flex;
	align-items: center;
	gap: 12px;
	background: #f8fafc;
	border: 1px solid var(--fem-border);
	border-radius: var(--fem-radius-sm);
	padding: 14px 16px;
	transition: border-color .15s, background .15s;
}

.fem-card:hover {
	border-color: #c7d2fe;
	background: #eef2ff;
}

.fem-card-icon {
	font-size: 22px;
	flex-shrink: 0;
}

.fem-card-title {
	font-size: 13px;
	font-weight: 600;
	color: var(--fem-text);
	line-height: 1.35;
}

/* ── Conditions ── */
.fem-conditions-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fem-conditions-list li {
	font-size: 13.5px;
	color: var(--fem-text);
	padding-left: 20px;
	position: relative;
	line-height: 1.5;
}

.fem-conditions-list li::before {
	content: '›';
	position: absolute;
	left: 0;
	top: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--fem-accent);
	line-height: 1.4;
}

.fem-closing-date {
	background: var(--fem-accent-soft);
	border: 1px solid rgba(233,69,96,.2);
	border-radius: var(--fem-radius-sm);
	padding: 10px 14px;
	margin-top: 4px;
	font-size: 13.5px !important;
	color: var(--fem-accent) !important;
}

.fem-closing-date::before {
	content: none !important;
}

/* ── Terms ── */
.fem-terms-box {
	background: #f8fafc;
	border: 1px solid var(--fem-border);
	border-radius: var(--fem-radius-sm);
	padding: 16px 18px;
	max-height: 200px;
	overflow-y: auto;
	font-size: 12.5px;
	color: var(--fem-text-muted);
	line-height: 1.7;
	scrollbar-width: thin;
	scrollbar-color: #d1d5db transparent;
}

.fem-terms-box::-webkit-scrollbar { width: 4px; }
.fem-terms-box::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 99px; }

/* ── Postal Address ── */
.fem-address-section {
	background: #f8fafc;
	border-radius: var(--fem-radius-sm);
	padding: 20px 22px;
}

.fem-address-section .fem-modal-section-title {
	color: #000000;
}

.fem-postal-address {
	font-style: normal;
	font-size: 15px;
	font-weight: 600;
	color: #000000;
	line-height: 1.8;
	letter-spacing: 0.01em;
}

/* ── Mobile ── */
@media (max-width: 480px) {
	.fem-tab {
		padding: 11px 10px;
		font-size: 12px;
	}

	.fem-modal-header {
		padding: 18px 20px 16px;
	}

	.fem-modal-body {
		padding: 20px;
	}

	.fem-modal-header h2 {
		font-size: 17px;
	}

	.fem-cards-grid {
		grid-template-columns: 1fr;
	}
}
