.apf-form-wrap {
	max-width: 480px;
	margin: 0 auto;
}

.apf-notice {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 16px;
	font-size: 14px;
}
.apf-notice-success { background: #eafaf0; color: #196f3d; border: 1px solid #a9dfbf; }
.apf-notice-error   { background: #fdedec; color: #922b21; border: 1px solid #f5b7b1; }
.apf-notice-info    { background: #eef4fb; color: #1e4e7a; border: 1px solid #b8d4ef; font-size: 14px; }

.apf-field { margin-bottom: 16px; }
.apf-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.apf-field input[type="text"],
.apf-field input[type="email"],
.apf-field select,
.apf-field textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d0d5dd;
	border-radius: 6px;
	font-size: 15px;
}

.apf-button {
	display: inline-block;
	padding: 10px 20px;
	border: none;
	border-radius: 6px;
	background: #1a5f3c;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}
.apf-button:hover { background: #164f32; }

.apf-login-links { margin-top: 12px; text-align: center; }

/* Dashboard */
.apf-dashboard { max-width: 900px; margin: 0 auto; }
.apf-dashboard-header { margin-bottom: 20px; }
.apf-partner-type { color: #667085; }

.apf-referral-box {
	background: #f7f9f8;
	border: 1px solid #e4e7ec;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 24px;
}
.apf-referral-link-row { display: flex; gap: 8px; margin-top: 6px; }
.apf-referral-link-row input {
	flex: 1;
	padding: 8px 10px;
	border: 1px solid #d0d5dd;
	border-radius: 6px;
	font-family: monospace;
}
.apf-hint { color: #667085; font-size: 13px; margin: 8px 0 0; }

.apf-totals { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.apf-total-card {
	flex: 1;
	min-width: 160px;
	background: #fff;
	border: 1px solid #e4e7ec;
	border-radius: 8px;
	padding: 16px;
}
.apf-total-label { display: block; font-size: 13px; color: #667085; }
.apf-total-value { display: block; font-size: 22px; font-weight: 700; margin-top: 4px; }

.apf-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.apf-table th, .apf-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eee; font-size: 14px; }

.apf-status { padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.apf-status-inquiry   { background: #fef3c7; color: #92400e; }
.apf-status-confirmed { background: #d1fae5; color: #065f46; }
.apf-status-completed { background: #dbeafe; color: #1e40af; }
.apf-status-cancelled { background: #fee2e2; color: #991b1b; }

.apf-logout { margin-top: 24px; }

/* ============================================================
   Partner landing page ([apf_partner_page])
   Palette: Dusk Indigo #16233a / Savanna Gold #d9a441 /
   Warm Ivory #f6f1e4 / Ink #201c18
   Type: Bitter (display) + Manrope (body)
   ============================================================ */

.apf-landing {
	max-width: 1100px;
	margin: 0 auto;
	font-family: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
	color: #201c18;
}
.apf-landing h1, .apf-landing h2, .apf-landing h3, .apf-landing h4 {
	font-family: 'Bitter', Georgia, 'Times New Roman', serif;
}

.apf-hero {
	background: linear-gradient(160deg, #16233a 0%, #1d3050 100%);
	color: #f6f1e4;
	border-radius: 20px;
	padding: 72px 48px;
	text-align: center;
	margin-bottom: 56px;
}
.apf-hero-eyebrow {
	display: inline-block;
	font-weight: 700;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #d9a441;
	margin-bottom: 18px;
}
.apf-hero-title {
	font-size: clamp(32px, 5vw, 52px);
	line-height: 1.1;
	margin: 0 0 20px;
	font-weight: 700;
}
.apf-hero-sub {
	font-size: 17px;
	line-height: 1.6;
	max-width: 560px;
	margin: 0 auto 32px;
	color: #cfd6e4;
}
.apf-hero-cta {
	display: inline-block;
	background: #d9a441;
	color: #16233a;
	font-weight: 700;
	padding: 14px 32px;
	border-radius: 999px;
	text-decoration: none;
	transition: background .2s ease, transform .2s ease;
}
.apf-hero-cta:hover { background: #e8b65c; transform: translateY(-1px); }
.apf-hero-cta:focus-visible { outline: 2px solid #f6f1e4; outline-offset: 3px; }

.apf-benefits {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 64px;
}
.apf-benefit-card {
	background: #f6f1e4;
	border: 1px solid #e4dcc6;
	border-left: 4px solid #d9a441;
	border-radius: 10px;
	padding: 28px 24px;
}
.apf-benefit-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #16233a;
	color: #d9a441;
	font-weight: 700;
	font-size: 16px;
	margin-bottom: 16px;
}
.apf-benefit-card h3 { font-size: 18px; margin: 0 0 8px; }
.apf-benefit-card p { font-size: 14px; line-height: 1.6; color: #4a463f; margin: 0; }

.apf-how { margin-bottom: 64px; }
.apf-how h2 { text-align: center; font-size: 28px; margin-bottom: 40px; }
.apf-trail {
	position: relative;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}
.apf-trail-line {
	position: absolute;
	top: 9px;
	left: calc(100% / 6);
	right: calc(100% / 6);
	height: 0;
	border-top: 2px dashed #d9a441;
	z-index: 0;
}
.apf-waypoint { position: relative; z-index: 1; text-align: center; padding-top: 28px; }
.apf-waypoint-dot {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #d9a441;
	border: 4px solid #fff;
	box-shadow: 0 0 0 2px #d9a441;
}
.apf-waypoint h4 { font-size: 16px; margin: 4px 0 8px; }
.apf-waypoint p {
	font-size: 14px;
	line-height: 1.6;
	color: #4a463f;
	margin: 0 auto;
	max-width: 240px;
}

.apf-tabs-section {
	background: #16233a;
	border-radius: 20px;
	padding: 48px 24px;
	margin-bottom: 24px;
}
.apf-tabs-card {
	max-width: 480px;
	margin: 0 auto;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}
.apf-tabs-nav { display: flex; }
.apf-tab-btn {
	flex: 1;
	padding: 16px;
	border: none;
	background: #f0ece0;
	font-family: 'Manrope', sans-serif;
	font-weight: 700;
	font-size: 14px;
	color: #7c7566;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}
.apf-tab-btn.is-active { background: #fff; color: #16233a; }
.apf-tab-btn:focus-visible { outline: 2px solid #16233a; outline-offset: -2px; }
.apf-tab-panel { display: none; padding: 32px 28px; }
.apf-tab-panel.is-active { display: block; }
.apf-tab-panel .apf-form-wrap { max-width: none; }

@media (max-width: 720px) {
	.apf-benefits { grid-template-columns: 1fr; }
	.apf-trail { grid-template-columns: 1fr; gap: 28px; }
	.apf-trail-line { display: none; }
	.apf-hero { padding: 48px 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.apf-hero-cta { transition: none; }
}

/* ============================================================
   Header account link ([apf_account_link])
   Plain pill button — restyle via Custom CSS (Setup Guide) or
   Elementor's Advanced > CSS Classes on the Shortcode widget to
   match your header's exact colors.
   ============================================================ */

.apf-account-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	border: 1px solid currentColor;
	border-radius: 999px;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	color: inherit;
	white-space: nowrap;
}
.apf-account-icon { flex-shrink: 0; }
