.rp-cf-widget {
	width: 100%;
	font-family: Ubuntu, sans-serif;
}

.rp-cf-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.rp-cf-field {
	display: flex;
	flex-direction: column;
}

.rp-cf-field label {
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 8px;
}

.rp-cf-field input,
.rp-cf-field select,
.rp-cf-field textarea {
	height: 48px;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 0 14px;
	font-size: 15px;
	color: #1f2937;
	background: #fff;
	font-family: Ubuntu, sans-serif;
	width: 100%;
	box-sizing: border-box;
	appearance: none;
	-webkit-appearance: none;
}

.rp-cf-field textarea {
	height: 130px;
	padding: 12px 14px;
	resize: vertical;
}

.rp-cf-field select {
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' stroke='%236b7280' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 34px;
	cursor: pointer;
}

.rp-cf-field input:focus,
.rp-cf-field select:focus,
.rp-cf-field textarea:focus {
	outline: none;
	border-color: #38B44A;
	box-shadow: 0 0 0 3px rgba(56, 180, 74, 0.12);
}

.rp-cf-field.rp-cf-invalid input,
.rp-cf-field.rp-cf-invalid select,
.rp-cf-field.rp-cf-invalid textarea {
	border-color: #dc2626;
}

/* Privacy checkbox */
.rp-cf-privacy-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.rp-cf-privacy-row input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	margin: 2px 0 0;
	width: 19px;
	height: 19px;
	flex: 0 0 auto;
	border: 1.5px solid #e5e7eb;
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	position: relative;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.rp-cf-privacy-row input[type="checkbox"]:hover {
	border-color: #c3cad6;
}

.rp-cf-privacy-row input[type="checkbox"]:checked {
	background: #38B44A;
	border-color: #38B44A;
}

.rp-cf-privacy-row input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.rp-cf-privacy-row label {
	font-size: 13px;
	color: #6b7280;
	line-height: 1.55;
}

.rp-cf-privacy-row a {
	color: #38B44A;
	text-decoration: underline;
	font-weight: 500;
}

/* Submit */
.rp-cf-submit {
	align-self: flex-start;
	height: 52px;
	padding: 0 34px;
	border: none;
	border-radius: 6px;
	background: #38B44A;
	color: #fff;
	font-size: 15.5px;
	font-weight: 700;
	cursor: pointer;
	font-family: Ubuntu, sans-serif;
	transition: background 0.15s ease;
}

.rp-cf-submit:hover:not(:disabled) {
	background: #2e8f3a;
}

.rp-cf-submit:disabled {
	background: #c7ccd6;
	cursor: not-allowed;
}

/* Inline status message */
.rp-cf-message {
	display: none;
	padding: 12px 16px;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.5;
}

.rp-cf-message.success {
	display: block;
	background: rgba(56, 180, 74, 0.1);
	color: #2e8f3a;
	border: 1px solid rgba(56, 180, 74, 0.25);
}

.rp-cf-message.error {
	display: block;
	background: rgba(220, 38, 38, 0.08);
	color: #dc2626;
	border: 1px solid rgba(220, 38, 38, 0.25);
}

@media (max-width: 600px) {
	.rp-cf-submit {
		width: 100%;
	}
}
