/* OAL Forms — front-end styles, mirrors the official OAL PDF design */

/* ---------------------------------------------------------------------
   Edit these to fine-tune the exact shade — this is the ONLY place you
   need to change colors. Defaults are a very light rose/cream to match
   the input boxes in the original PDF.
--------------------------------------------------------------------- */
.oal-form-wrap {
	--oal-input-bg: #fdf6f5;
	--oal-input-border: #e9d3d1;
	--oal-input-focus-border: #c8102e;
	--oal-input-focus-bg: #ffffff;
	--oal-navy: #1b2a4a;
	--oal-red: #c8102e;
}

.oal-form-wrap {
	max-width: 900px;
	margin: 0 auto;
	font-family: Arial, Helvetica, sans-serif;
	color: #222;
	background: #fff;
	padding: 24px;
	box-sizing: border-box;
}
.oal-form-wrap * { box-sizing: border-box; }

.oal-header { text-align: center; margin-bottom: 20px; }
.oal-logo {
	font-weight: 800;
	letter-spacing: 1px;
	color: var(--oal-navy);
	font-size: 14px;
	margin-bottom: 14px;
}
.oal-form-wrap .oal-logo img { max-width: 240px; height: auto; border: 0; box-shadow: none; border-radius: 0; }
.oal-form-title { font-size: 26px; color: var(--oal-navy); margin: 6px 0; }
.oal-form-subtitle { font-size: 16px; color: var(--oal-red); font-weight: 700; margin: 4px 0; }
.oal-form-intro { font-size: 13px; margin: 6px 0 0; }

.oal-section-bar {
	background: var(--oal-navy);
	color: #fff;
	font-weight: 700;
	font-size: 14px;
	padding: 8px 14px;
	margin: 22px 0 12px;
	border-radius: 3px;
}
.oal-section-intro { font-size: 13px; margin: 0 0 12px; line-height: 1.5; }
.oal-italic { font-style: italic; }

.oal-details-table { width: 100%; border-collapse: collapse; margin-bottom: 10px; }
.oal-details-table td { border: 1px solid #d7dbe3; padding: 8px 10px; font-size: 13px; }
.oal-dt-label { font-weight: 700; width: 30%; background: #f4f6fa; }

.oal-fields-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 20px;
}
.oal-field { display: flex; flex-direction: column; }
.oal-field.oal-half { flex: 1 1 calc(50% - 20px); min-width: 220px; }
.oal-field.oal-full { flex: 1 1 100%; }
.oal-field label { font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.oal-req { color: var(--oal-red); }
.oal-form-wrap .oal-field input[type=text],
.oal-form-wrap .oal-field input[type=email],
.oal-form-wrap .oal-field input[type=date],
.oal-form-wrap .oal-field textarea {
	background-color: var(--oal-input-bg) !important;
	border: 1px solid var(--oal-input-border) !important;
	border-radius: 3px !important;
	padding: 9px 10px !important;
	font-size: 14px !important;
	width: 100% !important;
	font-family: inherit !important;
	color: #222 !important;
	box-shadow: none !important;
}
.oal-form-wrap .oal-field input:focus,
.oal-form-wrap .oal-field textarea:focus {
	outline: none !important;
	border-color: var(--oal-input-focus-border) !important;
	background-color: var(--oal-input-focus-bg) !important;
}

.oal-yesno-row {
	flex: 1 1 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	padding: 6px 0;
	border-bottom: 1px dashed #e3e6ec;
}
.oal-yesno-label { font-size: 13.5px; max-width: 75%; }
.oal-yesno-options { display: flex; gap: 18px; white-space: nowrap; }

.oal-checkbox-row { flex: 1 1 100%; padding: 3px 0; }
.oal-checkbox-group { flex: 1 1 100%; display: flex; flex-direction: column; gap: 4px; }
.oal-checkbox-text { font-size: 13.5px; }
.oal-checkbox-bold { font-weight: 700; }

.oal-box-radio {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 13.5px;
	font-weight: 400;
}
.oal-box-radio input { position: absolute; opacity: 0; width: 18px; height: 18px; cursor: pointer; }
.oal-box {
	width: 18px;
	height: 18px;
	border: 1.5px solid #8a93a6;
	border-radius: 2px;
	background: #fff;
	display: inline-block;
	position: relative;
	flex: 0 0 18px;
}
.oal-box-radio input:checked + .oal-box {
	background: var(--oal-navy);
	border-color: var(--oal-navy);
}
.oal-box-radio input:checked + .oal-box::after {
	content: "";
	position: absolute;
	left: 5px; top: 1px;
	width: 5px; height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.oal-box-radio input:focus-visible + .oal-box { outline: 2px solid #c8102e; outline-offset: 2px; }

.oal-course-choice { margin-bottom: 6px; }
.oal-subheading { color: var(--oal-red); font-weight: 700; font-size: 13.5px; margin: 12px 0 6px; }

.oal-terms-list { font-size: 12.5px; line-height: 1.6; padding-left: 20px; }
.oal-terms-list li { margin-bottom: 8px; }

.oal-declaration { font-size: 13px; line-height: 1.6; margin-bottom: 14px; }

.oal-privacy-footnote { font-size: 11.5px; color: #666; margin-top: 16px; }

.oal-submit-btn {
	display: block;
	width: 100%;
	max-width: 320px;
	margin: 22px auto 0;
	background: var(--oal-red);
	color: #fff;
	border: none;
	padding: 14px 20px;
	font-size: 16px;
	font-weight: 700;
	border-radius: 4px;
	cursor: pointer;
	transition: background .15s ease;
}
.oal-submit-btn:hover { background: #a20d25; }

.oal-success-box {
	background: #eefaf0;
	border: 1px solid #b3e6c0;
	border-radius: 4px;
	padding: 16px;
	margin-bottom: 18px;
	text-align: center;
}
.oal-success-box h3 { color: var(--oal-navy); font-size: 20px; margin: 0 0 8px; }
.oal-success-box p { font-size: 14px; line-height: 1.6; margin: 0 0 12px; }
.oal-success-box a { color: var(--oal-navy); }
.oal-success-sign { margin-top: 16px !important; margin-bottom: 0 !important; }
.oal-download-btn {
	display: inline-block;
	background: var(--oal-navy);
	color: #fff !important;
	padding: 10px 18px;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 700;
}

.oal-error-box {
	background: #fdecec;
	border: 1px solid #f3b7b7;
	border-radius: 4px;
	padding: 14px;
	margin-bottom: 18px;
	color: #8a1c1c;
}

@media (max-width: 600px) {
	.oal-form-wrap { padding: 14px; }
	.oal-form-title { font-size: 21px; }
	.oal-field.oal-half { flex: 1 1 100%; }
	.oal-yesno-row { flex-direction: column; align-items: flex-start; }
	.oal-dt-label { width: 40%; }
}
