/* ==========================================================================
   WEBSITE FORMS (css/website-forms.css)
   --------------------------------------------------------------------------
   Self-contained: every rule is scoped to .web-forms-form (and its rf- classes), so
   it can't affect any other form on the site. Load after main.css.

   Fields: 1px border, white background. Two columns on desktop, one column
   below 768px. Uses the page's font and text color; the submit button uses
   the site's existing .btn class.

   Colors
     #8c8c8c  field border  (3.4:1 against white; meets WCAG 1.4.11)
     #949494  focus line, drawn inside the field like the masthead search
              (3:1 against white, the minimum for focus indicators)
     #b3261e  invalid field after the visitor has interacted with it
   ========================================================================== */

.web-forms-form {
	width: 100%; /* fills its container (.text-block), same width as the page content */
	margin: 0 0 60px;
	font-size: 20px;
	line-height: 1.4;
	color: #444;
}

.web-forms-form *,
.web-forms-form *::before,
.web-forms-form *::after {
	box-sizing: border-box;
}

.web-forms-intro {
	margin: 0 0 30px;
}

.web-forms-required-note {
	margin: 0 0 30px;
	font-size: 18px;
}

.web-forms-req {
	color: #b3261e;
	font-weight: 600;
}

/* Sections */
.web-forms-section {
	margin: 0 0 40px;
	padding: 0;
	border: 0;
	min-width: 0;
}

.web-forms-section > legend {
	display: block;
	width: 100%;
	margin: 0 0 20px;
	padding: 0 0 10px;
	border-bottom: 1px solid #ccc;
	font-size: 24px;
	line-height: 1.25;
	font-weight: 600;
}

/* Grid of fields */
.web-forms-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px 32px;
}

/* Each field is a column; its input is pushed to the bottom, so inputs side
   by side always line up even when one label wraps onto two lines */
.web-forms-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.web-forms-form .web-forms-field > .web-forms-control,
.web-forms-form .web-forms-field > .web-forms-pair {
	margin-top: auto; /* .web-forms-form prefix: must outrank the field's margin: 0 below */
}

.web-forms-field--full {
	grid-column: 1 / -1;
}

.web-forms-label {
	display: block;
	margin: 0 0 8px;
	font-weight: 500;
}

/* Hint shown inline after the label text, in parentheses: "Label (hint)" */
.web-forms-hint {
	font-size: 0.85em;
	font-weight: 400;
	color: #666;
}

/* Text-type fields: 1px border, white background */
.web-forms-form .web-forms-control {
	display: block;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 10px 14px;
	border: 1px solid #8c8c8c;
	border-radius: 0;
	background: #fff;
	color: #444;
	font-family: inherit;
	font-size: 20px;
	line-height: 1.4;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
}

.web-forms-form textarea.web-forms-control {
	min-height: 140px;
	resize: vertical;
}

/* Keep date/time pickers' native icons visible after appearance: none */
.web-forms-form input[type="date"].web-forms-control,
.web-forms-form input[type="time"].web-forms-control {
	-webkit-appearance: auto;
	appearance: auto;
}

.web-forms-form .web-forms-control::placeholder {
	color: #767676;
	opacity: 1;
}

/* Focus: 2px line inside the field, like the masthead search input.
   border-color is reset because main.css turns focused text fields'
   borders black (input[type="text"]:focus { border-color: #000; }). */
.web-forms-form .web-forms-control:focus,
.web-forms-form .web-forms-control:focus-visible {
	outline: none;
	border-color: #8c8c8c;
	box-shadow: inset 0 0 0 2px #949494;
}

/* Only flag a field once the visitor has actually tried it */
.web-forms-form .web-forms-control:user-invalid {
	border-color: #b3261e;
}

/* Start + end time side by side */
.web-forms-pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}


/* Radio groups */
.web-forms-choices {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.web-forms-choices legend {
	display: block;
	margin: 0 0 8px;
	padding: 0;
	font-weight: 500;
}

.web-forms-choice-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 16px; /* keeps 3 choices on one line down to the 768px two-column width */
}

.web-forms-choice {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px; /* comfortable touch target */
	cursor: pointer;
}

.web-forms-choice input {
	width: 22px;
	height: 22px;
	margin: 0;
	accent-color: #6d7e20;
	cursor: pointer;
}

.web-forms-choice input:focus-visible {
	outline: 2px solid #949494;
	outline-offset: 3px;
}

/* Actions */
.web-forms-actions {
	margin: 10px 0 24px;
}

.web-forms-form .web-forms-submit {
	border: 0;
	cursor: pointer;
	font-family: inherit;
}

.web-forms-form .web-forms-submit:focus-visible {
	outline: 2px solid #949494;
	outline-offset: 3px;
}

.web-forms-contact-note {
	margin: 0;
	font-size: 18px;
}

.web-forms-contact-note a {
	color: #6d7e20;
	text-decoration: underline;
}

.web-forms-contact-note a:hover {
	text-decoration: none;
}

/* Tablet and phone: one column */
@media (max-width: 767px) {
	.web-forms-form {
		font-size: 18px;
	}

	.web-forms-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.web-forms-section > legend {
		font-size: 22px;
	}

	.web-forms-form .web-forms-control {
		font-size: 18px;
		min-height: 48px;
	}

	.web-forms-form .web-forms-submit {
		width: 100%;
	}
}

/* Narrow phones: stack start/end time */
@media (max-width: 399px) {
	.web-forms-pair {
		grid-template-columns: minmax(0, 1fr);
	}
}
/* END WEBSITE FORMS */
