/* Shared visual system for Quote, Service Request, and Contact Us. v1.9.16. */
:where(.ts-quote-form-section,.ts-repair-wrap,.ts-contact-form-wrap),
:where(.ts-quote-form-section,.ts-repair-wrap,.ts-contact-form-wrap) *{box-sizing:border-box}
:where(.ts-quote-form-section,.ts-repair-wrap,.ts-contact-form-wrap){font-family:Arial,sans-serif;color:#231f20}
/* Same white card and header across all three forms. */
.ts-quote-form-section .ts-quote-form__container,
.ts-repair-wrap .ts-repair-card,
.ts-contact-form-wrap{width:100%;max-width:800px;margin:0 auto;padding:42px 48px;border:1px solid #d9d9d9;border-radius:6px;background:#fff;box-shadow:0 3px 14px rgba(0,0,0,.06)}
.ts-repair-wrap{background:transparent;padding:0}
.ts-quote-form-section .ts-quote-form__header,
.ts-repair-wrap .ts-repair-header,
.ts-contact-form-wrap .ts-contact-form__header{text-align:center;margin:0 0 32px}
.ts-quote-form-section .ts-quote-form__header h1,
.ts-repair-wrap .ts-repair-header :is(h1,h2),
.ts-contact-form-wrap .ts-contact-form__header h1{font:700 28px/1.2 Arial,sans-serif;color:#231f20;margin:0 0 14px}
.ts-quote-form-section .ts-quote-form__header p,
.ts-repair-wrap .ts-repair-header p,
.ts-contact-form-wrap .ts-contact-form__header p{font:400 16px/1.6 Arial,sans-serif;color:#4d4d4d;margin:0}
/* Identical section headings and field grids. */
.ts-quote-form-section .ts-quote-form__fieldset,
.ts-repair-wrap fieldset{border:0;padding:0;margin:0 0 28px;min-width:0}
.ts-quote-form-section .ts-quote-form__fieldset legend,
.ts-repair-wrap fieldset legend{display:block;width:100%;font:700 17px/1.4 Arial,sans-serif;color:#231f20;border:0;border-bottom:1px solid #d9d9d9;padding:0 0 10px;margin:0 0 18px}
.ts-quote-form-section .ts-quote-form__grid,
.ts-repair-wrap .ts-repair-grid,
.ts-contact-form-wrap .ts-contact-form__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 16px}
.ts-quote-form-section .ts-quote-form__full,
.ts-repair-wrap .ts-repair-full,
.ts-contact-form-wrap .ts-contact-form__full{grid-column:1/-1}
.ts-quote-form-section .ts-quote-form__field label,
.ts-repair-wrap .ts-repair-field label,
.ts-contact-form-wrap .ts-contact-form__field label,
.ts-repair-wrap #ts-service-prequal label{display:block;margin:0 0 7px;font:700 14px/1.4 Arial,sans-serif;color:#231f20}
.ts-quote-form-section .ts-quote-form__field :is(input:not([type=hidden]):not([type=file]),select,textarea),
.ts-repair-wrap .ts-repair-field :is(input:not([type=hidden]):not([type=file]),select,textarea),
.ts-contact-form-wrap .ts-contact-form__field :is(input:not([type=hidden]):not([type=file]),select,textarea),
.ts-repair-wrap #ts-service-prequal select{display:block;width:100%;max-width:100%;min-height:46px;padding:11px 12px;border:1px solid #9ca3af;border-radius:4px;background:#fff;color:#231f20;font:400 16px/1.5 Arial,sans-serif;box-shadow:none}
.ts-quote-form-section textarea,.ts-repair-wrap textarea,.ts-contact-form-wrap textarea{resize:vertical;min-height:140px}
.ts-quote-form-section input[type=file],.ts-repair-wrap input[type=file]{width:100%;max-width:100%;padding:12px;border:1px dashed #9ca3af;border-radius:4px;background:#fff}
.ts-quote-form-section :is(.ts-quote-form__help,.ts-quote-form__required),
.ts-repair-wrap .ts-repair-help,
.ts-contact-form-wrap .ts-contact-form__help{font:400 13px/1.5 Arial,sans-serif;color:#4d4d4d}
.ts-quote-form-section .ts-quote-form__notice,
.ts-repair-wrap .ts-repair-notice,
.ts-contact-form-wrap .ts-contact-form__notice{padding:14px;border-left:4px solid #ffcd00;background:#f3f6f8;color:#231f20;font:400 16px/1.5 Arial,sans-serif}
/* Same button appearance for each form, including prequalification. */
.ts-quote-form-section :is(.ts-quote-form__submit,#ts-prequal-service,#ts-prequal-continue),
.ts-repair-wrap :is(.ts-repair-footer button,#ts-service-continue),
.ts-contact-form-wrap .ts-contact-form__footer button{min-height:48px;padding:12px 26px;border:1px solid #ffcd00;border-radius:4px;background:#ffcd00;color:#231f20;font:700 14px/1.4 Arial,sans-serif;cursor:pointer;text-decoration:none}
.ts-quote-form-section button:disabled,.ts-repair-wrap button:disabled,.ts-contact-form-wrap button:disabled{opacity:.6;cursor:not-allowed}
.ts-quote-form-section .ts-quote-form__footer,
.ts-repair-wrap .ts-repair-footer,
.ts-contact-form-wrap .ts-contact-form__footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:20px 0;font:400 13px/1.5 Arial,sans-serif}
.ts-quote-form-section :focus-visible,.ts-repair-wrap :focus-visible,.ts-contact-form-wrap :focus-visible{outline:3px solid #0047bb;outline-offset:3px}
/* Visibility rules must override theme display styles. */
.ts-quote-form-section [hidden],.ts-repair-wrap [hidden],.ts-contact-form-wrap [hidden]{display:none!important}
.ts-repair-wrap #ts-service-prequal{margin:18px 0 28px}
.ts-repair-wrap #ts-service-prequal h3{font:700 17px/1.4 Arial,sans-serif;border-bottom:1px solid #d9d9d9;padding-bottom:10px}
.ts-repair-wrap #ts-service-prequal select{margin-bottom:18px!important}
.ts-repair-wrap #ts-service-rejected{padding:16px;border-left:4px solid #0047bb;background:#f5f7fa;line-height:1.5}
@media(max-width:600px){
 .ts-quote-form-section .ts-quote-form__container,.ts-repair-wrap .ts-repair-card,.ts-contact-form-wrap{padding:26px 18px;max-width:100%}
 .ts-quote-form-section .ts-quote-form__grid,.ts-repair-wrap .ts-repair-grid,.ts-contact-form-wrap .ts-contact-form__grid{grid-template-columns:minmax(0,1fr)}
 .ts-quote-form-section .ts-quote-form__full,.ts-repair-wrap .ts-repair-full,.ts-contact-form-wrap .ts-contact-form__full{grid-column:auto}
 .ts-quote-form-section .ts-quote-form__header h1,.ts-repair-wrap .ts-repair-header :is(h1,h2),.ts-contact-form-wrap .ts-contact-form__header h1{font-size:24px}
 .ts-quote-form-section .ts-quote-form__footer,.ts-repair-wrap .ts-repair-footer,.ts-contact-form-wrap .ts-contact-form__footer{flex-direction:column;align-items:stretch}
 .ts-quote-form-section .ts-quote-form__footer button,.ts-repair-wrap .ts-repair-footer button,.ts-contact-form-wrap .ts-contact-form__footer button{width:100%}
}

/* v1.9.17: one consistent visual frame for all three entry points.
   Override page/theme spacing and old form-specific styles without changing fields. */
body:has(#quote-form),body:has(#ts-repair-form),body:has(#ts-contact-form){background:#f3f6f8}
body :is(main,.site-main,.site-content,.content-area,.entry-content):has(> #quote-form),
body :is(main,.site-main,.site-content,.content-area,.entry-content):has(> #ts-repair-form),
body :is(main,.site-main,.site-content,.content-area,.entry-content):has(> #ts-contact-form){background:#f3f6f8}
#quote-form.ts-quote-form-section,
#ts-repair-form.ts-repair-wrap{width:100%;max-width:none;margin:0 auto;padding:40px 16px 56px;background:#f3f6f8}
#ts-contact-form.ts-contact-form-wrap{margin:40px auto 56px}
#quote-form .ts-quote-form__container,
#ts-repair-form .ts-repair-card,
#ts-contact-form.ts-contact-form-wrap{box-sizing:border-box;width:100%;max-width:700px;padding:42px 42px;border:1px solid #d9d9d9;border-radius:6px;background:#fff;box-shadow:0 3px 14px rgba(0,0,0,.06)}
#quote-form .ts-quote-form__header,
#ts-repair-form .ts-repair-header,
#ts-contact-form .ts-contact-form__header{margin:0 0 32px;text-align:center}
#quote-form .ts-quote-form__header h1,
#ts-repair-form .ts-repair-header :is(h1,h2),
#ts-contact-form .ts-contact-form__header h1{font:700 28px/1.2 Arial,sans-serif;margin:0 0 14px;color:#231f20}
#quote-form .ts-quote-form__header p,
#ts-repair-form .ts-repair-header p,
#ts-contact-form .ts-contact-form__header p{font:400 16px/1.6 Arial,sans-serif;margin:0;color:#4d4d4d}
#quote-form #ts-prequal-step > .ts-quote-form__help{display:block;margin:0 0 16px;line-height:1.5}
#ts-repair-form #ts-service-prequal > p{margin-bottom:16px}
#quote-form .ts-quote-form__field label,
#ts-repair-form .ts-repair-field label,
#ts-repair-form #ts-service-prequal label,
#ts-contact-form .ts-contact-form__field label{font:700 14px/1.4 Arial,sans-serif;margin:0 0 7px;color:#231f20}
#quote-form .ts-quote-form__field :is(input:not([type=hidden]):not([type=file]),select,textarea),
#ts-repair-form .ts-repair-field :is(input:not([type=hidden]):not([type=file]),select,textarea),
#ts-contact-form .ts-contact-form__field :is(input:not([type=hidden]):not([type=file]),select,textarea),
#ts-repair-form #ts-service-prequal select{width:100%;min-height:46px;padding:11px 12px;border:1px solid #9ca3af;border-radius:4px;background:#fff;font:400 16px/1.5 Arial,sans-serif;color:#231f20}
#quote-form .ts-quote-form__grid,
#ts-repair-form .ts-repair-grid,
#ts-contact-form .ts-contact-form__grid{gap:18px 16px}
#quote-form .ts-quote-form__fieldset legend,
#ts-repair-form fieldset legend,
#ts-repair-form #ts-service-prequal h3{font:700 17px/1.4 Arial,sans-serif;margin:0 0 18px;padding:0 0 10px;border-bottom:1px solid #d9d9d9;color:#231f20}
@media(max-width:600px){
 #quote-form.ts-quote-form-section,#ts-repair-form.ts-repair-wrap{padding:24px 12px 48px}
 #ts-contact-form.ts-contact-form-wrap{margin:24px auto 48px}
 #quote-form .ts-quote-form__container,#ts-repair-form .ts-repair-card,#ts-contact-form.ts-contact-form-wrap{padding:26px 18px}
 #quote-form .ts-quote-form__header h1,#ts-repair-form .ts-repair-header :is(h1,h2),#ts-contact-form .ts-contact-form__header h1{font-size:24px}
}

/* v1.9.18: Match Contact Us page framing to Quote and Service, and reduce notes. */
body:has(#ts-contact-form),
body:has(#ts-contact-form) :is(main,.site-main,.site-content,.content-area,.entry-content,article,.wp-site-blocks,.wp-block-post-content):has(#ts-contact-form){background-color:#f3f6f8!important}
/* The contact form is itself the card; keep the same 40px exterior spacing. */
#ts-contact-form.ts-contact-form-wrap{margin:40px auto 56px!important;max-width:700px!important}
/* Small explanatory copy; headings and field labels remain readable. */
#quote-form .ts-quote-form__header p,
#ts-repair-form .ts-repair-header p,
#ts-contact-form .ts-contact-form__header p{font-size:12px!important;line-height:1.6!important}
#quote-form #ts-prequal-step > .ts-quote-form__help,
#ts-repair-form #ts-service-prequal > p,
#quote-form .ts-quote-form__help,
#ts-repair-form .ts-repair-help,
#ts-contact-form .ts-contact-form__help{font-size:12px!important;line-height:1.6!important}
#quote-form #ts-prequal-step > .ts-quote-form__help,
#ts-repair-form #ts-service-prequal > p{margin-bottom:16px!important}
@media(max-width:600px){#ts-contact-form.ts-contact-form-wrap{margin:24px auto 48px!important}}

/* v1.9.19: Introductory copy is body-sized and centered. The redundant
   prequalification notes are removed from the HTML templates. */
#quote-form .ts-quote-form__header p,
#ts-repair-form .ts-repair-header p,
#ts-contact-form .ts-contact-form__header p{
  font-size:14px!important;line-height:1.55!important;text-align:center!important;
  max-width:540px;margin-left:auto!important;margin-right:auto!important;
}
/* Hide only the contact page's breadcrumb trail, not its navigation. */
body:has(#ts-contact-form) :is(.yoast-breadcrumb,.yoast-breadcrumbs,.rank-math-breadcrumb,.breadcrumbs,.breadcrumb,.breadcrumb-trail,.wp-block-yoast-seo-breadcrumbs){display:none!important}

/* v1.9.22: visually separate conditional screening questions from Project State. */
#quote-form #ts-prequal-local-wrap, #quote-form #ts-prequal-approved-wrap { margin-top:20px; }
#ts-repair-form #ts-service-local, #ts-repair-form #ts-service-approved { margin-top:6px; }
#ts-repair-form label[for="ts-service-local"], #ts-repair-form label[for="ts-service-approved"] { margin-top:20px!important; }

/* Contact page: align form top spacing with Quote and Service pages. */
#ts-contact-form.ts-contact-form-wrap{margin-top:0!important}
@media(max-width:600px){#ts-contact-form.ts-contact-form-wrap{margin-top:0!important}}

/* v1.9.32: The service form embedded in the Quote flow uses the OUTER Quote card.
   No second card, header, page background, or nested framing. The actual
   service form and its independent submission handler remain unchanged. */
#quote-form #ts-inline-service { width:100%; max-width:none; margin:0; padding:0; background:transparent; border:0; box-shadow:none; }
#quote-form #ts-inline-service .ts-repair-wrap,
#quote-form #ts-inline-service .ts-repair-card { width:100%; max-width:none; min-width:0; margin:0; padding:0; background:transparent; border:0; border-radius:0; box-shadow:none; }
#quote-form #ts-inline-service .ts-repair-header { display:none !important; }
#quote-form #ts-inline-service #ts-service-prequal { display:none !important; }
#quote-form #ts-inline-service #ts-service-request-form { width:100%; max-width:none; margin:0; padding:0; }
#quote-form #ts-inline-service .ts-repair-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media(max-width:600px){
  #quote-form #ts-inline-service .ts-repair-grid { grid-template-columns:minmax(0,1fr); }
}
