.ebb-ref-agmt {
	font-family: 'Roboto', Arial, sans-serif;
	background: #ffffff;
	color: #1a1a1a;
	max-width: 820px;
	margin: 0 auto;
}

.ebb-ref-agmt * {
	box-sizing: border-box;
}

.ebb-ref-agmt .ebb-ref-disclaimer {
	background: transparent;
	border: 1px solid #ad0028;
	padding: 14px 16px;
	font-size: 13px;
	margin-bottom: 24px;
}

.ebb-ref-agmt h2.ebb-ref-section {
	font-size: 18px;
	font-weight: 700;
	color: #1a1a1a;
	border-bottom: 3px solid #ad0028;
	padding-bottom: 6px;
	margin: 32px 0 16px;
}

.ebb-ref-agmt h2.ebb-ref-section:first-of-type {
	margin-top: 0;
}

.ebb-ref-agmt .ebb-ref-subnote {
	font-size: 13px;
	color: #555;
	margin: -8px 0 16px;
}

.ebb-ref-agmt .ebb-ref-row {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-bottom: 14px;
}

.ebb-ref-agmt .ebb-ref-field {
	flex: 1 1 260px;
	display: flex;
	flex-direction: column;
}

.ebb-ref-agmt .ebb-ref-field.ebb-ref-full {
	flex-basis: 100%;
}

.ebb-ref-agmt label {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin-bottom: 6px;
	color: #333;
}

.ebb-ref-agmt .ebb-ref-required::after {
	content: " *";
	color: #ad0028;
}

.ebb-ref-agmt input[type="text"],
.ebb-ref-agmt input[type="email"],
.ebb-ref-agmt input[type="tel"],
.ebb-ref-agmt input[type="date"],
.ebb-ref-agmt input[type="number"],
.ebb-ref-agmt select,
.ebb-ref-agmt textarea {
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 14px;
	padding: 10px 12px;
	border: 1px solid #ccc;
	border-radius: 0;
	background: #ffffff;
	color: #1a1a1a;
	width: 100%;
}

.ebb-ref-agmt input:focus,
.ebb-ref-agmt select:focus,
.ebb-ref-agmt textarea:focus {
	outline: none;
	border-color: #ad0028;
}

.ebb-ref-agmt textarea {
	min-height: 80px;
	resize: vertical;
}

.ebb-ref-agmt .ebb-ref-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	align-items: center;
	padding: 8px 0;
}

.ebb-ref-agmt .ebb-ref-radio-group label {
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 400;
	text-transform: none;
	font-size: 14px;
}

.ebb-ref-agmt .ebb-ref-inline-input {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 400;
	text-transform: none;
}

.ebb-ref-agmt .ebb-ref-inline-input input {
	width: 110px;
}

.ebb-ref-agmt .ebb-ref-instructions {
	background: transparent;
	border-left: 4px solid #ad0028;
	padding: 12px 16px;
	font-size: 14px;
	margin-bottom: 20px;
}

.ebb-ref-agmt .ebb-ref-instructions ul {
	margin: 8px 0 0;
	padding-left: 20px;
}

.ebb-ref-agmt .ebb-ref-upload {
	border: 2px dashed #ccc;
	padding: 16px;
	margin-bottom: 14px;
}

.ebb-ref-agmt .ebb-ref-upload label {
	margin-bottom: 8px;
}

.ebb-ref-agmt .ebb-ref-upload input[type="file"] {
	width: 100%;
	font-size: 13px;
}

.ebb-ref-agmt .ebb-ref-upload .ebb-ref-filename {
	font-size: 12px;
	color: #ad0028;
	margin-top: 6px;
	font-weight: 700;
}

.ebb-ref-agmt .ebb-ref-checkbox-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: transparent;
	border: 1px solid #ad0028;
	padding: 14px 16px;
	margin: 20px 0;
}

.ebb-ref-agmt .ebb-ref-checkbox-row input {
	margin-top: 3px;
}

.ebb-ref-agmt .ebb-ref-checkbox-row label {
	font-weight: 400;
	text-transform: none;
	font-size: 14px;
}

.ebb-ref-agmt .ebb-ref-payment-note {
	font-size: 13px;
	color: #333;
	border-top: 1px solid #ddd;
	padding-top: 16px;
	margin-top: 24px;
}

.ebb-ref-agmt .ebb-ref-submit-row {
	margin-top: 28px;
	display: flex;
	align-items: center;
	gap: 16px;
}

.ebb-ref-agmt button.ebb-ref-submit-btn {
	background: #ad0028;
	color: #fff;
	border: none;
	border-radius: 0;
	font-family: 'Roboto', Arial, sans-serif;
	font-size: 15px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 14px 32px;
	cursor: pointer;
}

.ebb-ref-agmt button.ebb-ref-submit-btn:hover {
	background: #8a0020;
}

.ebb-ref-agmt button.ebb-ref-submit-btn:disabled {
	background: #ccc;
	cursor: not-allowed;
}

.ebb-ref-agmt .ebb-ref-status {
	font-size: 14px;
	padding: 12px 16px;
	margin-top: 16px;
	display: none;
}

.ebb-ref-agmt .ebb-ref-status.ebb-ref-success {
	display: block;
	background: transparent;
	border: 1px solid #1a7a3a;
	color: #1a7a3a;
}

.ebb-ref-agmt .ebb-ref-status.ebb-ref-error {
	display: block;
	background: transparent;
	border: 1px solid #ad0028;
	color: #ad0028;
}

@media (max-width: 600px) {
	.ebb-ref-agmt .ebb-ref-row {
		flex-direction: column;
		gap: 12px;
	}
}
