/* Gravity Forms, styled by RTG Core.

   This lives in the plugin rather than the theme on purpose. The plugin is
   what switches Gravity Forms' own stylesheet off, so the plugin has to be
   what puts something back. When the switch was in the plugin and the
   replacement was in the theme, updating one without the other left every
   form on the site completely unstyled, which is exactly what happened.
   Whoever turns the lights off provides the torch.

   Every token carries a fallback for the same reason: a form has to look
   right even against a theme that has not caught up yet.
*/

.gform_wrapper{--gf-gap:1rem}
.gform_wrapper form{margin:0}

/* Things Gravity Forms hides with the stylesheet we switched off.
   This block is not cosmetic. Without it the honeypot renders as a real
   field on the page, complete with the words "This field is for validation
   purposes and should be left unchanged", which both looks broken and tells
   a bot exactly which field to leave alone. */
.gform_wrapper .gform_validation_container,
.gform_wrapper .gform_honeypot,
.gform_wrapper .gfield--type-honeypot,
.gform_wrapper .gfield_visibility_hidden,
.gform_wrapper .gform_hidden,
.gform_wrapper input[type="hidden"],
.gform_wrapper .gf_invisible{
  display:none!important;
  position:absolute!important;
  left:-9999px!important;
}

/* Labels that exist only for a screen reader, including a field whose label
   is set to Hidden in Gravity Forms: the careers form's second tick, which
   reads as one more line under the first (Ian, 23 November 2026). */
.gform_wrapper .screen-reader-text,
.gform_wrapper .gform-field-label--visually-hidden,
.gform_wrapper .hidden_label > .gfield_label{
  position:absolute!important;width:1px;height:1px;
  padding:0;margin:-1px;overflow:hidden;
  clip:rect(0,0,0,0);white-space:nowrap;border:0;
}

/* The field grid. Gravity Forms marks a field half width or full width; this
   is what makes that mean something once its own stylesheet is gone. */
.gform_fields{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  column-gap:var(--gf-gap);
  row-gap:var(--gf-gap);
  margin:0;padding:0;list-style:none;
}
.gfield{grid-column:1/-1;display:grid;gap:.4rem;align-content:start;min-width:0}

/* Half width has to answer to the form's own width, not the window's.
   This was a viewport query, and a form in a 440px sidebar on a 1440px
   screen passed it: the fields split to about 200px each and every
   description under them wrapped to four lines. The window was wide. The
   form was not, and the window was the only thing being asked. */
/* 380px, not 560. Two columns need about 180px each to be worth having,
   and 380 minus the 16px gap is 182. Held at 560 this rule stacked the
   band form in its 420px card on every page of the site, which is a change
   nobody asked for; held at the window it split a 314px card into 145px
   fields, which is the fault in the other direction. */
.gform_wrapper{container:rtgform / inline-size}
@container rtgform (min-width:380px){
  .gfield--width-half{grid-column:span 6}
  .gfield--width-third{grid-column:span 4}
  .gfield--width-quarter{grid-column:span 3}
}
@supports not (container-type:inline-size){
  @media (min-width:560px){
    .gfield--width-half{grid-column:span 6}
    .gfield--width-third{grid-column:span 4}
    .gfield--width-quarter{grid-column:span 3}
  }
}

/* Labels. The old output inherited a near-black from Gravity Forms and
   vanished on the dark panel, which is the fault Ian caught. */
.gfield_label{
  font-family:"IBM Plex Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
  font-size:.8125rem;font-weight:600;letter-spacing:.02em;
  color:var(--text, #191327);margin:0;display:block;
}
.gfield_label .gfield_required{margin-left:.35rem;white-space:nowrap}
/* Required was shouting in red. It is a hint, not an error. */
.gfield_required_text{
  font-weight:400;font-size:.75rem;color:var(--text-muted, #5C5474);
  text-transform:lowercase;letter-spacing:0;
}
/* The hint under a field. With the Gravity Forms stylesheet off it came out
   at body size, louder than the label it belongs to. */
.gfield_description{
  font-size:.8125rem;line-height:1.5;color:var(--text-muted, #5C5474);
  margin-top:.4rem;
}

/* Controls. */
.gform_wrapper input[type="text"],
.gform_wrapper input[type="email"],
.gform_wrapper input[type="tel"],
.gform_wrapper input[type="url"],
.gform_wrapper input[type="number"],
.gform_wrapper select,
.gform_wrapper textarea{
  width:100%;max-width:100%;box-sizing:border-box;
  font:inherit;font-size:1rem;line-height:1.5;
  color:var(--text, #191327);background:var(--surface, #FFFFFF);
  border:1px solid var(--field-border, #8A7EA8);border-radius:10px;
  padding:.6rem .75rem;
  transition:border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance:none;appearance:none;
}
/* Gravity Forms sets rows="10", which renders a textarea about twice the
   height the design wants. An explicit height overrides the attribute; the
   min-height keeps it usable if somebody drags it smaller. */
.gform_wrapper textarea{height:9.5rem;min-height:6rem;resize:vertical}
.gform_wrapper ::placeholder{color:var(--text-muted, #5C5474);opacity:1}

.gform_wrapper input:focus-visible,
.gform_wrapper select:focus-visible,
.gform_wrapper textarea:focus-visible{
  outline:2px solid var(--accent, #8D3092);outline-offset:2px;
  border-color:var(--brand, #523092);
}

/* The checkbox on the careers form. */
.gfield_checkbox{list-style:none;margin:0;padding:0;display:grid;gap:.5rem}
.gchoice{display:flex;gap:.6rem;align-items:flex-start}
.gchoice input[type="checkbox"]{
  flex:0 0 auto;width:1.1rem;height:1.1rem;margin:.2rem 0 0;
  accent-color:var(--brand, #523092);
}
.gform-field-label--type-inline{
  font-size:.9375rem;font-weight:400;color:var(--text, #191327);line-height:1.5;
}

/* The button. It was Gravity Forms' default blue. */
.gform_footer{margin-top:1.25rem;padding:0}
.gform_wrapper .gform_button{
  font:inherit;font-size:.9375rem;font-weight:600;
  background:var(--brand, #523092);color:var(--brand-ink, #FFFFFF);
  border:1px solid var(--brand, #523092);border-radius:999px;
  padding:.7rem 1.5rem;cursor:pointer;
  transition:background .15s ease, border-color .15s ease, transform .15s ease;
}
.gform_wrapper .gform_button:hover{background:var(--brand-hover, #3E2372);border-color:var(--brand-hover, #3E2372)}
.gform_wrapper .gform_button:active{transform:translateY(1px)}
.gform_wrapper .gform_button:focus-visible{outline:2px solid var(--accent, #8D3092);outline-offset:2px}

/* Validation and confirmation, which also come unstyled once Gravity Forms'
   stylesheet is off. A form that fails silently is worse than no form. */
.gform_wrapper .gfield_error input,
.gform_wrapper .gfield_error textarea,
.gform_wrapper .gfield_error select{border-color:#C0392B}
.gform_wrapper .gfield_validation_message,
.gform_wrapper .validation_message{
  font-size:.8125rem;color:#C0392B;margin-top:.15rem;
}
.gform_wrapper .gform_validation_errors{
  border:1px solid #C0392B;border-radius:10px;
  padding:.85rem 1rem;margin:0 0 1.25rem;background:var(--surface, #FFFFFF);
}
.gform_wrapper .gform_validation_errors h2{font-size:.9375rem;margin:0;color:var(--text, #191327)}
.gform_confirmation_message{
  border:1px solid var(--border-strong, #CFC6E4);border-left:4px solid var(--brand, #523092);
  border-radius:10px;padding:1rem 1.15rem;background:var(--surface, #FFFFFF);color:var(--text, #191327);
}
.gform_wrapper .gform_ajax_spinner{display:inline-block;margin-left:.6rem;vertical-align:middle}

/* Only ever shown to a person who can fix it. */
.rtg-form-missing{
  padding:.75rem 1rem;border:1px dashed var(--border-strong, #CFC6E4);border-radius:10px;
  font-size:.875rem;color:var(--text-muted, #5C5474);background:var(--bg-2);
}

/* The purple CTA band. It is a light card whatever the page theme, so the
   fields inside it have to follow the card rather than the page. Getting
   this wrong is how the labels disappeared in the first place. */
.band-form .gfield_label{color:var(--band-card-text, #191327)}
.band-form .gfield_required_text,
.band-form .gfield_description{color:#5C5474}
.band-form .gform_wrapper input[type="text"],
.band-form .gform_wrapper input[type="email"],
.band-form .gform_wrapper input[type="tel"],
.band-form .gform_wrapper textarea{
  background:#FFFFFF;color:#191327;border-color:#8A7EA8;
}
.band-form .gform_wrapper ::placeholder{color:#5C5474}
.band-form .gform_wrapper .gform_button{
  background:#523092;border-color:#523092;color:#fff;width:100%;
}
.band-form .gform_wrapper .gform_button:hover{background:#3E2372;border-color:#3E2372}


/* =========================================================================
   The price estimator on /pricing/ (Ian, 20 November 2026), which replaced
   the PriceGuide frame there. One question a step, answers as rows
   rather than tiles, so every step fits a laptop screen and a phone without
   a frame. Everything here is scoped to .estimate-card and follows the
   site's tokens, so it is right in light and dark for the same reason the
   rest of the site is. Brand: RTGroup Purple for buttons and the selected
   answer, Source Serif 4 for the questions.
   ========================================================================= */
.estimate-card{
  container:estimate / inline-size;
  max-width:760px;box-sizing:border-box;
  background:var(--surface, #FFFFFF);border:1px solid var(--border, #E4DFEF);
  border-radius:14px;box-shadow:var(--shadow);
  padding:clamp(1.25rem,4vw,2.5rem);
}
@media (max-width:640px){.estimate-card{border-radius:10px}}

/* Step x of 8, and a slim bar. The percentage is for the bar's width only. */
.estimate-card .gf_progressbar_wrapper{margin:0 0 1.5rem}
.estimate-card .gf_progressbar_title{
  font-family:"IBM Plex Mono",ui-monospace,monospace;font-size:.75rem;font-weight:500;
  letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted, #5C5474);margin:0 0 .5rem;
}
.estimate-card .gf_progressbar{height:4px;border-radius:2px;background:var(--border, #E4DFEF);overflow:hidden}
.estimate-card .gf_progressbar_percentage{height:100%;border-radius:2px;background:var(--brand, #523092);transition:width .3s ease}
.estimate-card .gf_progressbar_percentage span{
  position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;
}

/* The question. A fieldset, so its legend is what a screen reader reads
   with each answer; it looks like a heading. Every question needs an answer
   and Next says so if one is missing, so "(required)" is kept for screen
   readers but not shown. */
.estimate-card fieldset.gfield{border:0;margin:0;padding:0;min-width:0}
.estimate-card .estimate-question > .gfield_label,
.estimate-card .estimate-step-title{
  font-family:"Source Serif 4",Georgia,serif;font-size:clamp(1.35rem,1.1rem + 1vw,1.75rem);
  font-weight:600;letter-spacing:0;line-height:1.2;color:var(--text, #191327);
  padding:0;margin:0 0 .4rem;
}
.estimate-card .estimate-question > .gfield_label .gfield_required{
  position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;
}
.estimate-card .estimate-question .gfield_description{
  font-size:1rem;line-height:1.55;color:var(--text-muted, #5C5474);margin:0 0 .75rem;
}
.estimate-card .estimate-question .gfield_description p{margin:0}

/* Learn more: a disclosure, closed until asked for. 44px tall to tap. */
.estimate-card .estimate-more{margin-top:.15rem}
.estimate-card .estimate-more summary{
  display:inline-flex;align-items:center;gap:.45rem;min-height:44px;cursor:pointer;
  list-style:none;font-size:.875rem;font-weight:600;color:var(--brand, #523092);
}
.estimate-card .estimate-more summary::-webkit-details-marker{display:none}
.estimate-card .estimate-more summary::before{
  content:"";width:.45rem;height:.45rem;border-right:2px solid currentColor;border-bottom:2px solid currentColor;
  transform:rotate(-45deg);transition:transform .15s ease;
}
.estimate-card .estimate-more[open] summary::before{transform:rotate(45deg)}
.estimate-card .estimate-more summary:focus-visible{outline:2px solid var(--accent, #8D3092);outline-offset:3px;border-radius:3px}
.estimate-card .estimate-more p{margin:.1rem 0 .4rem;font-size:.9375rem;max-width:62ch}

/* Answers as full-width rows, two to a row where the card has room. The
   whole row answers a tap: the label's box is stretched over it. */
.estimate-card .gfield_radio,
.estimate-card .gfield_checkbox{display:grid;grid-template-columns:1fr;gap:.5rem;margin:0;padding:0;list-style:none}
@container estimate (min-width:560px){
  .estimate-card .gfield_radio,
  .estimate-card .gfield_checkbox{grid-template-columns:repeat(2,minmax(0,1fr))}
}
.estimate-card .gchoice{
  position:relative;display:flex;align-items:center;gap:.75rem;min-height:48px;
  padding:0 1rem;box-sizing:border-box;
  border:1px solid var(--border-strong, #CFC6E4);border-radius:10px;background:var(--surface, #FFFFFF);
  transition:border-color .15s ease, background-color .15s ease;
}
.estimate-card .gchoice:hover{border-color:var(--brand, #523092)}
.estimate-card .gchoice input[type="radio"],
.estimate-card .gchoice input[type="checkbox"]{
  flex:0 0 auto;width:1.15rem;height:1.15rem;margin:0;accent-color:var(--brand, #523092);
}
.estimate-card .gchoice label{
  flex:1;padding:.7rem 0;cursor:pointer;font-size:1rem;line-height:1.35;color:var(--text, #191327);
}
.estimate-card .gchoice label::after{content:"";position:absolute;inset:0;border-radius:inherit}
.estimate-card .gchoice:has(input:checked){
  border-color:var(--brand, #523092);background:var(--brand-soft, #EFEAF8);
  box-shadow:inset 0 0 0 1px var(--brand, #523092);
}
.estimate-card .gchoice:has(input:checked) label{font-weight:600}
.estimate-card .gchoice:has(input:focus-visible){outline:2px solid var(--accent, #8D3092);outline-offset:2px}
.estimate-card .gchoice input:focus-visible{outline:none}

/* The contact step. A shorter message box than the other forms, so the
   step fits a 1366 by 768 laptop with the header showing. */
.estimate-card textarea{height:5.5rem;min-height:4.5rem}
.estimate-card .estimate-intro p,
.estimate-card .estimate-fineprint p{margin:0}
.estimate-card .estimate-intro p{color:var(--text-muted, #5C5474);max-width:58ch}
.estimate-card .estimate-fineprint p{font-size:.875rem;color:var(--text-muted, #5C5474)}
.estimate-card .estimate-fineprint a{color:var(--brand, #523092)}

/* Back and Next. Next sits on the right whether or not Back is there. */
.estimate-card .gform_page_footer,
.estimate-card .gform_footer{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin-top:1.5rem}
.estimate-card .gform_next_button,
.estimate-card .gform_button,
.estimate-card .gform_previous_button{
  -webkit-appearance:none;appearance:none;min-height:48px;padding:.85rem 1.5rem;border-radius:10px;
  font-family:"IBM Plex Sans",sans-serif;font-size:.9375rem;font-weight:600;line-height:1;cursor:pointer;
  transition:background-color .15s ease, border-color .15s ease;
}
.estimate-card .gform_next_button,
.estimate-card .gform_button{
  margin-left:auto;background:var(--brand, #523092);color:var(--brand-ink, #FFFFFF);border:1px solid var(--brand, #523092);
}
.estimate-card .gform_next_button:hover,
.estimate-card .gform_button:hover{background:var(--brand-hover, #3E2372);border-color:var(--brand-hover, #3E2372)}
.estimate-card .gform_previous_button{
  background:transparent;color:var(--text, #191327);border:1px solid var(--border-strong, #CFC6E4);
}
.estimate-card .gform_previous_button:hover{border-color:var(--brand, #523092);color:var(--brand, #523092)}
.estimate-card .gform_next_button:focus-visible,
.estimate-card .gform_button:focus-visible,
.estimate-card .gform_previous_button:focus-visible{outline:2px solid var(--accent, #8D3092);outline-offset:3px}

/* The result, in place of the form. */
.estimate-card .gform_confirmation_message{border:0;border-radius:0;padding:0;background:none}
.estimate-card .estimate-result-title{
  font-family:"Source Serif 4",Georgia,serif;font-size:clamp(1.5rem,1.2rem + 1.2vw,2rem);
  font-weight:600;line-height:1.2;margin:0;color:var(--text, #191327);
}
.estimate-card .estimate-result-title:focus{outline:none}
.estimate-card .estimate-figure{
  font-family:"Source Serif 4",Georgia,serif;font-size:clamp(2rem,1.5rem + 2.2vw,3rem);
  font-weight:600;line-height:1.1;color:var(--brand, #523092);margin:.35rem 0 1rem;
}
.estimate-card .estimate-result > p{max-width:62ch;margin:0 0 .75rem}
.estimate-card .estimate-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin:1.5rem 0}
.estimate-card .estimate-sections h3{
  font-family:"Source Serif 4",Georgia,serif;font-size:1.25rem;font-weight:600;margin:2rem 0 .5rem;color:var(--text, #191327);
}
.estimate-card .estimate-sections p,
.estimate-card .estimate-sections ul{margin:0 0 .5rem;max-width:62ch}
.estimate-card .estimate-sections ul{padding-left:1.15rem}
.estimate-card .estimate-sections li + li{margin-top:.3rem}
.estimate-card .estimate-recap{display:grid;grid-template-columns:1fr;gap:.15rem;margin:0}
.estimate-card .estimate-recap dt{font-weight:600;margin-top:.5rem}
.estimate-card .estimate-recap dd{margin:0;color:var(--text-muted, #5C5474)}
@container estimate (min-width:520px){
  .estimate-card .estimate-recap{grid-template-columns:max-content 1fr;gap:.5rem 1.5rem}
  .estimate-card .estimate-recap dt{margin-top:0}
}
.estimate-card .estimate-about{
  margin-top:2.5rem;padding-top:1.25rem;border-top:1px solid var(--border, #E4DFEF);
  font-size:.875rem;line-height:1.55;color:var(--text-muted, #5C5474);
}
.estimate-card .estimate-about h3{font-size:.9375rem;font-weight:600;margin:0 0 .5rem;color:var(--text, #191327)}
.estimate-card .estimate-about p{margin:0 0 .5rem;max-width:70ch}

/* The IT health check (a draft, Ian, 20 November 2026). Several questions a
   step rather than one, so each question is smaller than an estimator
   question and its answers sit side by side: four across where the card
   has room, two by two on a phone. Same card, rows and buttons as above. */
.estimate-card .check-form .gform_fields{row-gap:1.6rem}
.estimate-card .check-section p{margin:.15rem 0 0;color:var(--text-muted, #5C5474)}
.estimate-card .check-question > .gfield_label{
  font-family:"IBM Plex Sans",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:1rem;font-weight:600;letter-spacing:0;line-height:1.4;
  color:var(--text, #191327);padding:0;margin:0 0 .35rem;
}
.estimate-card .check-question > .gfield_label .gfield_required{
  position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;
}
.estimate-card .check-question .gfield_description{font-size:.875rem;line-height:1.5;color:var(--text-muted, #5C5474);margin:0 0 .5rem}
.estimate-card .check-question .gfield_description p{margin:0}
.estimate-card .check-question .gfield_radio{grid-template-columns:repeat(2,minmax(0,1fr))}
@container estimate (min-width:560px){
  .estimate-card .check-question .gfield_radio{grid-template-columns:repeat(4,minmax(0,1fr))}
}
.estimate-card .check-question .gchoice{min-height:44px;padding:0 .75rem;gap:.55rem}
.estimate-card .check-question .gchoice label{font-size:.9375rem;line-height:1.3;padding:.55rem 0}

/* The result: the score, its band, and what to fix first. */
.estimate-card .check-score{display:flex;align-items:baseline;gap:.6rem;margin:.6rem 0 0}
.estimate-card .check-score-number{
  font-family:"Source Serif 4",Georgia,serif;font-size:clamp(3rem,2.2rem + 3.5vw,4.5rem);
  font-weight:600;line-height:1;color:var(--brand, #523092);font-variant-numeric:tabular-nums;
}
.estimate-card .check-score-of{font-size:1rem;color:var(--text-muted, #5C5474)}
.estimate-card .check-band{
  font-family:"Source Serif 4",Georgia,serif;font-size:1.375rem;font-weight:600;
  margin:.75rem 0 .35rem;color:var(--text, #191327);
}
.estimate-card .check-gaps{padding-left:1.25rem;margin:0 0 1rem;max-width:64ch}
.estimate-card .check-gaps li{margin:0 0 .6rem}
.estimate-card .check-gaps li::marker{color:var(--brand, #523092);font-weight:600}
/* The quick check's way on to the full one: a soft panel, so it reads as an
   offer beside the result rather than another heading in it. */
.estimate-card .check-more{
  margin:0 0 1.5rem;padding:1rem 1.25rem;max-width:62ch;
  background:var(--brand-soft, #EFEAF8);border-left:4px solid var(--brand, #523092);border-radius:0 10px 10px 0;
}
.estimate-card .check-more h3{
  font-family:"Source Serif 4",Georgia,serif;font-size:1.25rem;font-weight:600;margin:0 0 .35rem;color:var(--text, #191327);
}
.estimate-card .check-more p{margin:0 0 .75rem}
.estimate-card .check-more p:last-child{margin:0}
