/* Eastwind — the enquiry form (Fluent Forms markup restyled to the prototype, docs/12) */
.ew-form .fluentform { font-family: var(--ew-sans); }
.ew-form .frm-fluent-form { display: flex; flex-direction: column; }
/* F-01: fieldset is the form's only direct child — the flex column (and the spacing) belongs here, not on .frm-fluent-form */
.ew-form .frm-fluent-form fieldset { display: flex; flex-direction: column; border: 0; margin: 0; padding: 0; min-width: 0; }
.ew-form .ff-el-group { margin: 0; margin-top: clamp(12px, 1.6vw, 16px); }
.ew-form .frm-fluent-form fieldset > .ff-el-group:first-of-type { margin-top: 0; }
/* Privacy note reads after the submit button visually, without moving it in the DOM */
.ew-form .ff-el-group.ff-custom_html { order: 3; margin-top: 10px; }
.ew-form .ff-el-input--label { margin-bottom: 7px; }
.ew-form .ff-el-input--label label { font-family: var(--ew-caps); font-size: 11.5px; letter-spacing: var(--ew-track-kicker); text-transform: uppercase; color: var(--ew-muted); font-weight: 500; display: block; line-height: 1.2; }
.ew-form .ff-el-input--label.ff-el-is-required.asterisk-right label:after { display: none; }
.ew-form .ff-el-form-control, .ew-form input.ff-el-form-control, .ew-form select.ff-el-form-control, .ew-form textarea.ff-el-form-control {
  width: 100%; min-height: 52px; padding: 14px; font-family: var(--ew-sans); font-size: 16px; line-height: 1.4; color: var(--ew-ink);
  background: var(--ew-card); border: 1px solid var(--ew-mist); border-radius: 0; box-shadow: none; transition: border-color var(--ew-dur) ease;
}
.ew-form textarea.ff-el-form-control { line-height: 1.55; min-height: 120px; resize: vertical; }
/* F-10: stroke is a static copy of --ew-muted (#7A6248) — data URIs can't consume custom properties */
.ew-form select.ff-el-form-control { padding-right: 40px; appearance: none; -webkit-appearance: none; background: var(--ew-card) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A6248' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>") no-repeat right 12px center / 18px 18px; }
.ew-form .ff-el-form-control::placeholder { color: var(--ew-muted); opacity: 1; }
.ew-form .ff-el-form-control:focus { outline: 2px solid var(--ew-umber); outline-offset: 2px; border-color: var(--ew-umber); box-shadow: none; }
.ew-form .ff-el-is-error .ff-el-form-control, .ew-form .ff-el-form-control[aria-invalid="true"] { border-color: var(--ew-error); }
.ew-form .ff-el-is-error .error, .ew-form .error.text-danger { color: var(--ew-error); font-size: 13px; margin-top: 6px; font-family: var(--ew-sans); }
.ew-form .ff-btn-submit, .ew-form button[type="submit"] {
  margin-top: 4px; min-height: 54px; width: 100%; background: var(--ew-charcoal); color: var(--ew-cream); border: 0; border-radius: 0; padding: 16px 26px;
  font-family: var(--ew-sans); font-weight: 400; font-size: 12px; letter-spacing: var(--ew-track-btn); text-transform: uppercase; line-height: 1; cursor: pointer; transition: background var(--ew-dur) ease;
}
.ew-form .ff-btn-submit:hover, .ew-form .ff-btn-submit:focus-visible { background: #3D362F; color: var(--ew-cream); }
.ew-form .ff-btn-submit[disabled], .ew-form .ff-btn-submit.ff-working { opacity: .7; cursor: default; }
.ew-form .ff_submit_btn_wrapper { margin: 0; margin-top: clamp(12px, 1.6vw, 16px); order: 2; }
.ew-form .ff-el-group.ff-custom_html p, .ew-form .ff-privacy-note { font-size: 12.5px; line-height: 1.6; color: var(--ew-muted); margin: 0; }
.ew-form .ff-message-success { background: var(--ew-paper); border: 1px solid var(--ew-mist); padding: clamp(22px, 3vw, 34px); box-shadow: none; border-radius: 0; color: var(--ew-body); font-size: clamp(14.5px, 1.5vw, 16.5px); line-height: 1.64; animation: ew-fade .25s ease both; }
.ew-form .ff-message-success .ew-sent__tick { width: 38px; height: 38px; border-radius: 50%; background: var(--ew-moss); color: var(--ew-cream); display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 14px; }
.ew-form .ff-message-success .ew-sent__title { font-family: var(--ew-serif); font-size: clamp(19px, 2.1vw, 24px); line-height: 1.26; color: var(--ew-ink); margin: 0 0 14px; }
.ew-form .ff-message-success strong { color: var(--ew-umber); font-weight: 500; }
.ew-form .ff-message-success p { margin: 0; }
.ew-form .ff-message-success p + p { margin-top: 12px; }
.ew-form .ff-el-input--content { position: relative; }
.ew-form .ff-el-group.ew-ts { display: none; }

/* Same optical centring as .ew-btn: offset the trailing letter-space and the high-riding Jost caps */
.ew-form .ff-btn-submit, .ew-form button[type="submit"] { text-indent: var(--ew-track-btn); padding-top: calc(16px + .15em); padding-bottom: calc(16px - .15em); }
