/**
 * Griffin Borrower Feedback — form styles.
 *
 * Deliberately restrained. The form sits inside the existing theme, so type
 * and colour are inherited wherever possible.
 */

.gbf-wrap {
	max-width: 44rem;
	margin: 0 auto;
}

.gbf-head {
	padding-bottom: 1.75rem;
	margin-bottom: 2.25rem;
	border-bottom: 1px solid #e5e7eb;
}

.gbf-eyebrow {
	margin: 0 0 .5rem;
	font-size: .75rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #6b7280;
}

.gbf-title {
	margin: 0 0 1rem;
	line-height: 1.15;
}

.gbf-intro {
	margin: 0;
	color: #374151;
	line-height: 1.65;
}

.gbf-field {
	margin-bottom: 1.75rem;
}

.gbf-fieldset {
	border: 0;
	padding: 0;
	margin-inline: 0;
}

.gbf-label {
	display: block;
	margin-bottom: .5rem;
	font-weight: 600;
	line-height: 1.45;
}

.gbf-required {
	color: #b42318;
	margin-left: .15rem;
}

.gbf-input {
	width: 100%;
	padding: .7rem .85rem;
	font: inherit;
	color: inherit;
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 4px;
	box-sizing: border-box;
}

.gbf-textarea {
	resize: vertical;
	min-height: 6rem;
	line-height: 1.55;
}

.gbf-input:focus-visible,
.gbf-choice input:focus-visible,
.gbf-submit:focus-visible {
	outline: 2px solid #1d4ed8;
	outline-offset: 2px;
}

/* Applied by the script when a required field is left empty. */
.gbf-input.gbf-invalid {
	border-color: #b42318;
	background: #fffafa;
}

.gbf-choices {
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.gbf-choice {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	cursor: pointer;
}

.gbf-submit {
	padding: .8rem 2rem;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: #12395c;
	border: 0;
	border-radius: 4px;
	cursor: pointer;
}

.gbf-submit:hover {
	background: #0d2a45;
}

.gbf-submit[disabled] {
	opacity: .6;
	cursor: default;
}

.gbf-alert {
	padding: .85rem 1rem;
	margin-bottom: 1.5rem;
	border: 1px solid #fca5a5;
	border-left-width: 4px;
	border-radius: 4px;
	background: #fef2f2;
	color: #7f1d1d;
}

.gbf-confirm {
	padding: 1.75rem;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	background: #f8fafc;
	line-height: 1.65;
}

.gbf-confirm p {
	margin: 0;
}

/* Honeypot. Off-screen rather than display:none, which some bots detect. */
.gbf-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

@media (max-width: 480px) {
	.gbf-submit {
		width: 100%;
	}
}
