/*
 * TherapyBuilt v0.3.33 — shared inquiry form layout.
 * The exact same template-parts/contact-section.php appears on the homepage
 * and the standalone /contact/ page. One stylesheet owns its styling.
 * Keep changes here, never in a page-only override.
 */
:where(.tb-editorial,.tb-contact-page) .contact-section,
:where(.tb-editorial,.tb-contact-page) .contact-section * { box-sizing: border-box; }

/* The home wrapper and button are already styled by editorial-home.css;
 * these selectors provide the same foundation when on /contact/ alone. */
.tb-contact-page .wrap { max-width:1270px; padding:0 4.8%; margin:0 auto; }
.tb-contact-page .btn {
 background:#355640; border:1px solid #355640; border-radius:5px; color:#fff;
 padding:14px 24px; font:700 16px/1.35 'DM Sans',Arial,sans-serif;
 text-decoration:none; display:inline-block; cursor:pointer;
 transition:background .16s ease;
}
.tb-contact-page .btn:hover { background:#233e2b; }
.tb-contact-page .btn:focus-visible {outline:3px solid #b47b56;outline-offset:3px;}

/* Contact form component: one visual system on both pages. */
:is(.tb-editorial,.tb-contact-page) .contact-section {
 background:#e3e9df; border-top:1px solid #cfdacc; padding:94px 0 103px;
}
:is(.tb-editorial,.tb-contact-page) .contact-layout {
 display:grid; grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);
 gap:9%; align-items:start;
}
:is(.tb-editorial,.tb-contact-page) .contact-intro h2 {
 max-width:550px; font-family:Georgia,'Iowan Old Style',serif;
 font-size:clamp(41px,4vw,59px); font-weight:400;
 line-height:1.13; letter-spacing:-.034em; color:#202b25; margin:0;
}
:is(.tb-editorial,.tb-contact-page) .contact-intro p {
 font-size:19px; line-height:1.62; color:#415648; max-width:480px;
 margin:24px 0 0;
}
:is(.tb-editorial,.tb-contact-page) .contact-intro .contact-reassurance { font-size:17px; }
:is(.tb-editorial,.tb-contact-page) .contact-mark {
 margin-top:60px; border-top:1px solid #b9c9b8; padding-top:19px;
 font:27px Georgia,serif; max-width:440px; color:#202b25;
}
:is(.tb-editorial,.tb-contact-page) .contact-mark span {
 font:15px 'DM Sans',Arial,sans-serif; display:block; color:#56695a; margin-top:5px;
}
:is(.tb-editorial,.tb-contact-page) .contact-form-panel {
 background:#fffdf9; padding:41px 44px; border:1px solid #d2dcd1;
 box-shadow:0 10px 22px #1b31150d; min-width:0;
}
:is(.tb-editorial,.tb-contact-page) .form-heading {
 font:400 32px/1.15 Georgia,serif; letter-spacing:-.025em;
 margin:0 0 25px; color:#202b25;
}
:is(.tb-editorial,.tb-contact-page) .form-row { margin:0 0 21px; }
:is(.tb-editorial,.tb-contact-page) .form-row label {
 display:block; font-size:16px; line-height:1.4; font-weight:700;
 margin:0 0 8px; color:#2e4433;
}
:is(.tb-editorial,.tb-contact-page) .form-row label small {
 font-size:14px; color:#637766; font-weight:400;
}
:is(.tb-editorial,.tb-contact-page) .form-row input,
:is(.tb-editorial,.tb-contact-page) .form-row textarea,
:is(.tb-editorial,.tb-contact-page) .form-row select {
 background:#fff; width:100%; max-width:100%; display:block; min-height:49px;
 border:1px solid #c5d2c5; border-radius:3px; padding:12px 13px;
 font:17px/1.45 'DM Sans',Arial,sans-serif; color:#21372b;
}
:is(.tb-editorial,.tb-contact-page) .form-row textarea { min-height:140px; resize:vertical; }
:is(.tb-editorial,.tb-contact-page) .form-row input:focus,
:is(.tb-editorial,.tb-contact-page) .form-row textarea:focus,
:is(.tb-editorial,.tb-contact-page) .form-row select:focus {
 outline:2px solid #789b7e; outline-offset:1px;
}
:is(.tb-editorial,.tb-contact-page) .form-privacy {
 font-size:14px; line-height:1.5; color:#687669; margin:12px 0 18px;
}
:is(.tb-editorial,.tb-contact-page) .form-submit { border:0; cursor:pointer; }
:is(.tb-editorial,.tb-contact-page) .form-error {
 background:#faeeee; border:1px solid #dfb8b8; color:#8a2525;
 padding:12px; margin:14px 0; font-size:15px;
}
:is(.tb-editorial,.tb-contact-page) .form-success {
 padding:26px; background:#f1f5ed; border:1px solid #c7d9c3;
}
:is(.tb-editorial,.tb-contact-page) .form-success h3 {
 font:400 30px/1.18 Georgia,serif; margin:0 0 10px;
}
:is(.tb-editorial,.tb-contact-page) .form-success p { font-size:17px; margin:0; }
:is(.tb-editorial,.tb-contact-page) .form-submit[disabled] { opacity:.64; cursor:progress; }
:is(.tb-editorial,.tb-contact-page) .tb-form-honeypot {
 position:absolute!important; left:-9999px!important;
 width:1px!important; height:1px!important; overflow:hidden!important;
}
/* Respect HTML hidden state even when other theme styles specify display. */
:is(.tb-editorial,.tb-contact-page) .tb-editorial-contact-form [hidden] {display:none!important;}

@media (max-width:820px) {
 :is(.tb-editorial,.tb-contact-page) .contact-layout {
  grid-template-columns:minmax(0,1fr); gap:40px;
 }
 :is(.tb-editorial,.tb-contact-page) .contact-mark { margin-top:35px; }
}
@media (max-width:600px) {
 .tb-contact-page .wrap { padding:0 6%; }
 .tb-contact-page .btn {font-size:15px;padding:14px 18px;}
 :is(.tb-editorial,.tb-contact-page) .contact-section {padding:68px 0;}
 :is(.tb-editorial,.tb-contact-page) .contact-intro h2 {font-size:45px;}
 :is(.tb-editorial,.tb-contact-page) .contact-intro p {font-size:17px;}
 :is(.tb-editorial,.tb-contact-page) .contact-form-panel {padding:28px 23px;}
 :is(.tb-editorial,.tb-contact-page) .form-row label {font-size:15.5px;}
}
