/* Pepteon Academy Chrome — AffiliateWP form styling + cross-links
   Matches the homepage palette: cream #F4F1EA, navy #15212E, teal #0C6675. */

/* Warm cream canvas on themed pages (affiliate / login / register) */
body.page .site-main {
	background: #F4F1EA;
	min-height: 60vh;
	padding: 8px 16px 48px;
}

/* ---------------- AffiliateWP forms as a Pepteon card ---------------- */
.affwp-form {
	max-width: 560px;
	margin: 56px auto 20px;
	background: #ffffff;
	border: 1px solid #E5DFD3;
	border-radius: 16px;
	padding: 40px 40px 36px;
	box-shadow: 0 24px 60px -34px rgba(21, 33, 46, .4);
	font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
}

.affwp-form fieldset {
	border: 0;
	margin: 0;
	padding: 0;
	min-width: 0;
}

.affwp-form legend {
	display: block;
	width: 100%;
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 700;
	color: #15212E;
	padding: 0;
	margin: 0 0 22px;
}

.affwp-form p {
	margin: 0 0 18px;
}

.affwp-field-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #15212E;
	margin-bottom: 6px;
	letter-spacing: .005em;
}

.affwp-field-label .required {
	color: #0C6675;
	font-weight: 600;
}

.affwp-form input[type="text"],
.affwp-form input[type="email"],
.affwp-form input[type="url"],
.affwp-form input[type="password"],
.affwp-form input[type="number"],
.affwp-form textarea,
.affwp-form select {
	width: 100%;
	box-sizing: border-box;
	padding: 11px 14px;
	font-size: 15px;
	color: #15212E;
	background: #FBFAF6;
	border: 1px solid #D9D2C4;
	border-radius: 8px;
	font-family: inherit;
	transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.affwp-form textarea {
	min-height: 110px;
	resize: vertical;
}

.affwp-form input:focus,
.affwp-form textarea:focus,
.affwp-form select:focus {
	outline: none;
	border-color: #0C6675;
	box-shadow: 0 0 0 3px rgba(12, 102, 117, .15);
	background: #ffffff;
}

.affwp-form input:disabled {
	background: #F1EEE7;
	color: #8a836f;
	cursor: not-allowed;
}

.affwp-form .g-recaptcha {
	margin: 4px 0 18px;
}

/* Password show/hide toggle (injected by chrome.js) */
.pa-pass-wrap {
	position: relative;
	display: block;
}

.pa-pass-wrap input {
	padding-right: 46px !important;
}

.pa-pass-toggle {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: 0;
	margin: 0;
	padding: 6px;
	cursor: pointer;
	line-height: 0;
	color: #5B6671;
	display: flex;
	align-items: center;
	border-radius: 6px;
}

.pa-pass-toggle:hover {
	color: #0C6675;
}

.pa-pass-toggle:focus-visible {
	outline: 2px solid #0C6675;
	outline-offset: 1px;
}

.pa-pass-toggle svg {
	width: 20px;
	height: 20px;
	display: block;
}

.pa-pass-toggle .pa-eye-off {
	display: none;
}

.pa-pass-toggle.is-on .pa-eye-on {
	display: none;
}

.pa-pass-toggle.is-on .pa-eye-off {
	display: block;
}

.affwp-form input[type="submit"],
.affwp-form .button,
.affwp-form button[type="submit"] {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	background: #0C6675;
	color: #ffffff;
	border: 0;
	cursor: pointer;
	font-family: inherit;
	font-size: 15.5px;
	font-weight: 600;
	padding: 13px 26px;
	border-radius: 8px;
	margin-top: 4px;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.affwp-form input[type="submit"]:hover,
.affwp-form .button:hover,
.affwp-form button[type="submit"]:hover {
	background: #0a5462;
	transform: translateY(-1px);
	box-shadow: 0 14px 26px -14px rgba(12, 102, 117, .65);
}

/* AffiliateWP notices / errors */
.affwp-errors,
.affwp-notices {
	max-width: 560px;
	margin: 40px auto -8px;
	font-family: "IBM Plex Sans", system-ui, sans-serif;
	font-size: 14px;
}

/* Login <-> registration cross-link (appended by the plugin) */
.pa-aff-alt {
	max-width: 560px;
	margin: 0 auto 64px;
	text-align: center;
	font-family: "IBM Plex Sans", system-ui, sans-serif;
	font-size: 14.5px;
	color: #5B6671;
}

.pa-aff-alt a {
	color: #0C6675;
	font-weight: 600;
	text-decoration: none;
}

.pa-aff-alt a:hover {
	text-decoration: underline;
}

/* Affiliate dashboard basic polish */
.affwp-affiliate-dashboard {
	max-width: 1040px;
	margin: 48px auto;
	font-family: "IBM Plex Sans", system-ui, sans-serif;
}

/* ---------- AffiliateWP notices (pending approval, unauthorized, success) ---------- */
.affwp-notice,
p.affwp-notice,
.affwp-login-required {
	max-width: 640px;
	margin: 56px auto;
	background: #ffffff;
	border: 1px solid #E5DFD3;
	border-left: 4px solid #0C6675;
	border-radius: 12px;
	padding: 22px 26px;
	color: #15212E;
	font-family: "IBM Plex Sans", system-ui, sans-serif;
	font-size: 15.5px;
	line-height: 1.6;
	box-shadow: 0 18px 50px -30px rgba(21, 33, 46, .38);
}

.affwp-notice a,
.affwp-login-required a {
	color: #0C6675;
	font-weight: 600;
	text-decoration: none;
}

.affwp-notice a:hover {
	text-decoration: underline;
}

/* ---------- Account page: "Your plan" bar ([pa_account_plan]) ---------- */
.pa-acct-bar {
	max-width: 1080px;
	margin: 40px auto 8px;
	background: #ffffff;
	border: 1px solid #E5DFD3;
	border-radius: 14px;
	padding: 20px 26px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	box-shadow: 0 14px 40px -30px rgba(21, 33, 46, .4);
	font-family: "IBM Plex Sans", system-ui, sans-serif;
}

.pa-acct-plan {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.pa-acct-plan__label {
	font-family: "IBM Plex Mono", monospace;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: #736B5A;
}

.pa-acct-plan__value {
	font-family: "Source Serif 4", Georgia, serif;
	font-size: 22px;
	font-weight: 700;
	color: #15212E;
}

.pa-acct-btn {
	background: #0C6675;
	color: #ffffff !important;
	text-decoration: none;
	font-size: 14.5px;
	font-weight: 600;
	padding: 11px 20px;
	border-radius: 8px;
	white-space: nowrap;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.pa-acct-btn:hover {
	background: #0a5462;
	transform: translateY(-1px);
	box-shadow: 0 12px 24px -12px rgba(12, 102, 117, .6);
	text-decoration: none;
}

@media (max-width: 620px) {
	.pa-acct-bar { margin: 24px 16px 8px; }
}

/* ---------- LearnDash profile / account page — Pepteon brand ---------- */
.learndash-wrapper {
	--ld-primary-color: #0C6675;
	--ld-color-primary: #0C6675;
	--ld-secondary-color: #0a5462;
	font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif !important;
}

body.page .learndash-wrapper {
	max-width: 1080px;
	margin: 40px auto 64px;
}

.learndash-wrapper h1,
.learndash-wrapper h2,
.learndash-wrapper h3,
.learndash-wrapper .ld-profile__heading,
.learndash-wrapper .ld-section-heading {
	font-family: "Source Serif 4", Georgia, serif !important;
	color: #15212E !important;
}

.learndash-wrapper .ld-profile-stats .ld-profile-stat-value,
.learndash-wrapper .ld-profile-summary .ld-profile-stat-value {
	font-family: "Source Serif 4", Georgia, serif !important;
	font-size: 30px !important;
	color: #0C6675 !important;
}

.learndash-wrapper .ld-item-list-item,
.learndash-wrapper .ld-table-list-item,
.learndash-wrapper .ld-course-list-items .ld-item-list-item {
	background: #ffffff !important;
	border: 1px solid #E5DFD3 !important;
	border-radius: 12px !important;
	margin-bottom: 12px !important;
	box-shadow: 0 10px 26px -22px rgba(21, 33, 46, .5) !important;
	transition: transform .18s ease, box-shadow .18s ease;
}

.learndash-wrapper .ld-item-list-item:hover,
.learndash-wrapper .ld-table-list-item:hover {
	transform: translateY(-2px);
	box-shadow: 0 16px 32px -20px rgba(12, 102, 117, .45) !important;
}

.learndash-wrapper .ld-primary-background,
.learndash-wrapper .ld-expand-button,
.learndash-wrapper .btn-join,
.learndash-wrapper .learndash_mark_complete_button,
.learndash-wrapper .ld-button:not(.ld-button-transparent):not(.ld-button-alternate) {
	background-color: #0C6675 !important;
	border-color: #0C6675 !important;
	color: #ffffff !important;
}

.learndash-wrapper .ld-primary-background:hover,
.learndash-wrapper .ld-expand-button:hover,
.learndash-wrapper .ld-button:not(.ld-button-transparent):not(.ld-button-alternate):hover {
	background-color: #0a5462 !important;
	border-color: #0a5462 !important;
}

.learndash-wrapper .ld-primary-color,
.learndash-wrapper a:not(.ld-button) {
	color: #0C6675 !important;
}

.learndash-wrapper .ld-progress-bar .ld-progress-bar-percentage {
	background-color: #0C6675 !important;
}

@media (max-width: 620px) {
	.affwp-form {
		margin: 28px auto 16px;
		padding: 28px 22px 26px;
		border-radius: 14px;
	}
	.affwp-form legend {
		font-size: 22px;
	}
}
