/* Quote panel (quote-panel.php): slides in from the right over a dimmed page, in the site's cream/ink with pill
   buttons; the form's two sections sit in a left column beside their fields from 850px. */
html.ots-quote-open{overflow:hidden}
/* Outside the panel (the UX Block in UX Builder) the block gets the panel's width and cream, so editing shows the real look. */
html:not(:has(dialog.ots-quote)) :is(.ots-quote__head,.ots-quote-form){--ots-quote-gutter:clamp(20px,3.3vw,64px);box-sizing:border-box;max-width:min(100% - 2 * var(--ots-quote-gutter),1100px - 2 * var(--ots-quote-gutter));margin-inline:auto;background:var(--ots-cream,#fffcf5);box-shadow:0 0 0 var(--ots-quote-gutter) var(--ots-cream,#fffcf5);color:var(--ots-ink,#252324)}
html:not(:has(dialog.ots-quote)) .ots-quote__head{margin-top:var(--ots-quote-gutter);padding-right:0;clip-path:inset(-100vmax -100vmax 0 -100vmax)}
html:not(:has(dialog.ots-quote)) .ots-quote-form{margin-bottom:var(--ots-quote-gutter);clip-path:inset(0 -100vmax -100vmax -100vmax);padding-bottom:clamp(28px,2vw,32px)}
.ots-quote{position:fixed;inset:0 0 0 auto;width:min(1100px,100%);max-width:none;height:100%;max-height:none;margin:0;padding:0;border:0;background:var(--ots-cream,#fffcf5);color:var(--ots-ink,#252324);overflow-y:auto;overscroll-behavior:contain;transform:translateX(100%);transition:transform .45s cubic-bezier(.2,.7,.2,1)}
.ots-quote.is-open{transform:none}
.ots-quote::backdrop{background:rgba(37,35,36,.45);opacity:0;transition:opacity .45s}
.ots-quote.is-open::backdrop{opacity:1}
@media (prefers-reduced-motion:reduce){.ots-quote,.ots-quote::backdrop{transition:none}}

.ots-quote__inner{position:relative;padding:clamp(28px,3.3vw,64px) clamp(20px,3.3vw,64px) clamp(48px,5vw,96px)}
/* A fixed 44px circle: Flatsome's button rules otherwise stretch it (min-height 60px, uppercase). */
.ots-quote .ots-quote__close{position:absolute;top:clamp(20px,2.5vw,48px);right:clamp(20px,2.5vw,48px);z-index:1;display:grid;place-items:center;box-sizing:border-box;width:44px;height:44px;min-width:0;min-height:0;margin:0;padding:0;border:1px solid var(--ots-ink,#252324);border-radius:50%;background:var(--ots-ink,#252324);color:#fff;line-height:0;text-transform:none;box-shadow:none;cursor:pointer;transition:background-color .2s,color .2s}
.ots-quote .ots-quote__close svg{display:block;width:14px;height:14px}
.ots-quote .ots-quote__close:is(:hover,:focus-visible){background:transparent;color:var(--ots-ink,#252324)}
.ots-quote__head{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,4fr) minmax(0,4fr);column-gap:clamp(20px,2.5vw,48px);align-items:start;padding:0 64px clamp(48px,6vw,110px) 0;border-bottom:1px solid var(--ots-ink,#252324)}
.ots-quote__title{margin:0;font-size:clamp(44px,4.4vw,84px);font-weight:400;line-height:1;letter-spacing:-.02em;color:inherit}
.ots-quote__intro{grid-column:2/-1;margin:clamp(10px,1.6vw,30px) 0 0;max-width:360px;font-size:clamp(16px,1.05vw,20px);line-height:1.4;letter-spacing:-.01em}

/* Form: scoped to the form wrapper's id to win over Gravity Forms' own .gform_wrapper.gravity-theme rules. */
#ots-quote-form .gform_wrapper{margin:0}
#ots-quote-form .gform_required_legend{display:none}
/* Gravity Forms' honeypot; hidden here too, since its own CSS is not always loaded (UX Builder). */
#ots-quote-form .gform_validation_container{display:none!important}
#ots-quote-form .gform_fields{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,4fr) minmax(0,4fr);column-gap:clamp(20px,2.5vw,48px);row-gap:clamp(22px,2vw,36px)}
#ots-quote-form .gfield{grid-column:2/-1;margin:0;padding:0}
#ots-quote-form .gfield.ots-quote__half{grid-column:auto}
#ots-quote-form .gfield.ots-quote__half:nth-child(odd of .ots-quote__half){grid-column:2}
#ots-quote-form .gfield.ots-quote__group{grid-column:1;margin:0;padding:clamp(28px,2.6vw,50px) 0 0;border:0}
#ots-quote-form .ots-quote__group--rows-2{grid-row:span 2}
#ots-quote-form .ots-quote__group--rows-3{grid-row:span 3}
/* Each group starts with a rule across the panel. */
#ots-quote-form .gfield.ots-quote__group{position:relative}
#ots-quote-form .gform_fields{container-type:inline-size}
#ots-quote-form .gfield.ots-quote__group~.ots-quote__group::before{content:"";position:absolute;top:0;left:0;width:100cqw;border-top:1px solid var(--ots-ink,#252324)}
#ots-quote-form .gfield.ots-quote__group+.gfield,#ots-quote-form .gfield.ots-quote__group+.gfield+.ots-quote__half{margin-top:clamp(28px,2.6vw,50px)}
#ots-quote-form .gsection_title{margin:0;font-size:clamp(20px,1.67vw,32px);font-weight:400;line-height:1.19;letter-spacing:-.015em}

#ots-quote-form .gfield_label,#ots-quote-form .gfield_label.gform-field-label,.ots-quote legend.gfield_label{display:block;margin:0 0 12px;padding:0;font-size:13px;font-weight:400;line-height:1.3;letter-spacing:.08em;text-transform:uppercase;color:inherit}
#ots-quote-form .gfield_required{color:inherit;margin-left:2px}
#ots-quote-form .gfield_description{margin:8px 0 0;padding:0;font-size:14px;line-height:1.4;color:#5d5852}
#ots-quote-form :is(input[type=text],input[type=email],input[type=tel],textarea){width:100%;margin:0;padding:12px 0;border:0;border-bottom:1px solid var(--ots-ink,#252324);border-radius:0;background:transparent;box-shadow:none;color:inherit;font:inherit;font-size:clamp(16px,1.15vw,20px);line-height:1.4;letter-spacing:-.01em}
#ots-quote-form .ginput_container textarea{min-height:140px;padding:14px 16px;border:1px solid var(--ots-ink,#252324);resize:vertical}
#ots-quote-form :is(input,textarea):focus{outline:0;border-color:var(--ots-ink,#252324);box-shadow:0 2px 0 0 var(--ots-yellow,#ffe600)}
#ots-quote-form .ginput_container textarea:focus{box-shadow:0 0 0 2px var(--ots-yellow,#ffe600)}

/* Service chips: checkboxes shown as the site's secondary pill (same size and font as the contact CTA's, Teamwork
   37355792), black on hover and when chosen. */
#ots-quote-form .ots-quote__chips .gfield_checkbox{display:flex;flex-wrap:wrap;gap:10px}
#ots-quote-form .ots-quote__chips .gchoice{position:relative;margin:0}
#ots-quote-form .ots-quote__chips .gchoice input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
#ots-quote-form fieldset.gfield{min-width:0;border:0}
#ots-quote-form legend.gfield_label{border:0}
#ots-quote-form .ots-quote__chips .gchoice label{display:inline-flex;align-items:center;width:auto;max-width:none;min-height:clamp(44px,2.76vw,53px);margin:0;padding:0 clamp(24px,2.1vw,40px);white-space:nowrap;border:1px solid var(--ots-ink,#252324);border-radius:100px;background:transparent;color:var(--ots-ink,#252324);font-size:clamp(15px,1.15vw,22px);font-weight:400;letter-spacing:-.01em;line-height:1;transition:background-color .2s,color .2s}
#ots-quote-form .ots-quote__chips .gchoice label::before,#ots-quote-form .ots-quote__chips .gchoice label::after{content:none}
#ots-quote-form .ots-quote__chips .gchoice input:is(:hover,:checked)+label{background:var(--ots-ink,#252324);color:#fff}
#ots-quote-form .ots-quote__chips .gchoice input:focus-visible+label{outline:2px solid var(--ots-ink,#252324);outline-offset:3px}

/* Submit: the site's dark pill. */
#ots-quote-form .gform_footer{margin:clamp(36px,3.3vw,64px) 0 0;padding:0;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,4fr) minmax(0,4fr);column-gap:clamp(20px,2.5vw,48px)}
#ots-quote-form .gform_footer>*{grid-column:2/-1}
#ots-quote-form .gform_footer .gform_button{justify-self:start;width:auto;min-height:clamp(44px,2.76vw,53px);margin:0;text-transform:none;font-weight:400;box-shadow:none;padding:0 clamp(24px,2.1vw,40px);border:1px solid var(--ots-ink,#252324);border-radius:100px;background:var(--ots-ink,#252324);color:#fff;font:inherit;font-size:clamp(15px,1.15vw,22px);letter-spacing:-.01em;line-height:1;cursor:pointer;transition:background-color .2s,color .2s}
#ots-quote-form .gform_footer .gform_button:is(:hover,:focus-visible){background:transparent;color:var(--ots-ink,#252324)}
#ots-quote-form .gform_ajax_spinner{margin-left:12px;vertical-align:middle}

/* Errors and confirmation. */
#ots-quote-form .gform_validation_errors{grid-column:1/-1;margin:clamp(28px,2.6vw,50px) 0 0;padding:16px 20px;border:1px solid #9b1c1c;border-radius:0;background:transparent;box-shadow:none}
#ots-quote-form .gform_validation_errors .gform_submission_error{position:relative;margin:0;padding:0 0 0 30px;font-size:16px;font-weight:400;line-height:1.4;color:#9b1c1c}
#ots-quote-form .gform_validation_errors .gform-icon{position:absolute;top:50%;left:0;transform:translateY(-50%)}
#ots-quote-form .gfield_error :is(input,textarea){border-color:#9b1c1c}
#ots-quote-form .gfield_error .gfield_label{color:inherit}
#ots-quote-form .validation_message{margin:8px 0 0;padding:0;border:0;background:none;font-size:14px;color:#9b1c1c}
#ots-quote-form .gform_confirmation_message{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,4fr) minmax(0,4fr);column-gap:clamp(20px,2.5vw,48px);padding:clamp(40px,4vw,80px) 0 0;font-size:clamp(16px,1.15vw,22px);line-height:1.45;color:inherit}
#ots-quote-form .gform_confirmation_message>*{grid-column:2/-1;margin:0}
#ots-quote-form .gform_confirmation_message p{max-width:520px}
#ots-quote-form .gform_confirmation_message h3{margin:0 0 16px;color:inherit;font-size:clamp(38px,3.75vw,72px);font-weight:400;line-height:1.06;letter-spacing:-.01em}

@media (max-width:849px){
  .ots-quote__head{grid-template-columns:1fr;padding-right:56px}
  .ots-quote__intro{grid-column:1}
  #ots-quote-form .gform_fields{grid-template-columns:minmax(0,1fr)}
  #ots-quote-form .gfield,#ots-quote-form .gfield.ots-quote__half,#ots-quote-form .gfield.ots-quote__half:nth-child(odd of .ots-quote__half){grid-column:1}
  #ots-quote-form .ots-quote__group--rows-2,#ots-quote-form .ots-quote__group--rows-3{grid-row:auto}
  #ots-quote-form .gfield.ots-quote__group+.gfield,#ots-quote-form .gfield.ots-quote__group+.gfield+.ots-quote__half{margin-top:0}
  #ots-quote-form .gform_footer{grid-template-columns:1fr}
  #ots-quote-form .gform_footer>*{grid-column:1}
  #ots-quote-form .gform_confirmation_message{grid-template-columns:1fr}
  #ots-quote-form .gform_confirmation_message>*{grid-column:1}
}

/* Marker.io OTS-80: the same button hover as the rest of the site (no lift, colours change together over .35s). */
#ots-quote-form .gform_footer .gform_button{transition:background-color .35s ease,border-color .35s ease,color .35s ease;transform:none}
