/* /register/<programme> and /book-room: the page banner with its title, then the website's own form.
   The form styles are craigsfarm.org.uk's: its Contact Form 7 rules ("global-styles-inline-css") and CF7's
   own stylesheet for the programme forms; WPForms' modern look, as the Book Now page shows it, for the room
   form. Body text is the theme's (Arial, black), the banner title the site's serif heading. */
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.5; color: #000; background: #fff; }
a { color: #ff7f76; }

/* page banner: the page's own image, darkened, its title in white */
.cf-banner { display: flex; align-items: center; justify-content: center; min-height: 450px; padding: 5px 20px;
	background: #5b4636 center / cover no-repeat; position: relative; text-align: center; }
.cf-banner::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.35); }
.cf-banner h1 { position: relative; margin: 0; color: #fff; font: 700 clamp(32px, 4.6vw, 54px)/1.2 "Dashiell Bold", "Roboto Slab", Georgia, serif;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45); }
.cf-page { max-width: 1140px; margin: 0 auto; padding: 70px 20px 100px; }

/* ---- Contact Form 7, as on the website ---- */
.wpcf7 form, .wpcf7 .wpcf7-form { margin: 0 auto; font-family: Arial, sans-serif; background-color: #fafafa; padding: 25px 30px; border-radius: 10px; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); }
.wpcf7 form p { font-size: 16px; line-height: 1.3; color: #000; }
.wpcf7 form .gdpr-notice { background-color: #fff4f3; color: #d94f4f; border-left: 4px solid #d94f4f; padding: 12px 15px; margin-bottom: 20px; font-weight: 500; }
.wpcf7 form label { display: block; font-weight: 600; margin-bottom: 5px; color: #222; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 input[type="date"], .wpcf7 input[type="number"], .wpcf7 textarea, .wpcf7 select {
	width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 15px; font-family: Arial, sans-serif; box-sizing: border-box;
	background: #fff; transition: border-color 0.3s, box-shadow 0.3s; }
.wpcf7 select { background: #efefef; }
.wpcf7 input:focus, .wpcf7 textarea:focus, .wpcf7 select:focus { border-color: #ff6b6b; box-shadow: 0 0 5px rgba(255, 107, 107, 0.4); outline: none; }
.wpcf7 form fieldset { border: 1px solid #ddd; padding: 15px 20px; margin: 0 0 20px; border-radius: 8px; background-color: #fff; }
.wpcf7 form fieldset legend { font-weight: 600; color: #ff6b6b; padding: 0 5px; }
.wpcf7 form fieldset label, .wpcf7 .wpcf7-list-item label { display: inline; font-weight: 400; margin: 0; color: #000; }
.wpcf7 input[type="checkbox"], .wpcf7 input[type="radio"] { margin-right: 8px; transform: scale(1.1); cursor: pointer; vertical-align: middle; }
.wpcf7 form ul { margin-left: 20px; margin-bottom: 15px; }
.wpcf7 input[type="submit"] { background-color: #ff6b6b; color: #fff; font-weight: 600; padding: 12px 25px; margin-top: 15px; border: none; border-radius: 6px; cursor: pointer; font-size: 16px; transition: background-color 0.3s; }
.wpcf7 input[type="submit"]:hover { background-color: #e04f4f; }
.wpcf7 input[type="submit"]:disabled { opacity: 0.6; cursor: wait; }
/* CF7's own stylesheet */
.wpcf7-list-item { display: inline-block; margin: 0 0 0 1em; }
.wpcf7-list-item-label::before, .wpcf7-list-item-label::after { content: " "; }
.wpcf7-form-control-wrap { position: relative; }
.wpcf7-not-valid-tip { color: #dc3232; font-size: 1em; font-weight: normal; display: block; }
.wpcf7-not-valid { border-color: #dc3232 !important; }
.wpcf7 form .wpcf7-response-output { margin: 2em 0.5em 1em; padding: 0.2em 1em; border: 2px solid #00a0d2; }
.wpcf7 form.sent .wpcf7-response-output { border-color: #46b450; }
.wpcf7 form.failed .wpcf7-response-output { border-color: #dc3232; }
.wpcf7 form.invalid .wpcf7-response-output { border-color: #ffb900; }

/* ---- WPForms (modern), as on the website's Book Now page ---- */
.cf-booknote { background: #fff4f3; border-left: 4px solid #ff7f76; padding: 18px 20px; font-style: italic; font-size: 17px; color: #222; margin-bottom: 50px; }
.cf-booknote a { text-decoration: none; }
.wpforms-field-container { display: flex; flex-wrap: wrap; column-gap: 4%; }
.wpforms-field { width: 100%; padding: 15px 0; }
.wpforms-field.wpforms-one-half { width: 48%; }
.wpforms-field-label { display: block; font-weight: 700; font-size: 15px; color: #000; margin: 0 0 15px; }
.wpforms-required-label { color: #d63637; font-weight: 400; }
.wpforms-field input[type="text"], .wpforms-field input[type="email"], .wpforms-field input[type="number"] {
	display: block; height: 43px; padding: 0 14px; border: 1px solid #828546; border-radius: 3px; background: #fff; font-size: 16px; color: #000; font-family: Arial, sans-serif; }
.wpforms-field-medium { width: 60%; max-width: 100%; }
.wpforms-field-large { width: 100%; }
.wpforms-field input:focus { outline: none; border-color: #ff7f76; box-shadow: 0 0 0 1px #ff7f76; }
.wpforms-field-checkbox ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px 4%; }
.wpforms-field-checkbox ul.wpforms-list-2-columns { grid-template-columns: 48% 48%; }
.wpforms-field-checkbox li { display: flex; align-items: center; gap: 10px; }
.wpforms-field-checkbox input { width: 18px; height: 18px; margin: 0; accent-color: #d63637; }
.wpforms-field-label-inline { font-size: 15px; color: #000; }
.wpforms-field-description { margin-top: 10px; font-size: 13px; color: #555; }
.wpforms-field-description a { color: #d63637; }
.wpforms-has-error input, .wpforms-has-error ul { border-color: #d63637 !important; }
.wpforms-error { display: block; color: #d63637; font-size: 14px; margin-top: 6px; }
.wpforms-error-container { color: #d63637; border: 1px solid #d63637; background: #fff5f5; padding: 10px 15px; border-radius: 3px; margin: 10px 0; }
.wpforms-submit-container { padding: 10px 0 0; }
.wpforms-submit { background: #e8524c; color: #fff; border: 0; border-radius: 3px; padding: 0 15px; height: 41px; font-size: 17px; cursor: pointer; }
.wpforms-submit:hover { background: #d63637; }
.wpforms-submit:disabled { opacity: 0.6; cursor: wait; }
.wpforms-confirmation-container { background: #e0ffc7; border: 1px solid #b4d39b; padding: 15px 20px; border-radius: 3px; }
.wpforms-confirmation-container p { margin: 0; }

@media (max-width: 600px) {
	.cf-banner { min-height: 220px; }
	.wpcf7 form, .wpcf7 .wpcf7-form { padding: 20px 15px; }
	.wpforms-field.wpforms-one-half, .wpforms-field-medium { width: 100%; }
	.wpforms-field-checkbox ul.wpforms-list-2-columns { grid-template-columns: 1fr; }
}

/* the website's logo on the banner: back to craigsfarm.org.uk */
.cf-home-logo { position: absolute; top: 24px; left: clamp(16px, 5vw, 70px); z-index: 1; display: block; transition: opacity 0.2s; }
.cf-home-logo img { display: block; height: 52px; width: auto; }
.cf-home-logo:hover { opacity: 0.85; }
@media (max-width: 600px) { .cf-banner { padding-top: 90px; } .cf-home-logo { top: 18px; } .cf-home-logo img { height: 42px; } }
/* the template's <br> after each label would add an empty line under a block label */
.wpcf7 form label + br { display: none; }
/* the room a room's own Book Now link came with */
.cf-banner { flex-direction: column; }
.cf-banner-sub { position: relative; margin: 12px 0 0; padding: 6px 18px; border: 2px solid #fff; color: #fff; font-size: 18px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
