/**
 * PAME Instructors Form — frontend styles
 */

.pame-if-section {
	font-family: 'Reforma', 'Georgia', serif;
	color: #113A77;
	background: #fffbf8;
	padding: 48px 16px 64px;
}

.pame-if-wrapper {
	max-width: 860px;
	margin: 0 auto;
}

.pame-if-header {
	text-align: center;
	margin-bottom: 32px;
}

.pame-if-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #DAA112;
	margin: 0 0 14px;
}

.pame-if-eyebrow::before,
.pame-if-eyebrow::after {
	content: "";
	width: 28px;
	height: 1px;
	background: #DAA112;
	opacity: 0.6;
}

.pame-if-title {
	font-size: 36px;
	font-weight: 600;
	margin: 0 0 12px;
	line-height: 1.15;
}

.pame-if-lead {
	max-width: 620px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.6;
	opacity: 0.85;
}

.pame-if-card {
	background: #fffbf8;
	border: 1px solid rgba(218, 161, 18, 0.3);
	border-top: 4px solid #113A77;
	padding: 36px 32px;
	box-shadow: 0 12px 40px rgba(17, 58, 119, 0.06);
}

.pame-if-section-title {
	font-size: 18px;
	font-weight: 600;
	margin: 28px 0 16px;
	padding-bottom: 10px;
	border-bottom: 1px solid rgba(218, 161, 18, 0.25);
}

.pame-if-section-title:first-of-type {
	margin-top: 0;
}

.pame-if-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.pame-if-field {
	display: flex;
	flex-direction: column;
}

.pame-if-field--full {
	grid-column: 1 / -1;
}

.pame-if-label {
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 8px;
}

.pame-if-req {
	color: #DAA112;
}

.pame-if-input,
.pame-if-textarea,
.pame-if-file {
	width: 100%;
	box-sizing: border-box;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 15px;
	color: #113A77;
	background: #fff;
	border: 1px solid rgba(218, 161, 18, 0.3);
}

.pame-if-textarea {
	resize: vertical;
	line-height: 1.5;
}

.pame-if-input:focus,
.pame-if-textarea:focus {
	outline: none;
	border-color: #DAA112;
	box-shadow: 0 0 0 3px rgba(218, 161, 18, 0.18);
}

.pame-if-invalid {
	border-color: #d9534f !important;
}

.pame-if-radios {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.pame-if-radios--stack {
	flex-direction: column;
}

.pame-if-radio {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 11px 14px;
	border: 1px solid rgba(218, 161, 18, 0.3);
	background: #fff;
	cursor: pointer;
	font-size: 14px;
}

.pame-if-radio.is-selected,
.pame-if-radio:has(input:checked) {
	border-color: #113A77;
	background: rgba(17, 58, 119, 0.05);
}

.pame-if-radio input {
	accent-color: #113A77;
	margin: 0;
}

.pame-if-check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.45;
	cursor: pointer;
}

.pame-if-check input {
	margin-top: 3px;
	accent-color: #113A77;
}

.pame-if-note,
.pame-if-copy {
	font-size: 14px;
	line-height: 1.55;
	margin: 8px 0 16px;
	padding: 12px 14px;
	background: rgba(218, 161, 18, 0.08);
	border-left: 4px solid #DAA112;
}

.pame-if-copy {
	background: transparent;
	border-left: none;
	padding: 0;
	opacity: 0.9;
}

.pame-if-hint {
	font-size: 12px;
	opacity: 0.7;
	margin: 6px 0 0;
}

.pame-if-pad-wrap {
	border: 1px solid rgba(218, 161, 18, 0.3);
	background: #fff;
	touch-action: none;
}

.pame-if-invalid-wrap {
	outline: 1px solid #d9534f;
}

.pame-if-pad {
	display: block;
	width: 100%;
	height: 180px;
	cursor: crosshair;
}

.pame-if-clear-pad,
button.pame-if-clear-pad {
	margin-top: 8px;
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	color: #113A77 !important;
	opacity: 0.7;
	cursor: pointer;
	font-size: 12px !important;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-family: inherit !important;
	padding: 0 !important;
}

.pame-if-clear-pad:hover {
	opacity: 1;
	color: #DAA112 !important;
}

.pame-if-actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 28px;
	padding-top: 20px;
	border-top: 1px solid rgba(218, 161, 18, 0.2);
}

.pame-if-submit,
button.pame-if-submit {
	display: inline-block;
	padding: 14px 36px !important;
	min-width: 180px;
	background: #113A77 !important;
	color: #fffbf8 !important;
	border: 1px solid #113A77 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	font-family: inherit !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
}

.pame-if-submit:hover {
	background: #0d2d5c !important;
}

.pame-if-success {
	background: #fffbf8;
	border: 1px solid rgba(218, 161, 18, 0.4);
	border-top: 4px solid #113A77;
	padding: 48px 28px;
	text-align: center;
}

.pame-if-success-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #113A77;
	color: #fffbf8;
	font-size: 28px;
	margin: 0 auto 16px;
}

.pame-if-error-banner {
	background: #fdecec;
	border: 1px solid #d9534f;
	color: #8a1111;
	padding: 14px 18px;
	margin-bottom: 20px;
	font-size: 14px;
}

.pame-if-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 640px) {
	.pame-if-title {
		font-size: 28px;
	}
	.pame-if-card {
		padding: 24px 18px;
	}
	.pame-if-row {
		grid-template-columns: 1fr;
	}
	.pame-if-actions {
		justify-content: stretch;
	}
	.pame-if-submit {
		width: 100%;
	}
}
