/* Forms (includes/forms.php). Values from the Elementor forms: Roboto 15px,
   white fields with a 1px red border, bold labels, 20px between rows and
   10px side padding per field, outlined red button. */
/* The forms carry Elementor's form classes, so on the converted pages Elementor's CSS and the
   page's own form settings style them; the look below is for a form without them
   (:not(.elementor-form)). The rest (errors, messages, honeypot) holds for both.
   In a cascade layer, so the Elementor CSS wins wherever both apply. */
@layer shetland-forms {
.sh-form { --sh-red: #aa1222; --sh-navy: #00325f; --sh-text: #2f2f2f; }
.sh-form:not(.elementor-form) { font-family: Roboto, sans-serif; font-size: 15px; color: var(--sh-text); }
.sh-form:not(.elementor-form) .sh-form__fields { display: flex; flex-wrap: wrap; margin: 0 -10px -20px; }
.sh-form:not(.elementor-form) .sh-form__field { box-sizing: border-box; flex: 0 0 var(--w, 100%); max-width: var(--w, 100%); padding: 0 10px; margin-bottom: 20px; }
.sh-form__field[hidden] { display: none; }
.sh-form:not(.elementor-form) .sh-form__label { display: block; padding-bottom: 5px; font-weight: 700; line-height: 20px; }
.sh-form:not(.elementor-form) input[type=text], .sh-form:not(.elementor-form) input[type=email], .sh-form:not(.elementor-form) input[type=tel], .sh-form:not(.elementor-form) input[type=number], .sh-form:not(.elementor-form) input[type=date], .sh-form:not(.elementor-form) select, .sh-form:not(.elementor-form) textarea {
	box-sizing: border-box; width: 100%; margin: 0; border: 1px solid var(--sh-red); border-radius: 0; background: #fff; color: var(--sh-text); font: 400 15px/24px Roboto, sans-serif;
}
.sh-form:not(.elementor-form) input[type=text], .sh-form:not(.elementor-form) input[type=email], .sh-form:not(.elementor-form) input[type=tel], .sh-form:not(.elementor-form) input[type=number], .sh-form:not(.elementor-form) input[type=date], .sh-form:not(.elementor-form) select:not([multiple]) { height: 40px; padding: 7px 16px; }
.sh-form:not(.elementor-form) select[multiple] { padding: 4px 8px; }
.sh-form:not(.elementor-form) textarea { padding: 5px 14px; min-height: 96px; resize: vertical; }
.sh-form input:focus-visible, .sh-form select:focus-visible, .sh-form textarea:focus-visible { outline: 2px solid var(--sh-navy); outline-offset: 1px; }
/* Options: Elementor's look comes from its own CSS (elementor-form classes); these are for a form without it. */
.sh-form:not(.elementor-form) .sh-form__option { display: inline-block; margin-right: 12px; line-height: 20px; padding: 3px 0; cursor: pointer; }
.sh-form:not(.elementor-form) .sh-form__group--inline .sh-form__option { display: inline-block; margin-right: 16px; }
.sh-form:not(.elementor-form) .sh-form__option input { margin: 0 6px 0 0; vertical-align: -1px; accent-color: var(--sh-red); }
.sh-form:not(.elementor-form) .sh-form__acceptance { display: flex; gap: 6px; align-items: flex-start; }
.sh-form:not(.elementor-form) .sh-form__acceptance input { margin-top: 3px; flex: 0 0 auto; }
.sh-form:not(.elementor-form) .sh-form__acceptance a { color: var(--sh-red); }
.sh-form__field.is-invalid input, .sh-form__field.is-invalid select, .sh-form__field.is-invalid textarea { border-width: 2px; background: #fff6f6; }
.sh-form__field.is-invalid .sh-form__label { color: var(--sh-red); }
.sh-form:not(.elementor-form) .sh-form__submit { height: 40px; padding: 0 24px; border: 2px solid var(--sh-red); border-radius: 0; background: #fff; color: var(--sh-red); font: 900 13px/1 Roboto, sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.sh-form:not(.elementor-form) .sh-form__submit:hover, .sh-form:not(.elementor-form) .sh-form__submit:focus-visible { background: var(--sh-red); color: #fff; }
.sh-form__submit:disabled { opacity: .6; cursor: wait; }
.sh-form__msg { margin-top: 16px; padding: 10px 14px; font-weight: 600; }
.sh-form__msg--ok { background: #eef7ee; color: #1f6b2a; }
.sh-form__msg--err, .sh-form__msg--required, .sh-form__msg--email { background: #fff2f2; color: var(--sh-red); }
.sh-form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sh-form--no-labels .sh-form__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 767px) {
	.sh-form:not(.elementor-form) .sh-form__field { flex-basis: 100%; max-width: 100%; }
}
}

/* Outside the layer: hidden (conditional) fields stay hidden whatever the Elementor CSS says. */
.sh-form [hidden] { display: none !important; }
/* Course data filled in from the chosen course (the old site set this inline). */
.sh-form input[readonly] { background-color: #f2f2f2 !important; color: #333 !important; border-color: #ddd !important; pointer-events: none; }
