/*
 * Rational Advisor Access — front-end forms.
 * Typography and colors inherit from the theme. Override the custom properties below in the
 * theme stylesheet to match brand colors, e.g.  .raa { --raa-accent: #0b3a63; }
 */

.raa {
	--raa-accent: #1d3f66;
	--raa-accent-contrast: #fff;
	--raa-line: rgba(127, 127, 127, 0.45);
	--raa-error: #b42318;
	--raa-success: #1a7f4b;
	--raa-info: var(--raa-accent);
	--raa-radius: 4px;
	max-width: 46rem;
}

.raa-form fieldset {
	border: 0;
	margin: 0 0 2rem;
	padding: 0;
	min-width: 0;
}

.raa-form legend {
	font-size: 1.125em;
	font-weight: 600;
	margin: 0 0 1rem;
	padding: 0;
}

.raa-grid {
	display: grid;
	gap: 1.25rem 1.5rem;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.raa-field--full {
	grid-column: 1 / -1;
}

.raa-login .raa-field {
	margin-bottom: 1.25rem;
	max-width: 26rem;
}

.raa-field label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.4rem;
}

.raa-optional {
	font-weight: 400;
	opacity: 0.7;
}

.raa-field input[type="text"],
.raa-field input[type="email"],
.raa-field input[type="tel"],
.raa-field input[type="password"],
.raa-field select {
	background-color: transparent;
	border: 1px solid var(--raa-line);
	border-radius: var(--raa-radius);
	box-sizing: border-box;
	color: inherit;
	font: inherit;
	min-height: 2.75rem;
	padding: 0.6rem 0.75rem;
	width: 100%;
}

.raa-field select option {
	color: #1a1a1a;
}

.raa-field input:focus-visible,
.raa-field select:focus-visible,
.raa-check input:focus-visible,
.raa-button:focus-visible {
	outline: 3px solid var(--raa-accent);
	outline-offset: 2px;
}

.raa-field [aria-invalid="true"] {
	border-color: var(--raa-error);
	border-width: 2px;
}

.raa-hint,
.raa-field-error {
	font-size: 0.875em;
	line-height: 1.45;
	margin: 0.4rem 0 0;
}

.raa-hint {
	opacity: 0.75;
}

.raa-field-error {
	color: var(--raa-error);
	font-weight: 600;
}

.raa-check {
	align-items: flex-start;
	display: flex;
	gap: 0.65rem;
}

.raa-check input {
	flex: none;
	height: 1.15rem;
	margin: 0.2rem 0 0;
	width: 1.15rem;
}

.raa-check label {
	font-weight: 400;
	line-height: 1.5;
	margin: 0;
}

.raa-password {
	position: relative;
}

.raa-password input {
	padding-right: 4.5rem !important;
}

.raa-reveal {
	background: none;
	border: 0;
	color: var(--raa-accent);
	cursor: pointer;
	font: inherit;
	font-size: 0.875em;
	font-weight: 600;
	padding: 0.4rem 0.6rem;
	position: absolute;
	right: 0.35rem;
	top: 50%;
	transform: translateY(-50%);
}

.raa-reveal:focus-visible {
	outline: 2px solid var(--raa-accent);
	outline-offset: 1px;
}

.raa-actions {
	margin: 1.5rem 0 1rem;
}

.raa-button {
	background: var(--raa-accent);
	border: 0;
	border-radius: var(--raa-radius);
	color: var(--raa-accent-contrast);
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	min-height: 2.75rem;
	padding: 0.7rem 1.6rem;
}

.raa-button:hover {
	filter: brightness(1.12);
}

.raa-alt {
	font-size: 0.9375em;
	margin: 0.5rem 0 0;
}

.raa-turnstile {
	margin-top: 0.5rem;
}

.raa-notice {
	border-left: 4px solid var(--raa-info);
	margin: 0 0 1.75rem;
	padding: 0.9rem 1.25rem;
}

.raa-notice p {
	margin: 0;
}

.raa-notice--success { border-left-color: var(--raa-success); }
.raa-notice--error { border-left-color: var(--raa-error); }

.raa-error-summary ul {
	margin: 0.5rem 0 0;
	padding-left: 1.25rem;
}

.raa-error-summary a {
	color: var(--raa-error);
}

.raa-error-summary:focus {
	outline: 2px solid var(--raa-error);
	outline-offset: 2px;
}

/* Honeypot: off-screen for everyone, not just visually hidden. */
.raa-hp {
	height: 1px;
	left: -10000px;
	overflow: hidden;
	position: absolute;
	width: 1px;
}

.raa [hidden] {
	display: none !important;
}

@media (max-width: 640px) {
	.raa-grid {
		grid-template-columns: 1fr;
	}
}

/* Dropbox library ([raa_dropbox_library]); a theme can restyle these. */
.raa-lib__toc { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.raa-lib__toc a { padding: 6px 12px; border: 1px solid #dfe4ee; text-decoration: none; }
.raa-lib__section + .raa-lib__section { margin-top: 32px; }
.raa-lib__gh { margin: 16px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.raa-lib__files { list-style: none; margin: 0; padding: 0; }
.raa-lib__files li { border-bottom: 1px solid #dfe4ee; }
.raa-lib__files a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; text-decoration: none; }
.raa-lib__meta { font-size: 12px; opacity: .7; white-space: nowrap; }
