/*
 * Baseline styling for the account forms (login, register, edit-profile, recover-password).
 * On pages 376/450/457 the theme's own page-scoped rules (sivit-app.css, sivit-auth-late.css,
 * which use !important throughout) still take over, so this file mirrors the same visual
 * language (colors, radii, spacing) rather than fighting it — that's what keeps the Profilo
 * (edit-profile) page, which the theme never styled specifically, "in line" with the others.
 */

#wppb-form-style-1-wrapper .wppb-form-fields-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

#wppb-form-style-1-wrapper .wppb-form-field {
	margin: 0 0 16px;
}

#wppb-form-style-1-wrapper .wppb-form-field label {
	display: block;
	margin: 0 0 8px;
	color: #172337;
	font-size: 0.86rem;
	font-weight: 800;
}

#wppb-form-style-1-wrapper .wppb-form-text-field input,
#wppb-form-style-1-wrapper .wppb-form-text-field select {
	width: 100%;
	box-sizing: border-box;
	min-height: 52px;
	padding: 0 16px;
	border: 1px solid #d8e8e8;
	border-radius: 14px;
	background-color: #f8fbfb;
	color: #172337;
	font-size: 1rem;
	font-weight: 600;
	font-family: inherit;
	line-height: normal;
	transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

/*
 * Native <select> chrome (background, border-radius, dropdown arrow) is drawn by the OS
 * on most browsers and ignores plain "background"/"border-radius" unless appearance is
 * reset first — that's why it looked different from the text inputs. Swap in a flat
 * custom chevron so it matches.
 */
#wppb-form-style-1-wrapper .wppb-form-text-field select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1.5 7 7.5 13 1.5' fill='none' stroke='%2364727D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right 18px center;
	background-size: 13px 9px;
	padding-right: 44px;
	cursor: pointer;
}

#wppb-form-style-1-wrapper .wppb-form-text-field select::-ms-expand {
	display: none;
}

#wppb-form-style-1-wrapper .wppb-form-text-field input:focus,
#wppb-form-style-1-wrapper .wppb-form-text-field select:focus {
	border-color: #008c96;
	background-color: #fff;
	box-shadow: 0 0 0 4px rgba(0, 140, 150, 0.13);
	outline: 0;
}

#wppb-form-style-1-wrapper .ffc-wrapper {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px 18px;
	margin: 0 0 16px;
}

#wppb-form-style-1-wrapper .wppb-default-about-yourself-heading + .ffc-wrapper {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* Any field left without a pair (no field currently is, but this stays as a safety net)
   is wrapped in a solo .ffc-wrapper purely for consistent row spacing — force it back to
   a single full-width column. The extra "html body" ancestor is only there to
   out-specificity the theme's own
   "body.page-id-450 #wppb-register-user .ffc-wrapper { grid-template-columns: ... !important }"
   rule on the Registrati page, without having to edit that theme file. */
html body #wppb-register-user .ffc-wrapper.ffc-solo,
html body #wppb-form-style-1-wrapper .ffc-wrapper.ffc-solo {
	grid-template-columns: 1fr !important;
}

#wppb-form-style-1-wrapper .ffc-wrapper .wppb-form-field {
	margin: 0;
}

#wppb-form-style-1-wrapper .wppb-default-contact-info-heading,
#wppb-form-style-1-wrapper .wppb-default-about-yourself-heading {
	margin: 28px 0 4px;
	padding-bottom: 12px;
	border-bottom: 1px solid #d8e8e8;
}

#wppb-form-style-1-wrapper .wppb-default-contact-info-heading h4,
#wppb-form-style-1-wrapper .wppb-default-about-yourself-heading h4 {
	margin: 0;
	color: #172337;
	font-size: 1rem;
	font-weight: 900;
}

#wppb-form-style-1-wrapper .wppb-description-delimiter {
	display: block;
	margin-top: 4px;
	color: #64727d;
	font-size: 0.9rem;
	font-weight: 650;
}

#wppb-form-style-1-wrapper .wppb-form-error {
	display: block;
	margin-top: 6px;
	color: #9f1d1d;
	font-size: 0.9rem;
	font-weight: 700;
}

#wppb-form-style-1-wrapper p.wppb-error,
#wppb-form-style-1-wrapper p.wppb-warning,
#wppb-form-style-1-wrapper p.wppb-success {
	padding: 14px 18px;
	border-radius: 14px;
	font-weight: 700;
}

#wppb-form-style-1-wrapper p.wppb-error:empty,
#wppb-form-style-1-wrapper p.wppb-warning:empty,
#wppb-form-style-1-wrapper p.wppb-success:empty {
	display: none;
	padding: 0;
	margin: 0;
}

#wppb-form-style-1-wrapper p.wppb-error {
	background: #fdecea;
	color: #9f1d1d;
}

#wppb-form-style-1-wrapper p.wppb-warning {
	background: #fff6e5;
	color: #8a5a00;
}

#wppb-form-style-1-wrapper p.wppb-success {
	background: #e8f5e9;
	color: #1e5e20;
}

#wppb-form-style-1-wrapper .form-submit {
	margin-top: 22px;
}

#wppb-form-style-1-wrapper .form-submit input[type="submit"] {
	min-height: 54px;
	padding: 0 20px;
	border: 0;
	border-radius: 14px;
	background: #008c96;
	color: #fff;
	font-size: 1rem;
	font-weight: 800;
	cursor: pointer;
	transition: background 0.18s ease;
}

#wppb-form-style-1-wrapper .form-submit input[type="submit"]:hover,
#wppb-form-style-1-wrapper .form-submit input[type="submit"]:focus {
	background: #00767e;
}

/*
 * The theme (sivit-app.css) gives #register / #wppb-recover-password-button / the login
 * button their own drop shadow, but their shared ancestor on pages 376/450/457
 * ("article { overflow: hidden !important }") clips it, so it renders as a hard-edged
 * truncated shadow instead of a soft one. That theme rule has no !important, so it can be
 * neutralized here without editing the theme file itself.
 */
#register,
#wppb-recover-password-button,
.login-submit .button-primary {
	box-shadow: none !important;
}

#wppb-form-style-1-wrapper .login-register-lost-password {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 18px;
	padding-top: 16px;
	border-top: 1px solid #d8e8e8;
}

#wppb-form-style-1-wrapper .login-register-lost-password a,
#wppb-form-style-1-wrapper .sivit-auth-return-link {
	color: #008c96;
	font-weight: 800;
	text-decoration: none;
}

.wppb-change-password-form {
	margin-top: 32px;
}

.sivit-lang-toggle {
	display: flex;
	justify-content: center;
	gap: 2px;
	width: fit-content;
	margin: 20px auto 0;
	padding: 3px;
	background: #f1f5f6;
	border-radius: 999px;
}

.sivit-lang-toggle-option {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	border-radius: 999px;
	color: #64727d;
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.sivit-lang-toggle-option:hover {
	color: #008c96;
}

.sivit-lang-toggle-option.is-active {
	background: #008c96;
	color: #fff;
}

.sivit-lang-toggle-flag {
	font-size: 1rem;
	line-height: 1;
}

.sivit-profile-header {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 28px;
	padding-bottom: 24px;
	border-bottom: 1px solid #dceaea;
}

.sivit-profile-avatar {
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 3px 14px 0 rgba(30, 60, 120, 0.12);
	flex-shrink: 0;
}

.sivit-profile-header-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.sivit-profile-name {
	margin: 0;
	color: #172337;
	font-size: 1.3rem;
	font-weight: 800;
}

.sivit-profile-role {
	display: inline-block;
	width: fit-content;
	padding: 2px 12px;
	border-radius: 999px;
	background: rgba(0, 140, 150, 0.1);
	color: #008c96;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.sivit-profile-email {
	color: #64727d;
	font-size: 0.92rem;
}

.sivit-profile-section-title {
	margin: 0 0 16px;
	color: #008c96;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -0.01em;
}

.sivit-profile-activity-grid {
	margin-bottom: 32px;
}

.sivit-activity-count {
	color: #64727d;
	font-weight: 600;
}

.sivit-profile-activity-card ul {
	display: flex;
	flex-direction: column;
}

.sivit-profile-activity-card li {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.sivit-activity-date {
	color: #008c96;
	font-size: 0.82rem;
	font-weight: 700;
}

.sivit-activity-summary {
	color: #0c3e47;
}

.sivit-activity-empty,
.sivit-activity-more {
	margin: 0;
	color: #64727d;
	font-size: 0.9rem;
}

.sivit-profile-card {
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 3px 28px 0 rgba(30, 60, 120, 0.08);
	border: 1.3px solid rgba(0, 160, 190, 0.1);
	padding: 28px 28px 24px;
	margin-bottom: 32px;
}

.sivit-profile-card .wppb-form-fields-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sivit-profile-card .form-submit {
	margin: 20px 0 0;
}
