/* DnD - FAQ. Loads without blocking the page (meta.json css_render_options async): an FAQ sits low
   on a page, so it is styled before it scrolls into view. The root carries the theme's .ry typography and reset; .ry.fqs selectors keep this
   module's layout, sizes and colors over the theme's reset (.ry div, .ry span), paragraph, list
   and heading rules. Accent, widths and custom sizes arrive as custom properties on the root,
   written per instance in module.html because the breakpoint is a field. */

/* Spacing: Styles > Spacing, desktop above the breakpoint and mobile at it and below */
.ry.fqs {
  padding-top: var(--fqs-pad-top, 0);
  padding-bottom: var(--fqs-pad-bottom, 0);
}

.fqs {
  color: #000000;
  font-family: "Roboto", sans-serif;
}

/* The eyebrow, heading and main text, as in DnD - Heading with left alignment */
.ry.fqs .fqs-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  max-width: var(--fqs-width, none);
  margin-bottom: var(--fqs-list-gap, 48px);
}

.ry.fqs .fqs-text .fqs-eyebrow {
  margin: 0 0 -8px;
  color: var(--fqs-eyebrow-color, #666666);
}

/* The theme's serif-headers rule uses !important; the eyebrow label stays sans either way */
.ry.fqs .fqs-text .fqs-eyebrow-eyebrow {
  font-family: "Roboto", sans-serif !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ry.fqs .fqs-text .fqs-eyebrow-custom {
  font-size: var(--fqs-eyebrow);
  font-weight: 500;
  line-height: 1.3;
}

.ry.fqs .fqs-text .fqs-heading {
  margin: 0;
  color: var(--fqs-heading-color, #000000);
  line-height: 1.15;
}

.ry.fqs .fqs-head-custom .fqs-heading {
  font-size: var(--fqs-head);
  line-height: 1.15;
}

/* Words wrapped in asterisks in the Heading field: the Accent word color, else the accent */
.ry.fqs .fqs-text .fqs-heading .fqs-accent {
  color: var(--fqs-accent-color, var(--fqs-c));
}

.ry.fqs .fqs-text .fqs-main,
.ry.fqs .fqs-text .fqs-main p,
.ry.fqs .fqs-text .fqs-main li {
  color: var(--fqs-main-color, #666666);
}

.ry.fqs .fqs-main-custom .fqs-text .fqs-main,
.ry.fqs .fqs-main-custom .fqs-text .fqs-main p,
.ry.fqs .fqs-main-custom .fqs-text .fqs-main li {
  font-size: var(--fqs-main);
  line-height: 1.6;
}

.ry.fqs .fqs-text .fqs-main > :first-child { margin-top: 0; }
.ry.fqs .fqs-text .fqs-main > :last-child { margin-bottom: 0; }

.ry.fqs .fqs-text .fqs-main a,
.ry.fqs .fqs-item .fqs-a a {
  color: var(--fqs-c);
  font-weight: 600;
}

/* The questions, with Stacked Statements' divider line above the first and below each one */
.ry.fqs .fqs-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--fqs-rule);
}

.ry.fqs .fqs-list .fqs-item {
  margin: 0;
  padding: 0;
  border-bottom: 1px solid var(--fqs-rule);
}

.ry.fqs .fqs-list .fqs-item::before,
.ry.fqs .fqs-list .fqs-item::marker {
  content: none;
}

.ry.fqs .fqs-item .fqs-q {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  font-size: var(--fqs-q-size);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: normal;
  text-transform: none;
  color: var(--fqs-question-color, #000000);
}

/* The whole row is the button. Buttons don't inherit fonts by default, so it takes the
   question's, including the serif-headers face. */
.ry.fqs .fqs-q button.fqs-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  margin: 0;
  padding: 24px 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: none;
  cursor: pointer;
}

.ry.fqs .fqs-q button.fqs-btn:focus-visible {
  outline: 3px solid #00544F;
  outline-offset: 3px;
  border-radius: 4px;
}

.ry.fqs .fqs-btn .fqs-q-text {
  min-width: 0;
}

/* Plus in a circle: an accent outline that fills when the answer is open, as the plus turns
   into a minus */
.ry.fqs .fqs-btn .fqs-icon {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: var(--fqs-icon, 40px);
  height: var(--fqs-icon, 40px);
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--fqs-c);
  border-radius: 50%;
  background: transparent;
  color: var(--fqs-c);
  transition: background-color .2s ease, color .2s ease;
}

.ry.fqs .fqs-btn:hover .fqs-icon {
  background: color-mix(in srgb, var(--fqs-c) 10%, transparent);
}

.ry.fqs .fqs-btn[aria-expanded="true"] .fqs-icon {
  background: var(--fqs-c);
  color: #FFFFFF;
}

.ry.fqs .fqs-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.ry.fqs .fqs-icon .fqs-plus-bar {
  transform-origin: center;
  transition: transform .25s ease;
}

.ry.fqs .fqs-btn[aria-expanded="true"] .fqs-plus-bar {
  transform: scaleY(0);
}

/* Arrow: no circle, and it turns upside down when the answer is open */
.ry.fqs .fqs-icon-chevron .fqs-btn .fqs-icon,
.ry.fqs .fqs-icon-chevron .fqs-btn:hover .fqs-icon,
.ry.fqs .fqs-icon-chevron .fqs-btn[aria-expanded="true"] .fqs-icon {
  border-color: transparent;
  background: transparent;
  color: var(--fqs-c);
}

.ry.fqs .fqs-icon-chevron .fqs-icon svg {
  width: 22px;
  height: 22px;
  transition: transform .25s ease;
}

.ry.fqs .fqs-icon-chevron .fqs-btn[aria-expanded="true"] .fqs-icon svg {
  transform: rotate(180deg);
}

/* Answers. Closed ones carry hidden="until-found", so the browser's find in page can still open
   them. The theme's .ry div { display: block } beats the browser's own rule for [hidden], so
   closed answers are hidden here: content-visibility where hidden="until-found" works, and
   display: none in browsers too old for content-visibility. */
.ry.fqs .fqs-item .fqs-a[hidden] {
  content-visibility: hidden;
}

@supports not (content-visibility: hidden) {
  .ry.fqs .fqs-item .fqs-a[hidden] {
    display: none;
  }
}

/* The inner box holds the padding, so a closed answer takes no space */
.ry.fqs .fqs-a .fqs-a-inner {
  max-width: 760px;
  padding: 0 64px 28px 0;
}

.ry.fqs .fqs-a .fqs-a-inner,
.ry.fqs .fqs-a .fqs-a-inner p,
.ry.fqs .fqs-a .fqs-a-inner li {
  color: var(--fqs-answer-color, #666666);
  font-size: var(--fqs-a-size);
  line-height: 1.6;
}

.ry.fqs .fqs-a .fqs-a-inner > :first-child { margin-top: 0; }
.ry.fqs .fqs-a .fqs-a-inner > :last-child { margin-bottom: 0; }

/* An answer a visitor opens fades in; module.js adds .fqs-opening for this */
.ry.fqs .fqs-a.fqs-opening .fqs-a-inner {
  animation: fqs-open .3s ease;
}

@keyframes fqs-open {
  from { opacity: 0; transform: translate3d(0, -6px, 0); }
  to { opacity: 1; transform: none; }
}

/* Rise in: JS adds .fqs-armed only when it can reveal the text again, so nothing stays hidden
   without JS, in the editor, or for reduce motion. The heading and the list rise separately. */
.ry.fqs.fqs-armed .fqs-text,
.ry.fqs.fqs-armed .fqs-list {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity .6s ease, transform .6s ease;
}

.ry.fqs.fqs-armed .fqs-text.is-in,
.ry.fqs.fqs-armed .fqs-list.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .ry.fqs .fqs-btn .fqs-icon,
  .ry.fqs .fqs-icon svg,
  .ry.fqs .fqs-icon .fqs-plus-bar {
    transition: none;
  }

  .ry.fqs .fqs-a.fqs-opening .fqs-a-inner {
    animation: none;
  }
}

/* DnD - FAQ side card. The card sits in a second grid column beside .fqs-main (the heading and the
   questions). Corners are 24px, like the theme's other cards. Form styles follow DnD - Mid-Page
   CTA's, always stacked, in the card's own colors. */

/* Header height under which a sticky card parks: 79px, 64px at 930px and narrower, 54px at 400px
   and narrower (the .dnd-updates margins in dnd_page.html). Spacing under it is a field. */
.ry.fqs {
  --fqs-hdr: 79px;
}

@media (max-width: 930px) {
  .ry.fqs { --fqs-hdr: 64px; }
}

@media (max-width: 400px) {
  .ry.fqs { --fqs-hdr: 54px; }
}

/* Two columns. The grid items are placed by column, so the card can sit on either side without
   moving in the markup; below the breakpoint (written per instance) it is one column. */
.ry.fqs .fqs-inner.fqs-has-side {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  column-gap: clamp(32px, 4vw, 56px);
  align-items: start;
}

.ry.fqs .fqs-inner.fqs-has-side.fqs-w5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.ry.fqs .fqs-inner.fqs-has-side.fqs-side-left { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.ry.fqs .fqs-inner.fqs-has-side.fqs-side-left.fqs-w5 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }

.ry.fqs .fqs-has-side .fqs-main { grid-column: 1; grid-row: 1; min-width: 0; }
.ry.fqs .fqs-has-side .fqs-side { grid-column: 2; grid-row: 1; }
.ry.fqs .fqs-has-side.fqs-side-left .fqs-main { grid-column: 2; }
.ry.fqs .fqs-has-side.fqs-side-left .fqs-side { grid-column: 1; }

/* The card. Its colors are custom properties set per style below. align-self: start keeps it from
   stretching to the row's height, which would leave sticky nothing to move through. */
.ry.fqs .fqs-side {
  --fqs-sc-bg: #FFFFFF;
  --fqs-sc-ink: #000000;
  --fqs-sc-line: #E6EBF2;
  --fqs-sc-eyebrow: #666666;
  --fqs-sc-body: #666666;
  --fqs-sc-btn: #00544F;
  --fqs-sc-btn-text: #FFFFFF;
  --fqs-sc-link: #00544F;
  --fqs-sc-shadow: #004D47;
  --fqs-sc-tile: #E6F6F5;
  --fqs-sc-focus: #00544F;
  --fqs-sc-error: #991A00;
  --fqs-sc-muted: #666666;
  box-sizing: border-box;
  align-self: start;
  min-width: 0;
  border: 1px solid var(--fqs-sc-line);
  border-radius: 24px;
  background: var(--fqs-sc-bg);
  color: var(--fqs-sc-ink);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease;
}

.ry.fqs .fqs-side-tint {
  --fqs-sc-bg: #E6F6F5;
  --fqs-sc-line: #CCEEEC;
  --fqs-sc-eyebrow: #00544F;
  --fqs-sc-btn: #1A2433;
  --fqs-sc-tile: #FFFFFF;
}

.ry.fqs .fqs-side-dark {
  --fqs-sc-bg: #1A2433;
  --fqs-sc-ink: #FFFFFF;
  --fqs-sc-line: #1A2433;
  --fqs-sc-eyebrow: #A6E1DD;
  --fqs-sc-body: #E6EBF2;
  --fqs-sc-btn: #FFA600;
  --fqs-sc-btn-text: #1A2433;
  --fqs-sc-link: #A6E1DD;
  --fqs-sc-shadow: #6DC5C0;
  --fqs-sc-tile: rgba(255, 255, 255, .1);
  --fqs-sc-focus: #FFFFFF;
  --fqs-sc-error: #FFD4CC;
  --fqs-sc-muted: rgba(255, 255, 255, .75);
}

/* Sticky: --fqs-side-h is the card's own height (module.js), so a card taller than the screen parks
   with its bottom edge in view instead of its top. Without JS it parks at the top offset. */
.ry.fqs .fqs-side-sticky {
  position: sticky;
  top: min(calc(var(--fqs-hdr) + var(--fqs-sticky-gap, 24px)), calc(100vh - var(--fqs-side-h, 0px) - 16px));
}

/* Hover effects, chosen in Styles > Side card. They match the other modules: lift is Feature Cards'
   offset-shadow card, rise is Side by Side Showcase's frame, nudge is Feature Cards' plain card.
   With reduce motion nothing moves; lift still gets its shadow so the hover is visible. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ry.fqs .fqs-side-hover-lift:hover {
    transform: translate(-4px, -6px);
    box-shadow: 6px 8px 0 var(--fqs-sc-shadow);
  }

  .ry.fqs .fqs-side-hover-rise:hover {
    transform: translate3d(0, -4px, 0);
    box-shadow: 0 12px 32px rgba(26, 36, 51, .14);
  }

  .ry.fqs .fqs-side-hover-nudge:hover {
    transform: translateY(-3px);
  }
}

@media (hover: hover) and (prefers-reduced-motion: reduce) {
  .ry.fqs .fqs-side-hover-lift {
    transition: none;
  }

  .ry.fqs .fqs-side-hover-lift:hover {
    box-shadow: 6px 8px 0 var(--fqs-sc-shadow);
  }
}

/* Art: a teal header with grain and paper (the same tiles as Side by Side Showcase's frames), a
   badge pill, and an image or a Lottie in the middle. The header holds the rounded corners
   itself, so the card's focus rings aren't clipped. */
.ry.fqs .fqs-side-art {
  position: relative;
  height: 210px;
  overflow: hidden;
  border-radius: 23px 23px 0 0;
  background: var(--fqs-art-bg, #00544F);
}

.ry.fqs .fqs-side-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 -1.5'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.15'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23g%29'/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320'%3E%3Cfilter id='p' x='0' y='0'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.08' numOctaves='4' seed='1' stitchTiles='stitch' result='n'/%3E%3CfeDiffuseLighting in='n' surfaceScale='1.2' diffuseConstant='1' lighting-color='%23fff' result='l'%3E%3CfeDistantLight azimuth='225' elevation='55'/%3E%3C/feDiffuseLighting%3E%3CfeColorMatrix in='l' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -0.34 0 0 0 0.270' result='d'/%3E%3CfeColorMatrix in='l' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0.20 0 0 0 -0.170' result='h'/%3E%3CfeMerge%3E%3CfeMergeNode in='d'/%3E%3CfeMergeNode in='h'/%3E%3C/feMerge%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23p%29'/%3E%3C/svg%3E");
  background-size: 160px 160px, 320px 320px;
  opacity: .55;
  pointer-events: none;
}

.ry.fqs .fqs-side-art .fqs-side-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  padding: 20px;
  object-fit: contain;
  color: transparent;
}

.ry.fqs .fqs-side-art .fqs-side-img[data-fit="cover"] {
  padding: 0;
  object-fit: cover;
}

.ry.fqs .fqs-side-art .fqs-side-lottie {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 250px;
  height: 250px;
  margin: -125px 0 0 -125px;
}

.ry.fqs .fqs-side-lottie .fqs-side-fallback {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ry.fqs .fqs-side-lottie.is-ready .fqs-side-fallback {
  display: none;
}

.ry.fqs .fqs-side-pill {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  color: #00544F;
  font: 600 13px/1 "Roboto", sans-serif;
}

/* A live dot that pulses twice, so it doesn't run longer than 5 seconds */
.ry.fqs .fqs-side-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #08994E;
  box-shadow: 0 0 0 0 rgba(8, 153, 78, .5);
  animation: fqs-live 2s ease-out 2;
}

@keyframes fqs-live {
  from { box-shadow: 0 0 0 0 rgba(8, 153, 78, .5); }
  to { box-shadow: 0 0 0 10px rgba(8, 153, 78, 0); }
}

/* Text */
.ry.fqs .fqs-side-body {
  padding: 28px 28px 30px;
}

.ry.fqs .fqs-side .fqs-side-eyebrow {
  margin: 0 0 12px;
  color: var(--fqs-sc-eyebrow);
  font-family: "Roboto", sans-serif !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ry.fqs .fqs-side .fqs-side-heading {
  margin: 0;
  color: var(--fqs-sc-ink);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: normal;
  text-transform: none;
  text-wrap: balance;
}

.ry.fqs .fqs-side .fqs-side-heading .fqs-side-accent {
  color: var(--fqs-side-accent, #007E77);
}

.ry.fqs .fqs-side .fqs-side-main,
.ry.fqs .fqs-side .fqs-side-main p,
.ry.fqs .fqs-side .fqs-side-main li {
  color: var(--fqs-sc-body);
  font-size: 16px;
  line-height: 1.6;
}

.ry.fqs .fqs-side .fqs-side-main {
  margin-top: 12px;
}

.ry.fqs .fqs-side .fqs-side-main > :first-child { margin-top: 0; }
.ry.fqs .fqs-side .fqs-side-main > :last-child { margin-bottom: 0; }

.ry.fqs .fqs-side .fqs-side-main a {
  color: var(--fqs-sc-link);
  font-weight: 600;
}

/* The solid button and the plain arrow link */
.ry.fqs .fqs-side a.fqs-side-btn,
.ry.fqs .fqs-side a.fqs-side-btn:visited {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 60px;
  margin-top: 24px;
  padding: 18px 28px;
  border: 2px solid var(--fqs-sc-btn);
  border-radius: 8px;
  background: var(--fqs-sc-btn);
  color: var(--fqs-sc-btn-text);
  font: 600 20px/20px "Roboto", sans-serif;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease;
}

.ry.fqs .fqs-side a.fqs-side-btn:hover,
.ry.fqs .fqs-side a.fqs-side-btn:focus {
  border-color: var(--fqs-sc-btn);
  background: var(--fqs-sc-btn);
  color: var(--fqs-sc-btn-text);
  text-decoration: none;
}

.ry.fqs .fqs-side a.fqs-side-btn:hover {
  transform: translateY(-2px);
}

.ry.fqs .fqs-side a.fqs-side-link,
.ry.fqs .fqs-side a.fqs-side-link:visited,
.ry.fqs .fqs-side a.fqs-side-link:hover {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--fqs-sc-link);
  font: 600 16px/1.2 "Roboto", sans-serif;
  text-decoration: none;
}

.ry.fqs .fqs-side .fqs-side-link svg {
  flex: none;
  width: 18px;
  height: 18px;
  transition: transform .25s ease;
}

.ry.fqs .fqs-side .fqs-side-link:hover svg {
  transform: translateX(4px);
}

.ry.fqs .fqs-side a.fqs-side-btn:focus-visible,
.ry.fqs .fqs-side a.fqs-side-link:focus-visible {
  outline: 3px solid var(--fqs-sc-focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.ry.fqs .fqs-side a.fqs-side-btn:focus-visible {
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .ry.fqs .fqs-side a.fqs-side-btn,
  .ry.fqs .fqs-side .fqs-side-link svg {
    transition: none;
  }

  .ry.fqs .fqs-side a.fqs-side-btn:hover,
  .ry.fqs .fqs-side .fqs-side-link:hover svg {
    transform: none;
  }

  .ry.fqs .fqs-side-pill i {
    animation: none;
  }
}

/* Form. The theme styles HubSpot's older form markup (form.hs-form, .hs-input, .hs-button), and its
   .ry form rules also reach the newer markup (hsfc- classes). Both are styled here, over those
   rules, as in DnD - Mid-Page CTA: a white field with a visible border, the label above it, and a
   submit button like the solid button. The newer markup also reads HubSpot's --hsf- variables,
   which beat the form's own theme (it only sets --hsf-default-*). The fields always stack, the
   first and last name included, because the card is narrow. */
.ry.fqs .fqs-side-form {
  --fqs-field-h: 52px;
  --fqs-label-gap: 6px;
  --hsf-global__font-family: "Roboto", sans-serif;
  --hsf-global__font-size: 16px;
  --hsf-global__color: var(--fqs-sc-body);
  --hsf-global__error-color: var(--fqs-sc-error);
  --hsf-row__horizontal-spacing: 12px;
  --hsf-row__vertical-spacing: 12px;
  --hsf-module__vertical-spacing: var(--fqs-label-gap);
  --hsf-background__padding: 0;
  --hsf-background__background-color: transparent;
  --hsf-background__background-image: none;
  --hsf-background__border-style: none;
  --hsf-navigationrow-buttons__justify-content: flex-start;
  --hsf-navigationrow-buttons-single__justify-content: flex-start;
  --hsf-field-label__font-family: "Roboto", sans-serif;
  --hsf-field-label__font-size: 14px;
  --hsf-field-label__color: var(--fqs-sc-ink);
  --hsf-field-description__color: var(--fqs-sc-muted);
  --hsf-field-footer__color: var(--fqs-sc-muted);
  --hsf-erroralert__font-size: 14px;
  --hsf-erroralert__color: var(--fqs-sc-error);
  --hsf-richtext__font-size: 13px;
  --hsf-richtext__color: var(--fqs-sc-muted);
  --hsf-button__font-family: "Roboto", sans-serif;
  --hsf-button__font-size: 20px;
  --hsf-button__font-weight: 600;
  --hsf-button__width: 100%;
  --hsf-button__color: var(--fqs-sc-btn-text);
  --hsf-button__background-color: var(--fqs-sc-btn);
  --hsf-button__background-image: none;
  --hsf-button__border-width: 2px;
  --hsf-button__border-style: solid;
  --hsf-button__border-color: var(--fqs-sc-btn);
  --hsf-button__border-radius: 8px;
  --hsf-button__padding: 0 28px;
  --hsf-button__box-shadow: none;
  --hsf-button--hover__color: var(--fqs-sc-btn-text);
  --hsf-button--hover__background-color: var(--fqs-sc-btn);
  --hsf-button--hover__border-color: var(--fqs-sc-btn);
  --hsf-button--focus__color: var(--fqs-sc-btn-text);
  --hsf-button--focus__background-color: var(--fqs-sc-btn);
  --hsf-button--focus__border-color: var(--fqs-sc-btn);
  margin-top: 20px;
}

/* Labels: the theme gives form labels the heading font; these follow the card's text */
.ry.fqs .fqs-side-form label,
.ry.fqs .fqs-side-form label span {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  color: var(--fqs-sc-ink);
}

.ry.fqs .fqs-side-form .hsfc-FieldLabel,
.ry.fqs .fqs-side-form form.hs-form .hs-form-field > label {
  display: block;
  margin: 0 0 var(--fqs-label-gap);
}

.ry.fqs .fqs-side-form input.hsfc-TextInput,
.ry.fqs .fqs-side-form form.hs-form .hs-input:not([type="checkbox"]):not([type="radio"]) {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: var(--fqs-field-h);
  margin: 0;
  padding: 0 16px;
  border: 1px solid #6B7E99;
  border-radius: 6px;
  background: #FFFFFF;
  box-shadow: none;
  color: #000000;
  font: 400 16px/1.2 "Roboto", sans-serif;
}

.ry.fqs .fqs-side-form textarea.hsfc-TextareaInput,
.ry.fqs .fqs-side-form form.hs-form textarea.hs-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 110px;
  height: auto;
  padding: 14px 16px;
  border: 1px solid #6B7E99;
  border-radius: 6px;
  background: #FFFFFF;
  color: #000000;
  font: 400 16px/1.4 "Roboto", sans-serif;
}

.ry.fqs .fqs-side-form input::placeholder,
.ry.fqs .fqs-side-form textarea::placeholder {
  color: #666666;
  opacity: 1;
}

.ry.fqs .fqs-side-form input[aria-invalid="true"],
.ry.fqs .fqs-side-form form.hs-form .hs-input.error {
  padding-left: 15px;
  border: 2px solid #CC2A0A;
}

.ry.fqs .fqs-side-form input:focus-visible,
.ry.fqs .fqs-side-form textarea:focus-visible,
.ry.fqs .fqs-side-form button:focus-visible,
.ry.fqs .fqs-side-form input[type="submit"]:focus-visible {
  outline: 3px solid var(--fqs-sc-focus);
  outline-offset: 3px;
}

.ry.fqs .fqs-side-form .hsfc-ErrorAlert {
  margin-top: 6px;
  color: var(--fqs-sc-error);
  font: 500 14px/1.4 "Roboto", sans-serif;
}

.ry.fqs .fqs-side-form form.hs-form .hs-error-msgs {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}

.ry.fqs .fqs-side-form form.hs-form .hs-error-msgs label,
.ry.fqs .fqs-side-form form.hs-form label.hs-error-msg {
  color: var(--fqs-sc-error);
  font-weight: 500;
}

/* Submit: the solid button, full width */
.ry.fqs .fqs-side-form .hsfc-Button {
  width: 100%;
  min-height: 60px;
  line-height: 20px;
}

.ry.fqs .fqs-side-form form.hs-form .hs-button,
.ry.fqs .fqs-side-form form.hs-form input[type="submit"] {
  display: block;
  width: 100%;
  height: 60px;
  margin: 0;
  padding: 0 28px;
  border: 2px solid var(--fqs-sc-btn);
  border-radius: 8px;
  background: var(--fqs-sc-btn);
  color: var(--fqs-sc-btn-text);
  font: 600 20px/1 "Roboto", sans-serif;
  letter-spacing: 0;
  cursor: pointer;
}

.ry.fqs .fqs-side-form .hsfc-Button:not([disabled]):hover,
.ry.fqs .fqs-side-form form.hs-form .hs-button:hover {
  filter: brightness(.92);
}

.ry.fqs .fqs-side-form form.hs-form .input {
  margin: 0;
  padding: 0;
}

.ry.fqs .fqs-side-form form.hs-form fieldset {
  max-width: none;
  margin: 0;
}

.ry.fqs .fqs-side-form form.hs-form .hs-form-field {
  margin: 0 0 12px;
}

.ry.fqs .fqs-side-form form.hs-form .hs_submit {
  margin-top: 16px;
}

.ry.fqs .fqs-side-form .hsfc-NavigationRow {
  margin-top: 16px;
}

/* HubSpot keeps an empty alert box above the button, with space under it. It only needs that space
   when it shows the "complete all required fields" message. */
.ry.fqs .fqs-side-form .hsfc-NavigationRow__Alerts:not(:has(*)) {
  margin: 0;
}

/* Fields that share a row (first and last name) go one per row */
.ry.fqs .fqs-side-form .hsfc-Row {
  display: flex;
  flex-direction: column;
}

.ry.fqs .fqs-side-form form.hs-form fieldset.form-columns-2 .hs-form-field {
  float: none;
  width: 100%;
}

.ry.fqs .fqs-side-form .legal-consent-container {
  margin: 12px 0 0;
}

.ry.fqs .fqs-side-form .legal-consent-container,
.ry.fqs .fqs-side-form .legal-consent-container p,
.ry.fqs .fqs-side-form form.hs-form .hs-richtext p {
  color: var(--fqs-sc-muted);
  font-size: 13px;
  line-height: 1.5;
}

/* The theme's paragraph spacing would leave a gap under text in the form */
.ry.fqs .fqs-side-form .hsfc-RichText > :first-child { margin-top: 0; }
.ry.fqs .fqs-side-form .hsfc-RichText > :last-child { margin-bottom: 0; }

.ry.fqs .fqs-side-form .hsfc-RichText a,
.ry.fqs .fqs-side-form .legal-consent-container a {
  color: inherit;
  text-decoration: underline;
}

/* The thank-you message that replaces the form */
.ry.fqs .fqs-side-form .hsfc-PostSubmit,
.ry.fqs .fqs-side-form .submitted-message {
  color: var(--fqs-sc-ink);
  font: 500 16px/1.55 "Roboto", sans-serif;
}

.ry.fqs .fqs-side-form .hsfc-PostSubmit .hsfc-RichText,
.ry.fqs .fqs-side-form .submitted-message p {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* Shown only in the page editor until a form is picked */
.ry.fqs .fqs-side-form .fqs-side-empty {
  margin: 0;
  color: var(--fqs-sc-muted);
  font-size: 14px;
}

/* Narrow laptops: a little less room around the card's text */
@media (max-width: 1199px) {
  .ry.fqs .fqs-side-body { padding: 24px 24px 26px; }
}
