/*
 * PW Protector — lock form styles.
 *
 * Defaults are tuned to the My Swim Buddy (msbaquatics.com) Divi theme, and
 * fonts are pulled from Divi's own global CSS variables so the form tracks the
 * site's typography automatically:
 *   fonts   var(--et_global_heading_font) / var(--et_global_body_font)
 *   accent  #EA7723 (Divi accent — buttons, links)   hover #D96A1F
 *   text    #034A8C (global heading/body color)       error #BE2D31 (secondary)
 * Override any of it via the .pwp-* selectors, or per element with the
 * Accent Color setting (which drives --pwp-accent).
 */

.pwp-locked {
	--pwp-accent: #ea7723;
	--pwp-accent-hover: #d96a1f;
	--pwp-text: #034a8c;

	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 48px 30px;
	margin: 10px 0;
	background: #fff7f1;
	border: 1px solid rgba(234, 119, 35, 0.18);
	border-radius: 10px;
	color: var(--pwp-text);
	font-family: var(--et_global_body_font, "Open Sans", Arial, sans-serif);
	font-weight: var(--et_global_body_font_weight, 500);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.pwp-form {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	max-width: 440px;
	width: 100%;
	text-align: center;
}

.pwp-icon {
	color: var(--pwp-accent);
	line-height: 1;
}

.pwp-icon svg {
	display: inline-block;
}

.pwp-title {
	margin: 0;
	padding: 0;
	color: var(--pwp-accent);
	font-family: var(--et_global_heading_font, "Varela Round", "Open Sans", Arial, sans-serif);
	font-weight: var(--et_global_heading_font_weight, 700);
	font-size: 24px;
	line-height: 1.3;
}

.pwp-fields {
	display: flex;
	gap: 10px;
	width: 100%;
	justify-content: center;
	flex-wrap: wrap;
}

.pwp-input {
	flex: 1 1 200px;
	min-width: 0;
	box-sizing: border-box;
	padding: 12px 16px;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	color: var(--pwp-text);
	background: #fff;
	border: 1px solid rgba(3, 74, 140, 0.25);
	border-radius: 4px;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pwp-input::placeholder {
	color: rgba(3, 74, 140, 0.5);
}

.pwp-input:focus {
	outline: none;
	border-color: var(--pwp-accent);
	box-shadow: 0 0 0 2px rgba(234, 119, 35, 0.25);
}

.pwp-button {
	flex: 0 0 auto;
	box-sizing: border-box;
	padding: 12px 26px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.4;
	color: #fefefe;
	background: var(--pwp-accent);
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

.pwp-button:hover {
	background: var(--pwp-accent-hover);
	/* Darkens any custom accent too; falls back to the static hover above. */
	background: color-mix(in srgb, var(--pwp-accent) 82%, #000);
}

.pwp-button:disabled {
	opacity: 0.55;
	cursor: default;
}

.pwp-error {
	margin: 0;
	color: #be2d31;
	font-size: 14px;
	line-height: 1.4;
}
