/* Contact page form (1.10.1): the existing Fluent Forms form inside .tto-contact.
 * Scoped to .tto-contact so no other form on the site changes. Selectors start
 * with "body .tto-contact" and colours / sizes Fluent Forms sets per form carry
 * !important, so its default blue button and small text cannot win.
 * Desktop: First Name | Last Name, then Email | Phone/WhatsApp, then Message
 * full width, followed by supporting text left and submit right. Phones: one
 * column. Unknown Fluent field structures remain full width. */

body .tto-contact{--tc-burgundy:#780b2b;--tc-ink:#2b2a2e;--tc-muted:#5f5b55;--tc-line:#e2d9cb;--tc-field:#fffdf8;background:transparent;color:var(--tc-ink)}
body .tto-contact *{box-sizing:border-box}
body .tto-contact .fluentform,
body .tto-contact .frm-fluent-form{padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}

/* Layout: only Fluent's semantic name, email and telephone structures form
 * pairs. Every other field remains full width, including Message. */
body .tto-contact .frm-fluent-form>fieldset{display:contents;margin:0;padding:0;border:0;min-width:0}
body .tto-contact .frm-fluent-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:24px;row-gap:24px;margin:0}
body .tto-contact .frm-fluent-form>*,
body .tto-contact .frm-fluent-form>fieldset>*{grid-column:1/-1;margin:0!important}
body .tto-contact .ff-name-field-wrapper .ff-t-container{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px!important}
body .tto-contact .ff-name-field-wrapper .ff-t-cell{width:auto!important;margin:0!important}
body .tto-contact .frm-fluent-form>.ff-el-group:not(.ff_submit_btn_wrapper):has(input[type=email]),
body .tto-contact .frm-fluent-form>fieldset>.ff-el-group:not(.ff_submit_btn_wrapper):has(input[type=email]),
body .tto-contact .frm-fluent-form>.ff-el-group:not(.ff_submit_btn_wrapper):has(input[type=tel]),
body .tto-contact .frm-fluent-form>fieldset>.ff-el-group:not(.ff_submit_btn_wrapper):has(input[type=tel]){grid-column:auto}
body .tto-contact .frm-fluent-form>.ff-el-group:has(textarea),
body .tto-contact .frm-fluent-form>fieldset>.ff-el-group:has(textarea){grid-column:1/-1}
body .tto-contact .ff-name-field-wrapper .ff-el-group,
body .tto-contact .ff-t-container .ff-el-group{margin-bottom:0}

/* Labels, fields, placeholders: 16px minimum. */
body .tto-contact .ff-el-input--label{margin-bottom:8px}
body .tto-contact .ff-el-input--label label{color:var(--tc-ink)!important;font-size:16px!important;font-weight:600!important;line-height:1.4!important}
body .tto-contact .ff-el-is-required.asterisk-right label::after{color:var(--tc-burgundy)!important}
body .tto-contact .ff-el-form-control{width:100%;min-height:52px;padding:12px 14px!important;border:1px solid var(--tc-line)!important;border-radius:3px!important;background:var(--tc-field)!important;color:var(--tc-ink)!important;font-size:16px!important;line-height:1.5!important;box-shadow:none!important}
body .tto-contact textarea.ff-el-form-control{min-height:180px;resize:vertical}
body .tto-contact .ff-el-form-control::placeholder{color:#8a847b!important;font-size:16px!important;opacity:1}
body .tto-contact .ff-el-form-control:focus{border-color:var(--tc-burgundy)!important;outline:2px solid rgba(120,11,43,.18);outline-offset:0}

/* Supporting text (left) and Send Message (right). */
body .tto-contact .ff_submit_btn_wrapper{display:flex!important;align-items:center;justify-content:flex-end;gap:24px;text-align:right}
body .tto-contact .tto-contact__note{margin:0;color:var(--tc-muted);font-size:17px;line-height:1.6;text-align:left}
body .tto-contact--inline-note .ff_submit_btn_wrapper .tto-contact__note{flex:1 1 auto}
body .tto-contact>.tto-contact__note{margin-top:18px}
body .tto-contact .ff-btn-submit{flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:14px 30px!important;border:1px solid var(--tc-burgundy)!important;border-radius:3px!important;background:var(--tc-burgundy)!important;background-color:var(--tc-burgundy)!important;color:#fff!important;font-size:17px!important;font-weight:600!important;line-height:1.2!important;box-shadow:none!important;cursor:pointer}
body .tto-contact .ff-btn-submit:hover,body .tto-contact .ff-btn-submit:focus{background:#5c0820!important;background-color:#5c0820!important;border-color:#5c0820!important;color:#fff!important;opacity:1!important}
body .tto-contact .ff-btn-submit:focus-visible{outline:2px solid #ad8446;outline-offset:3px}

/* Validation errors and the confirmation message stay visible, readable. */
body .tto-contact .ff-el-is-error .text-danger,
body .tto-contact .error.text-danger,
body .tto-contact .ff-errors-in-stack,
body .tto-contact .ff-errors-in-stack .error{color:#a3122a!important;font-size:16px!important;line-height:1.5!important}
body .tto-contact .ff-el-is-error .ff-el-form-control{border-color:#a3122a!important}
body .tto-contact .ff-message-success{margin:0;padding:22px 24px;border:1px solid var(--tc-line)!important;border-left:3px solid var(--tc-burgundy)!important;border-radius:3px;background:var(--tc-field)!important;box-shadow:none!important;color:var(--tc-ink)!important;font-size:17px!important;line-height:1.6!important}
body .tto-contact .ff-message-success *{font-size:17px!important;line-height:1.6!important}
body .tto-contact:has(.ff-message-success) .tto-contact__note{display:none}

/* 1.10.20: the page at the homepage scale. The approved Customizer CSS sizes the headline clamp(44px,5.2vw,72px) (72px
 * at 1600px); it now matches the homepage hero headline (40px; 32px on phones) and the letter heading the homepage
 * section heading (27px). Intro, letter and details keep their order and content with homepage-like section padding. */
body .tto-contact .tto-contact__intro{padding:48px 24px 44px}
body .tto-contact .tto-contact__eyebrow{font-size:11px}
body .tto-contact h1{margin:14px 0 14px;font-size:40px;line-height:1.1;letter-spacing:-.5px}
body .tto-contact .tto-contact__intro-copy{line-height:1.6}
body .tto-contact .tto-contact__letter{padding:40px 24px 44px}
body .tto-contact .tto-contact__heading{margin-bottom:24px;padding-bottom:16px}
body .tto-contact .tto-contact__heading h2{font-size:27px;letter-spacing:-.4px}
body .tto-contact .tto-contact__heading span{font-size:13px}
body .tto-contact .tto-contact__details{padding:40px 24px 44px}
body .tto-contact .tto-contact__details .tto-contact__eyebrow{font-size:11px}
body .tto-contact .tto-contact__email{font-size:22px}
/* Desktop: the homepage's 1120px frame; form labels 14px, fields 44px tall with 15px text, the 40px homepage button; phones and tablets keep
 * 16px fields (no iOS zoom on focus) and 52px targets. */
@media (min-width:1025px){
	body .tto-contact :is(.tto-contact__width,.tto-contact__details-inner){max-width:var(--tto-ui-width,1120px)}
	body .tto-contact .frm-fluent-form{row-gap:18px;column-gap:20px}
	body .tto-contact .ff-name-field-wrapper .ff-t-container{gap:20px!important}
	body .tto-contact .ff-el-input--label{margin-bottom:6px}
	body .tto-contact .ff-el-input--label label{font-size:14px!important}
	body .tto-contact .ff-el-form-control{min-height:44px;padding:10px 12px!important;font-size:15px!important}
	body .tto-contact .ff-el-form-control::placeholder{font-size:15px!important}
	body .tto-contact textarea.ff-el-form-control{min-height:150px}
	body .tto-contact .tto-contact__note{font-size:15px}
	body .tto-contact .ff-btn-submit{min-height:40px;padding:0 24px!important;font-size:14px!important;font-weight:700!important}
	body .tto-contact .ff-message-success,body .tto-contact .ff-message-success *{font-size:15px!important}
}

/* Phones: one column, full-width button. */
@media (max-width:760px){
	body .tto-contact .frm-fluent-form{grid-template-columns:minmax(0,1fr);row-gap:18px}
	body .tto-contact .frm-fluent-form>*,
	body .tto-contact .frm-fluent-form>fieldset>*{grid-column:1/-1!important}
	body .tto-contact .ff-name-field-wrapper .ff-t-container{grid-template-columns:minmax(0,1fr);gap:18px!important}
	body .tto-contact .ff_submit_btn_wrapper{flex-direction:column;align-items:stretch;gap:16px}
	body .tto-contact .ff-btn-submit{width:100%;min-height:54px}
	body .tto-contact h1{font-size:32px}
	/* 1.10.20: the two nested group wrappers each add GeneratePress's 30px padding inside the letter's 24px, which left
	 * the form 222px wide on a 390px phone; the letter's own 24px gutter remains (form 342px). */
	body .tto-contact__letter .wp-block-group__inner-container{padding:0}
}

/* 1.10.29 phones (760px and narrower): homepage phone scale; the form heading and "All fields are required" stacked. */
@media (max-width:760px){
	body .tto-contact .tto-contact__intro{padding:32px 20px 30px}
	body .tto-contact .tto-contact__eyebrow{font-size:10.5px;letter-spacing:.14em}
	body .tto-contact .tto-contact__intro h1{font-size:28px;line-height:1.15}
	body .tto-contact .tto-contact__intro-copy{font-size:15px;line-height:1.6}
	body .tto-contact .tto-contact__letter{padding-top:28px;padding-bottom:30px}
	body .tto-contact .tto-contact__width{width:calc(100% - 40px)}
	body .tto-contact .tto-contact__heading{display:block;margin-bottom:18px;padding-bottom:12px}
	body .tto-contact .tto-contact__heading h2{font-size:24px;line-height:1.2}
	body .tto-contact .tto-contact__heading p{margin:4px 0 0;font-size:13px}
	body .tto-contact .ff-el-group{margin-bottom:14px}
	body .tto-contact .ff-el-input--label label{font-size:14px}
	body .tto-contact :is(input[type=text],input[type=email],input[type=tel],textarea){min-height:46px;font-size:16px}
	body .tto-contact textarea{min-height:140px}
	body .tto-contact .ff-btn-submit{width:100%;min-height:46px;font-size:15px}
	body .tto-contact .tto-contact__note{font-size:14px;line-height:1.55}
	body .tto-contact .tto-contact__details{padding:28px 0 32px}
	body .tto-contact .tto-contact__details-inner{width:calc(100% - 40px)}
}

/* 1.10.47 (UAT A6-A8): the Contact Us page layout, moved here from the page so an edit that strips <style> (a
 * connector, a security plugin) cannot break it. Scoped to the Contact page's own <main class="tto-contact" id="contact"> (.tto-contact#contact);
 * the contact form elsewhere is not affected. The same rules may also stay in the page's <style> block: they are
 * identical, so either one alone, or both, give the same result.
 * - Original page rules: full-width <main>, and the form row full width beside its note.
 * - A6: 56px above and below the form on tablet and desktop, 28 / 30px on phones.
 * - A8: Company information. Its section repeats the form section's two group wrappers (.tto-contact__width), so it lines
 *   up with the form at every width; here it is only made a block (not flex) with the form section's 24px side padding,
 *   and on phones its wrappers lose their theme padding, as the form's do. */
body .tto-contact#contact{width:100%;margin-left:0;margin-right:0}
body .tto-contact#contact .tto-contact__width>.wp-block-group__inner-container>.tto-contact.tto-contact--inline-note{width:100%;margin-left:0;margin-right:0}
body .tto-contact#contact .tto-contact__letter{padding-top:56px;padding-bottom:56px}
body .tto-contact#contact :is(.tto-contact__letter,.tto-contact__details) .wp-block-group__inner-container{padding-top:0;padding-bottom:0}
body .tto-contact#contact .tto-contact__details{display:block;padding-left:24px;padding-right:24px}
body .tto-contact#contact p.tto-contact__company-name{margin:12px 0 6px;font-family:Georgia,"Times New Roman",serif;font-size:22px;line-height:1.3;color:#780d30}
body .tto-contact#contact p.tto-contact__company-text{margin:0;font-size:15px;line-height:1.65;color:#5f5b55}
body .tto-contact#contact p.tto-contact__company-text+p.tto-contact__company-text{margin-top:10px}
body .tto-contact#contact a.tto-contact__company-email{display:inline-block;margin-top:12px;padding-bottom:2px;border-bottom:1px solid #c9b4b8;color:#780d30;font-size:15px;text-decoration:none}
body .tto-contact#contact a.tto-contact__company-email:hover,body .tto-contact#contact a.tto-contact__company-email:focus-visible{border-bottom-color:#780d30}
@media (max-width:760px){
	body .tto-contact#contact .tto-contact__letter{padding-top:28px;padding-bottom:30px}
	body .tto-contact#contact .tto-contact__details .wp-block-group__inner-container{padding:0}
	body .tto-contact#contact p.tto-contact__company-name{font-size:20px}
}

/* 1.10.49 (A30): compact company details on pages using the updated content block. */
body .tto-contact#contact .tto-contact__details:has(.tto-contact__company--compact){padding-block:24px}
body .tto-contact#contact .tto-contact__details:has(.tto-contact__company--compact) .wp-block-columns{margin-bottom:0}
body .tto-contact#contact .tto-contact__company--compact{text-align:left}
body .tto-contact#contact .tto-contact__company--compact p.tto-contact__company-name{margin:4px 0 0;font-weight:700}
body .tto-contact#contact .tto-contact__company--compact .tto-contact__company-registration{margin:0 0 10px;color:#5f5b55;font-size:13px;line-height:1.5}
body .tto-contact#contact .tto-contact__company--compact .tto-contact__company-registration small{font-size:inherit}
body .tto-contact#contact .tto-contact__company--compact .tto-contact__company-links{margin:8px 0 0;font-size:15px;line-height:1.65}
body .tto-contact#contact .tto-contact__company--compact .tto-contact__company-links a{display:inline;margin:0;padding:0;border:0;color:#780d30;text-decoration:underline;text-decoration-color:#c9b4b8;text-underline-offset:3px}
body .tto-contact#contact .tto-contact__company--compact .tto-contact__company-links a:is(:hover,:focus-visible){text-decoration-color:currentColor}
@media (max-width:760px){
	body .tto-contact#contact .tto-contact__details:has(.tto-contact__company--compact){padding-block:17px}
}
