/*
 * SWS Account Wizard.
 *
 * Everything from ".sws-wizard__card" to ".sws-wizard__spinner" is copied
 * from the Group Leader page's wizard template (sws-group-editor-redesign,
 * assets/group-editor.css - the "Move Students" / "Buy More Seats" look),
 * so both read as the same family. Each rule is prefixed with ".sws-aw" so
 * it outranks the theme's (Divi's) generic form/heading/paragraph styles
 * on the login page, and so it can never leak onto the Group Leader page.
 * Differences from the template: the card sits in the page (not a pop-up
 * over a dark backdrop), and there are rules for consent rows, errors and
 * notes at the bottom.
 */

.sws-aw .sws-wizard__card {
	position: relative;
	width: min(100%, 480px);
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: #fff;
	border-radius: 18px;
	padding: 26px 22px 18px;
	box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
	color: #17324D;
}
.sws-aw .sws-wizard__back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin: 0 0 10px;
	padding: 6px 10px;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: #5B6B7B;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.sws-aw .sws-wizard__back:hover {
	background: #F0F4F8;
	color: #17324D;
}
.sws-aw .sws-wizard__step {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	color: #6C7683; /* v2.11.2 (Tim 10-23, accessibility): was #8996A6 = 3.01:1 on white; this is 4.61:1 */
	text-transform: uppercase;
	margin: 0 0 6px;
}
.sws-aw .sws-wizard__title {
	margin: 0 28px 14px 0;
	font-size: 21px;
	line-height: 1.25;
	font-weight: 700;
	color: #17324D;
}
.sws-aw .sws-wizard__intro {
	margin: 0 0 20px;
	padding: 16px 18px 20px !important;
	background: #F2F8FD;
	border: 1px solid #CFE3F3;
	border-radius: 10px;
	font-size: 13.5px;
	line-height: 1.5;
	color: #4A5B6B;
}
.sws-aw .sws-wizard__intro strong {
	color: #17324D;
}

.sws-aw .sws-wizard__box {
	border: 1px solid #E1EBF2;
	border-radius: 14px;
	padding: 16px;
	background: #FBFCFE;
	margin-bottom: 20px;
}

.sws-aw .sws-wizard__options {
	margin-bottom: 4px;
}
.sws-aw .sws-wizard__opt {
	display: block;
	width: 100%;
	text-align: left;
	margin: 0 0 12px;
	padding: 14px 16px;
	border: 2px solid #CFE3F3;
	border-radius: 14px;
	background: #fff;
	cursor: pointer;
	font: inherit;
	color: inherit;
	transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.sws-aw .sws-wizard__opt:hover,
.sws-aw .sws-wizard__opt:focus-visible {
	border-color: #1F8FD6;
	background: #F2F8FD;
	box-shadow: 0 6px 16px rgba(22, 115, 179, .16);
	outline: none;
}
.sws-aw .sws-wizard__opt-head {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: #1673B3;
	margin-bottom: 4px;
}
.sws-aw .sws-wizard__opt-tag {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #1B7A3D;
	background: #E3F6E8;
	border: 1px solid #1B7A3D;
	border-radius: 999px;
	padding: 1px 7px;
	vertical-align: middle;
	margin-left: 4px;
}
.sws-aw .sws-wizard__opt-sub {
	display: block;
	font-size: 14px;
	line-height: 1.45;
	color: #4A5B6B;
}

.sws-aw .sws-wizard__search,
.sws-aw .sws-wizard__field {
	display: block;
	width: 100%;
	padding: 10px 14px !important;
	margin-bottom: 16px !important;
	border: 2px solid #CFE3F3 !important;
	border-radius: 12px;
	font: inherit;
	font-size: 14px;
	color: #17324D !important;
	background: #fff;
}
.sws-aw .sws-wizard__search:focus,
.sws-aw .sws-wizard__field:focus {
	outline: none;
	border-color: #1F8FD6 !important;
}
.sws-aw .sws-wizard__field:disabled {
	background: #F5F7FA !important;
	color: #8996A6 !important;
}
.sws-aw .sws-wizard__label {
	display: block;
	margin: 0 0 6px;
	font-size: 12.5px;
	font-weight: 600;
	color: #17324D;
}


.sws-aw .sws-wizard__summary-line {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: #17324D;
}
.sws-aw .sws-wizard__fine {
	margin-top: 20px;
	font-size: 13px;
	line-height: 1.5;
	color: #4A5B6B;
	background: #F2F8FD;
	border: 1px solid #CFE3F3;
	border-left: 4px solid #1F8FD6;
	border-radius: 10px;
	padding: 16px 18px 20px !important;
}

.sws-aw .sws-wizard__primary {
	display: block;
	width: 100%;
	margin-top: 20px;
	padding: 13px 16px;
	border: 0;
	border-radius: 14px;
	background: #1673B3;
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(22, 115, 179, .28);
	transition: background-color .15s ease, box-shadow .15s ease;
}
.sws-aw .sws-wizard__primary:hover:not(:disabled) {
	background: #135F92;
	box-shadow: 0 6px 18px rgba(22, 115, 179, .34);
}
.sws-aw .sws-wizard__primary:disabled {
	background: #CFD8E0;
	box-shadow: none;
	cursor: not-allowed;
}
.sws-aw .sws-wizard__secondary {
	display: block;
	width: 100%;
	margin: 20px 0 0;
	padding: 10px 16px;
	border: 2px solid #CFE3F3;
	border-radius: 12px;
	background: #fff;
	color: #1673B3;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(15, 30, 45, .10);
	transition: background-color .15s ease, box-shadow .15s ease;
}
.sws-aw .sws-wizard__secondary:hover {
	background: #F2F8FD;
	box-shadow: 0 3px 12px rgba(15, 30, 45, .14);
}

.sws-aw .sws-wizard__cancel {
	display: block;
	margin: 4px auto 0;
	padding: 8px 18px;
	border: 0;
	background: transparent;
	color: #5B6B7B;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
	text-decoration: underline;
}

.sws-aw .sws-wizard__progress {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 20px 4px;
	color: #4A5B6B;
	font-size: 14px;
}
.sws-aw .sws-wizard__spinner {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 2.5px solid #CFE3F3;
	border-top-color: #1F8FD6;
	animation: sws-wizard-spin .7s linear infinite;
	flex: none;
}
@keyframes sws-wizard-spin {
	to { transform: rotate(360deg); }
}


/* ===== Account Wizard specifics ===== */

.sws-aw {
	position: relative;
	display: flex;
	justify-content: center;
	padding: 16px 0 32px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	text-align: left;
}
.sws-aw,
.sws-aw * {
	box-sizing: border-box;
}
/* In the page, not a pop-up: no height cap / inner scrolling. */
.sws-aw .sws-wizard__card {
	max-height: none;
	overflow: visible;
	margin: 0 auto;
}

/* Bot trap: a field people never see (bots fill it in). */
.sws-aw .sws-aw__hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}
.sws-aw form.sws-aw__form {
	margin: 0 !important;
	padding: 0 !important;
}

.sws-aw .sws-aw__panel[hidden] {
	display: none !important;
}

/* Theme headings/paragraphs/buttons on this page carry their own sizes,
   margins and paddings - keep the template's values. */
.sws-aw h2.sws-wizard__title {
	margin: 0 0 14px !important;
	padding: 0 !important;
	font-size: 21px !important;
	line-height: 1.25 !important;
	font-weight: 700 !important;
	color: #17324D !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}
.sws-aw p.sws-wizard__step {
	margin: 0 0 6px !important;
	padding: 0 !important;
}
.sws-aw .sws-wizard__field {
	height: auto !important;
	background: #fff !important;
	line-height: 1.4 !important;
	box-shadow: none !important;
}
.sws-aw .sws-wizard__field[readonly] {
	background: #F1F5F9 !important;
	color: #4A5B6B !important;
}
.sws-aw .sws-wizard__primary,
.sws-aw .sws-wizard__cancel,
.sws-aw .sws-wizard__back,
.sws-aw .sws-wizard__opt {
	text-transform: none !important;
	letter-spacing: 0 !important;
	line-height: 1.35 !important;
}
.sws-aw a.sws-aw__linkbtn {
	text-align: center;
	text-decoration: none !important;
	color: #fff !important;
}
.sws-aw .sws-wizard__cancel {
	text-align: center;
}
.sws-aw a.sws-aw__reset {
	display: table;
	margin: 12px auto 0;
	color: #5B6B7B !important;
}

/* Consent rows: each box is its own bordered, fully clickable row. */
.sws-aw .sws-aw__consent {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 10px;
	padding: 12px 14px;
	border: 2px solid #CFE3F3;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	font-size: 13.5px;
	font-weight: 400;
	line-height: 1.5;
	color: #17324D;
	transition: border-color .15s ease, background-color .15s ease;
}
.sws-aw .sws-aw__consent:last-child {
	margin-bottom: 0;
}
.sws-aw .sws-aw__consent.is-checked {
	border-color: #1F8FD6;
	background: #F2F8FD;
}
.sws-aw .sws-aw__consent input[type="checkbox"] {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: #1673B3;
	cursor: pointer;
}
.sws-aw .sws-aw__consent-text,
.sws-aw .sws-aw__consent-text p,
.sws-aw .sws-aw__consent-text b,
.sws-aw .sws-aw__consent-text strong {
	margin: 0 !important;
	padding: 0 !important;
	font-weight: 400 !important;
	font-size: 13.5px !important;
	line-height: 1.5 !important;
	color: #17324D !important;
}
.sws-aw .sws-aw__consent-text a {
	color: #1673B3 !important;
	font-weight: 600 !important;
	text-decoration: underline !important;
}
.sws-aw .sws-wizard__box .sws-aw__consent:first-of-type {
	margin-top: 4px;
}
.sws-aw .sws-wizard__box > .sws-wizard__field:last-of-type + .sws-aw__consent {
	margin-top: 4px;
}

.sws-aw .sws-aw__show {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #4A5B6B;
	cursor: pointer;
}
.sws-aw .sws-aw__code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
	font-size: 18px !important;
	letter-spacing: .12em !important;
	text-transform: uppercase;
}
.sws-aw p.sws-aw__note {
	margin: -8px 0 14px !important;
	padding: 0 !important;
	font-size: 12.5px;
	color: #1B7A3D;
}
/* v2.4.0: "Your password has been changed" on the Log in step. */
.sws-aw p.sws-aw__note.sws-aw__note--ok {
	margin: -4px 0 14px !important;
	padding: 10px 12px !important;
	border: 1px solid #BFE3CB;
	border-left: 4px solid #1B7A3D;
	border-radius: 10px;
	background: #EEF8F1;
	font-size: 13.5px;
	font-weight: 600;
}
.sws-aw p.sws-aw__error {
	margin: 0 0 4px !important;
	padding: 12px 14px !important;
	border: 1px solid #F3C4C4;
	border-left: 4px solid #C62828;
	border-radius: 10px;
	background: #FDF2F2;
	color: #8E1B1B;
	font-size: 13.5px;
	line-height: 1.5;
}
.sws-aw .sws-aw__inline-link {
	display: inline;
	margin: 0 0 0 6px;
	padding: 0;
	border: 0;
	background: none;
	color: #1673B3;
	font: inherit;
	font-weight: 700;
	text-decoration: underline;
	cursor: pointer;
}
.sws-aw .sws-wizard__cancel[hidden] {
	display: none;
}

@media (max-width: 520px) {
	.sws-aw {
		padding: 8px 0;
	}
	.sws-aw .sws-wizard__card {
		padding: 22px 16px 16px;
		border-radius: 14px;
	}
}

/* v2.5.0: two-step login code */
.sws-aw .sws-aw__otp {
	font-size: 24px !important;
	letter-spacing: .35em !important;
	text-align: center;
	font-variant-numeric: tabular-nums;
}
.sws-aw .sws-aw__inline-form {
	margin: 0;
	padding: 0;
	text-align: center;
}
.sws-aw .sws-aw__inline-form .sws-wizard__cancel[disabled] {
	opacity: .55;
	cursor: default;
}

/* v2.5.2 */
.sws-aw p.sws-aw__note.sws-aw__note--warn {
	margin: 0 0 12px !important;
	padding: 10px 12px !important;
	border: 1px solid #F3C4C4;
	border-left: 4px solid #C62828;
	border-radius: 10px;
	background: #FDF1F1;
	color: #8A1C1C;
	font-size: 13.5px;
	font-weight: 600;
}
.sws-aw .sws-aw__remember {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	margin: 4px 0 0;
	font-size: 13px;
	line-height: 1.4;
}

/* v2.8.0: the month + year step at the start of Create account - side by side, like the site's Age Gate
   (sws-age-gate-month-year): bold dark grey text and a grey border on the two boxes. */
.sws-aw .sws-aw__dob {
	display: flex;
	gap: 12px;
}
.sws-aw .sws-aw__dob-part {
	flex: 1 1 0;
	min-width: 0;
}
.sws-aw .sws-aw__dob .sws-wizard__label {
	font-weight: 700;
	color: #374151;
}
.sws-aw .sws-aw__select {
	font-weight: 700;
	color: #374151 !important;
	border-color: #6b7280 !important;
	appearance: auto;
	-webkit-appearance: menulist;
	cursor: pointer;
}
.sws-aw .sws-aw__select:focus {
	border-color: #0c71c3 !important;
}
