/* RDS Contact Form — elegant serif / underline style */

.rds-cf {
	--rds-cf-bg: #f2ede1;
	--rds-cf-ink: #23282e;
	--rds-cf-accent: #bf6f2f;      /* orange-brown underline */
	--rds-cf-button: #a9622f;      /* sienna button */
	--rds-cf-button-ink: #f5efe3;
	--rds-cf-line: var(--rds-cf-accent); /* all rules share the accent color */
	--rds-cf-font: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;

	background: var(--rds-cf-bg);
	font-family: var(--rds-cf-font);
	color: var(--rds-cf-ink);
	width: 100%;
	max-width: var(--rds-cf-max-width, 720px);
	margin: 0 auto;
	padding: clamp(1rem, 2.5%, 1.5rem) clamp(1.25rem, 5%, 2.75rem);
	box-sizing: border-box;
}

.rds-cf *,
.rds-cf *::before,
.rds-cf *::after {
	box-sizing: inherit;
}

.rds-cf__row {
	margin-bottom: 1.75rem;
}

/* Wraps by available container width, not viewport size */
.rds-cf__row--split {
	display: flex;
	flex-wrap: wrap;
	gap: 1.75rem clamp(1.5rem, 6%, 3rem);
}

.rds-cf__row--split .rds-cf__field {
	flex: 1 1 15rem;
	min-width: 0;
}

/* Field: input line on top, italic label underneath */
.rds-cf__field {
	display: flex;
	flex-direction: column;
}

.rds-cf__field input,
.rds-cf__field textarea {
	font-family: inherit;
	font-size: 1.15rem;
	color: var(--rds-cf-ink);
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--rds-cf-line);
	border-radius: 0;
	outline: none;
	padding: 0.35rem 0.1rem;
	width: 100%;
	box-shadow: none;
}

.rds-cf__field input:focus,
.rds-cf__field textarea:focus {
	border-bottom-color: var(--rds-cf-accent);
	box-shadow: 0 1px 0 0 var(--rds-cf-accent);
}

.rds-cf__row--split input {
	border-bottom: 1px solid var(--rds-cf-line);
}

.rds-cf__field label {
	order: 2; /* label sits BELOW the line, as in the design */
	font-style: italic;
	font-size: 1.2rem;
	letter-spacing: 0.02em;
	margin-top: 0.4rem;
	color: var(--rds-cf-ink);
}

.rds-cf__field--centered label {
	text-align: center;
}

.rds-cf__req {
	font-size: 0.85em;
	vertical-align: super;
	margin-left: 1px;
}

/* Message: ruled-paper look via repeating underlines */
.rds-cf__field--message textarea {
	resize: vertical;
	min-height: 7.5rem;
	line-height: 2.5rem;
	border-bottom: 0;
	background-image: repeating-linear-gradient(
		to bottom,
		transparent 0,
		transparent calc(2.5rem - 1px),
		var(--rds-cf-line) calc(2.5rem - 1px),
		var(--rds-cf-line) 2.5rem
	);
	background-attachment: local;
}

.rds-cf__field--message textarea:focus {
	box-shadow: none;
}

.rds-cf__field--message {
	border-top: 1px solid var(--rds-cf-line);
}

/* Honeypot — visually removed */
.rds-cf__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Submit button, bottom-right */
.rds-cf__actions {
	display: flex;
	justify-content: flex-end;
	margin-top: 0.5rem;
}

.rds-cf__submit {
	font-family: inherit;
	font-style: italic;
	font-size: 1.25rem;
	letter-spacing: 0.03em;
	color: var(--rds-cf-button-ink);
	background: var(--rds-cf-button);
	border: 0;
	border-radius: 0;
	padding: 0.6rem 2.4rem;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.rds-cf__submit:hover,
.rds-cf__submit:focus-visible {
	background: #8f5226;
}

.rds-cf__submit[disabled] {
	opacity: 0.6;
	cursor: default;
}

/* Status message — takes no space until it has content */
.rds-cf__status {
	font-style: italic;
	font-size: 1.05rem;
	margin: 1rem 0 0;
}

.rds-cf__status:empty {
	display: none;
}

.rds-cf__status.is-error {
	color: #9c3324;
}

.rds-cf__status.is-success {
	color: #4c6b3c;
}

/* Slightly tighter type on very small screens */
@media (max-width: 400px) {
	.rds-cf__field label {
		font-size: 1.05rem;
	}

	.rds-cf__submit {
		width: 100%;
		text-align: center;
	}
}
