/**
 * FPP User Information — Member Dashboard (matches FPP profile mock).
 */

.fpp-auth-page .fpp-user-profile {
	--fpp-navy: #0c0c30;
	--fpp-gold: #c9a84c;
	--fpp-tab-inactive: #0c0c30;
	--fpp-tab-inactive-hover: #1a1a42;
	--fpp-tab-active: #ffffff;
	--fpp-tab-active-hover: #f4f4f8;
	--fpp-btn-save: #0c0c30;
	--fpp-btn-save-hover: #1a1a42;
	--fpp-text: #1a1a2e;
	--fpp-muted: rgba(26, 26, 46, 0.55);
	--fpp-border: #e8e8ee;
	margin-bottom: 3.5rem;
	padding-bottom: 3rem;
	border-bottom: 1px solid var(--fpp-border);
}

.fpp-auth-page .fpp-user-profile .fpp-section-label {
	margin-bottom: 6px;
}

.fpp-auth-page .fpp-user-profile .fpp-section-title {
	margin: 0 0 10px;
	font-size: 28px;
	color: var(--fpp-text);
}

.fpp-user-profile__head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1.5rem;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
}

.fpp-user-profile__lede {
	margin: 0;
	font-size: 14px;
	color: var(--fpp-muted);
	line-height: 1.6;
	max-width: 36rem;
	font-family: 'IBM Plex Sans', sans-serif;
}

/* Progress — top right beige box */
.fpp-user-profile__status {
	flex-shrink: 0;
	min-width: 120px;
	padding: 12px 16px;
	text-align: center;
	background: #f3efe6;
	border: 1px solid rgba(201, 168, 76, 0.35);
	border-radius: 6px;
}

.fpp-user-profile__status-pill {
	display: block;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--fpp-navy);
	font-family: 'IBM Plex Sans', sans-serif;
}

.fpp-user-profile__status-label {
	display: block;
	margin-top: 6px;
	font-size: 11px;
	line-height: 1.35;
	color: var(--fpp-muted);
	font-family: 'IBM Plex Sans', sans-serif;
}

.fpp-user-profile__feedback {
	margin: 0 0 1rem;
	padding: 0.65rem 0.9rem;
	border-radius: 6px;
	font-size: 0.88rem;
	font-family: 'IBM Plex Sans', sans-serif;
}

.fpp-user-profile__feedback--ok {
	background: rgba(34, 120, 80, 0.08);
	color: #1a5c3e;
	border: 1px solid rgba(34, 120, 80, 0.2);
}

.fpp-user-profile__feedback--error {
	background: rgba(180, 40, 40, 0.06);
	color: #8b2020;
	border: 1px solid rgba(180, 40, 40, 0.2);
}

/* Filofax tab bar */
.fpp-user-profile__filofax {
	margin-top: 0.25rem;
}

.fpp-user-profile__tabs {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
	border-radius: 6px 6px 0 0;
	overflow: hidden;
}

/* Tabs — !important beats Elementor/theme button :focus styles */
.fpp-auth-page .fpp-user-profile__tab,
.fpp-auth-page button.fpp-user-profile__tab {
	appearance: none;
	-webkit-appearance: none;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 8px;
	width: 100%;
	margin: 0;
	padding: 14px 16px;
	border: none;
	border-top: 3px solid transparent;
	border-right: 1px solid rgba(255, 255, 255, 0.2);
	background: var(--fpp-tab-inactive) !important;
	background-color: var(--fpp-tab-inactive) !important;
	color: #ffffff !important;
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
	box-shadow: none !important;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.fpp-user-profile__tab:first-child {
	border-radius: 6px 0 0 0;
}

.fpp-user-profile__tab:last-child {
	border-right: none;
	border-radius: 0 6px 0 0;
}

.fpp-auth-page .fpp-user-profile__tab .fpp-user-profile__tab-arrow {
	color: var(--fpp-gold) !important;
	font-weight: 700;
	flex-shrink: 0;
}

/* Inactive (class + aria for redundancy) */
.fpp-auth-page .fpp-user-profile__tab:not(.is-active):not([aria-selected="true"]),
.fpp-auth-page .fpp-user-profile__tab:not(.is-active):not([aria-selected="true"]):hover,
.fpp-auth-page .fpp-user-profile__tab:not(.is-active):not([aria-selected="true"]):focus,
.fpp-auth-page .fpp-user-profile__tab:not(.is-active):not([aria-selected="true"]):focus-visible,
.fpp-auth-page .fpp-user-profile__tab:not(.is-active):not([aria-selected="true"]):active {
	background: var(--fpp-tab-inactive) !important;
	background-color: var(--fpp-tab-inactive) !important;
	color: #ffffff !important;
}

.fpp-auth-page .fpp-user-profile__tab:not(.is-active):not([aria-selected="true"]):hover {
	background: var(--fpp-tab-inactive-hover) !important;
	background-color: var(--fpp-tab-inactive-hover) !important;
}

.fpp-auth-page .fpp-user-profile__tab:not(.is-active) .fpp-user-profile__tab-label,
.fpp-auth-page .fpp-user-profile__tab:not(.is-active):focus .fpp-user-profile__tab-label,
.fpp-auth-page .fpp-user-profile__tab:not(.is-active):active .fpp-user-profile__tab-label {
	color: #ffffff !important;
}

.fpp-auth-page .fpp-user-profile__tab:not(.is-active):focus-visible {
	outline: 2px solid var(--fpp-gold);
	outline-offset: -2px;
}

/* Active — white + gold top (all pseudo-states) */
.fpp-auth-page .fpp-user-profile__tab.is-active,
.fpp-auth-page .fpp-user-profile__tab.is-active[aria-selected="true"],
.fpp-auth-page .fpp-user-profile__tab.is-active:hover,
.fpp-auth-page .fpp-user-profile__tab.is-active:focus,
.fpp-auth-page .fpp-user-profile__tab.is-active:focus-visible,
.fpp-auth-page .fpp-user-profile__tab.is-active:active {
	background: var(--fpp-tab-active) !important;
	background-color: var(--fpp-tab-active) !important;
	color: var(--fpp-navy) !important;
	border-top-color: var(--fpp-gold) !important;
	border-right-color: var(--fpp-border) !important;
	padding-top: 14px;
	box-shadow: none !important;
	z-index: 1;
}

.fpp-auth-page .fpp-user-profile__tab.is-active .fpp-user-profile__tab-arrow,
.fpp-auth-page .fpp-user-profile__tab.is-active:focus .fpp-user-profile__tab-arrow,
.fpp-auth-page .fpp-user-profile__tab.is-active:active .fpp-user-profile__tab-arrow {
	color: var(--fpp-gold) !important;
}

.fpp-auth-page .fpp-user-profile__tab.is-active .fpp-user-profile__tab-label,
.fpp-auth-page .fpp-user-profile__tab.is-active:hover .fpp-user-profile__tab-label,
.fpp-auth-page .fpp-user-profile__tab.is-active:focus .fpp-user-profile__tab-label,
.fpp-auth-page .fpp-user-profile__tab.is-active:active .fpp-user-profile__tab-label {
	color: var(--fpp-navy) !important;
}

.fpp-auth-page .fpp-user-profile__tab.is-active:hover {
	background: var(--fpp-tab-active-hover) !important;
	background-color: var(--fpp-tab-active-hover) !important;
}

/* Panel body */
.fpp-user-profile__panels {
	background: #ffffff;
	border: 1px solid var(--fpp-border);
	border-top: none;
	border-radius: 0 0 8px 8px;
	padding: 28px 24px 8px;
}

.fpp-user-profile__panel {
	display: none;
}

.fpp-user-profile__panel.is-active {
	display: block;
}

.fpp-user-profile__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px 24px;
}

.fpp-user-profile__field--full {
	grid-column: 1 / -1;
}

/* Direct field labels only — not utility checkbox labels */
.fpp-user-profile__field > label,
.fpp-user-profile__field > legend {
	display: block;
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--fpp-muted);
	margin-bottom: 8px;
}

.fpp-req {
	color: #c0392b;
	font-weight: 700;
}

.fpp-user-profile__field input,
.fpp-user-profile__field select,
.fpp-user-profile__field textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 46px;
	padding: 12px 14px;
	border: 1px solid #d8d8e0;
	border-radius: 5px;
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: 15px;
	color: var(--fpp-text);
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fpp-user-profile__field input:focus,
.fpp-user-profile__field select:focus,
.fpp-user-profile__field textarea:focus {
	outline: none;
	border-color: rgba(201, 168, 76, 0.65);
	box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15);
}

.fpp-user-profile__field select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%231a1a2e' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}

.fpp-user-profile__field input[type="date"] {
	padding-right: 14px;
}

.fpp-user-profile__field textarea {
	resize: vertical;
	min-height: 5.5rem;
}

.fpp-user-profile__branch {
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px dashed var(--fpp-border);
}

.fpp-user-profile__branch-title {
	margin: 0 0 1rem;
	font-family: 'Vollkorn', serif;
	font-size: 1.15rem;
	color: var(--fpp-navy);
}

/* Utilities included fieldset */
fieldset.fpp-user-profile__field {
	border: 1px solid #d8d8e0;
	border-radius: 5px;
	padding: 1.15rem 1.25rem 1.2rem;
	margin: 0;
	min-width: 0;
}

fieldset.fpp-user-profile__field > legend {
	padding: 0 6px;
	margin: 0 0 0.75rem;
	float: none;
	width: auto;
}

.fpp-user-profile__checks {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px 20px;
	align-items: center;
	margin: 0;
}

.fpp-user-profile__check {
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.55rem;
	margin: 0;
	padding: 0;
	font-size: 13px;
	font-weight: 500;
	text-transform: none;
	letter-spacing: 0;
	line-height: 1.25;
	color: var(--fpp-text);
	cursor: pointer;
	font-family: 'IBM Plex Sans', sans-serif;
}

.fpp-user-profile__check span {
	display: inline-block;
	line-height: 1.25;
	padding-top: 1px;
}

.fpp-user-profile__check input[type="checkbox"] {
	width: 18px;
	height: 18px;
	min-height: 0;
	margin: 0;
	flex: 0 0 18px;
	accent-color: var(--fpp-navy);
	vertical-align: middle;
	cursor: pointer;
}

@media (max-width: 720px) {
	.fpp-user-profile__checks {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 420px) {
	.fpp-user-profile__checks {
		grid-template-columns: 1fr;
	}
}

.fpp-user-profile__actions {
	margin-top: 0;
	padding: 1.25rem 24px 1.5rem;
	border-top: 1px solid var(--fpp-border);
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 1.5rem;
}

.fpp-auth-page .fpp-user-profile__save,
.fpp-auth-page button.fpp-user-profile__save,
.fpp-auth-page .fpp-user-profile__save:hover,
.fpp-auth-page button.fpp-user-profile__save:hover,
.fpp-auth-page .fpp-user-profile__save:focus,
.fpp-auth-page button.fpp-user-profile__save:focus,
.fpp-auth-page .fpp-user-profile__save:active,
.fpp-auth-page button.fpp-user-profile__save:active {
	background: var(--fpp-btn-save) !important;
	background-color: var(--fpp-btn-save) !important;
	color: #ffffff !important;
	border: none !important;
	padding: 14px 32px;
	border-radius: 6px;
	font-family: 'IBM Plex Sans', sans-serif;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: none !important;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.2s ease, transform 0.15s ease;
}

.fpp-auth-page .fpp-user-profile__save:hover,
.fpp-auth-page button.fpp-user-profile__save:hover {
	background: var(--fpp-btn-save-hover) !important;
	background-color: var(--fpp-btn-save-hover) !important;
	transform: translateY(-1px);
}

.fpp-auth-page .fpp-user-profile__save:focus-visible,
.fpp-auth-page button.fpp-user-profile__save:focus-visible {
	outline: 2px solid var(--fpp-gold) !important;
	outline-offset: 3px;
}

.fpp-auth-page .fpp-user-profile__save:disabled,
.fpp-auth-page button.fpp-user-profile__save:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	transform: none !important;
}

.fpp-user-profile__hint {
	margin: 0;
	padding: 0;
	font-size: 12px;
	color: var(--fpp-muted);
	font-family: 'IBM Plex Sans', sans-serif;
	line-height: 1.5;
	flex: 1 1 16rem;
	align-self: center;
}

@media (max-width: 600px) {
	.fpp-user-profile__actions {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.65rem;
	}

	.fpp-user-profile__hint {
		flex: 1 1 auto;
	}
}

@media (max-width: 900px) {
	.fpp-user-profile__tabs {
		grid-template-columns: repeat(2, 1fr);
	}

	.fpp-user-profile__tab {
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.fpp-user-profile__tab:nth-child(2n) {
		border-right: none;
	}

	.fpp-user-profile__tab.is-active {
		border-top-color: var(--fpp-gold);
	}

	.fpp-user-profile__grid {
		grid-template-columns: 1fr;
	}

	.fpp-user-profile__panels {
		padding: 20px 16px 4px;
	}
}

@media (max-width: 520px) {
	.fpp-user-profile__tabs {
		grid-template-columns: 1fr;
	}

	.fpp-user-profile__tab {
		border-right: none;
	}
}
