@charset "UTF-8";
/**
 * Redbones Element: Form
 * Figma: BLOCK LIBRARY → Contact form `1866:3543`
 *   Desktop `1866:3646` (1440×1343) · Mobile `1866:3806` (375×1599)
 *
 * The form itself arrives from a shortcode, so its markup is not ours. Every
 * field rule below is therefore written against GENERIC elements scoped inside
 * `.rb-form__embed` — input / select / textarea / label / button — and never a
 * plugin class. The block survives a change of form plugin.
 *
 * Two markup habits that a generic ruleset has to survive, both of them Contact
 * Form 7's defaults but common enough elsewhere:
 *
 *   1. The label is often a BARE TEXT NODE with a <br> after it, not a <label>.
 *      So the label type is set on the field WRAPPER and reset on the controls,
 *      rather than on `label`. Bare text and real <label>s then both land.
 *   2. The control is wrapped in a <span>. `span:has(> input)` puts that back to
 *      block so the 100%-wide control fills the row.
 *
 * Column pairing is a published contract, not a guess at the plugin's DOM: a
 * field wrapper carrying `rb-half` takes one of two columns above 768, which is
 * how the comp pairs first/last name and email/phone. Everything else spans.
 */
/**
 * Redbones — Design Tokens
 * SCSS variables, imported by variables.scss and component SCSS files.
 * Values are pulled from the Figma variable collection on the
 * "01 — DEV HANDOFF — current" page (file NEbrDOdP5b8QM6xbeXIWsQ).
 *
 * This is a one-off site: these values are the source of truth. There is no
 * options-driven theming layer — edit here, run `npm run build`.
 */
.rb-form {
  overflow: clip;
  --rb-form-field-bg: #e8e2cd;
  --rb-form-field-ink: #06213f;
  --rb-form-radius: 10px;
}

.rb-form__inner {
  display: flex;
  flex-direction: column;
  gap: var(--rb-space-xl);
}

.rb-form__intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 994px;
  margin-inline: auto;
  text-align: center;
}

.rb-form__intro__overline {
  margin: 0;
  color: var(--rb-fg);
}

.rb-form__intro__accent {
  display: block;
  color: var(--rb-accent);
}

.rb-form__intro__text {
  margin: 0;
  max-width: 642px;
}

.rb-form__embed {
  max-width: 872px;
  width: 100%;
  margin-inline: auto;
  position: relative;
  z-index: 5;
}

.rb-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--rb-space-md);
  margin: 0;
}

.rb-form__embed form {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(var(--rb-space-md) / -2);
  width: auto;
}

.rb-form__embed form > *,
.rb-form__grid > * {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--rb-space-xs);
  margin: 0;
  min-width: 0;
  font-family: var(--rb-font-display-alt);
  font-size: var(--rb-size-label);
  font-weight: var(--rb-weight-book);
  line-height: var(--rb-leading-body);
  letter-spacing: var(--rb-tracking-label);
  text-transform: uppercase;
  color: var(--rb-accent);
}

.rb-form__embed form > * {
  box-sizing: border-box;
  width: 100%;
  min-width: 100%;
  padding: 0 calc(var(--rb-space-md) / 2) var(--rb-space-md);
}

.rb-form__embed form > *:last-child {
  padding-bottom: 0;
}

.rb-form__embed .options-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--rb-space-xs);
}

.rb-form__embed .options-wrapper li {
  display: flex;
  align-items: center;
  gap: var(--rb-space-xs);
  margin: 0;
}
.rb-form__embed .options-wrapper li > input {
  margin-inline-end: 0;
}

.rb-form__embed .form-group > .label {
  width: 100%;
}

.rb-form__embed br {
  display: none;
}

.rb-form__embed span:has(> input),
.rb-form__embed span:has(> select),
.rb-form__embed span:has(> textarea) {
  display: block;
  width: 100%;
}

.rb-form__embed label,
.rb-form__embed .label {
  display: block;
  color: var(--rb-accent);
  font-family: var(--rb-font-display-alt);
  font-size: var(--rb-size-label);
  font-weight: var(--rb-weight-book);
  line-height: var(--rb-leading-body);
  letter-spacing: var(--rb-tracking-label);
  text-transform: uppercase;
}

.rb-form__embed input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=reset]):not([type=file]),
.rb-form__embed select,
.rb-form__embed textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: var(--rb-stroke-divider) solid var(--rb-divider);
  border-radius: var(--rb-form-radius);
  background-color: var(--rb-form-field-bg);
  color: var(--rb-form-field-ink);
  font-family: var(--rb-font-body);
  font-size: var(--rb-size-label);
  font-weight: var(--rb-weight-book);
  line-height: var(--rb-leading-body);
  letter-spacing: var(--rb-tracking-body);
  text-transform: none;
}
.rb-form__embed input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=reset]):not([type=file])::placeholder,
.rb-form__embed select::placeholder,
.rb-form__embed textarea::placeholder {
  color: var(--rb-form-field-ink);
  opacity: 1;
}
.rb-form__embed input:not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]):not([type=reset]):not([type=file]):focus-visible,
.rb-form__embed select:focus-visible,
.rb-form__embed textarea:focus-visible {
  outline: var(--rb-stroke-heavy) solid var(--rb-accent);
  outline-offset: 2px;
}

.rb-form__embed textarea {
  min-height: 180px;
  resize: vertical;
}

.rb-form__embed select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2306213f' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 24px 24px;
}

.rb-form__embed label:has(> input[type=checkbox]),
.rb-form__embed label:has(> input[type=radio]),
.rb-form__embed input[type=checkbox] + label,
.rb-form__embed input[type=radio] + label {
  display: block;
  font-family: var(--rb-font-body);
  font-size: var(--rb-size-body-small);
  font-weight: var(--rb-weight-book);
  letter-spacing: var(--rb-tracking-body);
  text-transform: none;
  color: var(--rb-fg);
  cursor: pointer;
}
.rb-form__embed label:has(> input[type=checkbox]) a,
.rb-form__embed label:has(> input[type=radio]) a,
.rb-form__embed input[type=checkbox] + label a,
.rb-form__embed input[type=radio] + label a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.rb-form__embed input[type=checkbox],
.rb-form__embed input[type=radio] {
  appearance: none;
  box-sizing: border-box;
  flex: 0 0 auto;
  display: inline-grid;
  place-content: center;
  width: 18px;
  height: 18px;
  margin: 0 var(--rb-space-xs) 0 0;
  vertical-align: -4px;
  border: var(--rb-stroke-divider) solid var(--rb-fg);
  border-radius: 2px;
  background-color: var(--rb-form-field-bg);
  cursor: pointer;
}
.rb-form__embed input[type=checkbox]::before,
.rb-form__embed input[type=radio]::before {
  content: "";
  width: 10px;
  height: 10px;
  transform: scale(0);
  background-color: var(--rb-form-field-ink);
  clip-path: polygon(14% 44%, 0 60%, 40% 100%, 100% 18%, 84% 0, 39% 68%);
}
.rb-form__embed input[type=checkbox]:checked::before,
.rb-form__embed input[type=radio]:checked::before {
  transform: scale(1);
}
.rb-form__embed input[type=checkbox]:focus-visible,
.rb-form__embed input[type=radio]:focus-visible {
  outline: var(--rb-stroke-heavy) solid var(--rb-accent);
  outline-offset: 2px;
}

.rb-form__embed input[type=radio] {
  border-radius: 50%;
}
.rb-form__embed input[type=radio]::before {
  clip-path: circle(50%);
}

.rb-form__embed button,
.rb-form__embed input[type=submit],
.rb-form__embed input[type=button],
.rb-form__embed input[type=reset] {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--rb-space-xs);
  width: auto;
  min-height: 48px;
  padding: 6px 13.5px;
  border: 3px solid var(--rb-btn-border);
  border-radius: 8px;
  background-color: var(--rb-btn-bg);
  color: var(--rb-btn-fg);
  font-family: var(--rb-font-display-alt);
  font-size: var(--rb-size-label-large);
  font-weight: var(--rb-weight-book);
  line-height: var(--rb-leading-body);
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--rb-transition-fast), color var(--rb-transition-fast);
}
.rb-form__embed button:hover, .rb-form__embed button:focus-visible,
.rb-form__embed input[type=submit]:hover,
.rb-form__embed input[type=submit]:focus-visible,
.rb-form__embed input[type=button]:hover,
.rb-form__embed input[type=button]:focus-visible,
.rb-form__embed input[type=reset]:hover,
.rb-form__embed input[type=reset]:focus-visible {
  background-color: var(--rb-btn-bg-hover);
  color: var(--rb-btn-fg);
}

@media (min-width: 768px) {
  .rb-form__embed button,
  .rb-form__embed input[type=submit],
  .rb-form__embed input[type=button],
  .rb-form__embed input[type=reset] {
    padding-inline: 18.5px;
  }
}
.rb-form__notice {
  margin: 0;
  padding: var(--rb-space-sm);
  border: var(--rb-stroke-divider) dashed var(--rb-fg-muted);
  border-radius: var(--rb-form-radius);
  color: var(--rb-fg-muted);
  font-family: var(--rb-font-body);
  font-size: var(--rb-size-body-small);
  line-height: var(--rb-leading-body);
  text-transform: none;
}
.rb-form__notice code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--rb-accent);
}
.rb-form__notice + .rb-form__sample {
  margin-top: var(--rb-space-md);
}

.rb-form--with-illustration {
  padding-bottom: 318px;
}

.rb-form__illustration {
  position: absolute;
  z-index: 2;
  right: var(--rb-form-illo-right);
  bottom: var(--rb-form-illo-bottom);
  width: 273px;
  height: auto;
  pointer-events: none;
  user-select: none;
}

.rb-form {
  --rb-form-illo-right: -25px;
  --rb-form-illo-bottom: -192px;
}

@media (min-width: 768px) {
  .rb-form {
    --rb-form-illo-right: -19px;
    --rb-form-illo-bottom: -276px;
  }
}
.rb-form .rb-smoke {
  z-index: 4;
}

.rb-form__sparkle {
  position: absolute;
  z-index: 3;
  color: var(--rb-accent);
  pointer-events: none;
  height: auto;
}

.rb-form__sparkle--a {
  right: calc(var(--rb-form-illo-right) + 295px);
  bottom: calc(var(--rb-form-illo-bottom) + 260px);
  width: 28.3674px;
}

.rb-form__sparkle--b {
  right: calc(var(--rb-form-illo-right) + 79px);
  bottom: calc(var(--rb-form-illo-bottom) + 440px);
  width: 27.8721px;
}

.rb-form .rb-smoke--edge-bottom.rb-smoke--small {
  margin-bottom: 0;
}

.rb-form--with-smoke {
  padding-bottom: calc(var(--rb-section-spacing) + 147px);
}

@media (min-width: 768px) {
  .rb-form__intro {
    gap: var(--rb-space-sm);
  }
  .rb-form__intro__accent {
    display: inline;
  }
  .rb-form__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rb-form__grid > * {
    grid-column: 1/-1;
  }
  .rb-form__grid > .rb-half {
    grid-column: span 1;
  }
  .rb-form__embed form > * {
    min-width: 0;
  }
  .rb-form--with-illustration {
    padding-bottom: 271px;
  }
  .rb-form__illustration {
    width: 390px;
  }
  .rb-form__sparkle--a {
    right: calc(var(--rb-form-illo-right) + 408px);
    bottom: calc(var(--rb-form-illo-bottom) + 327px);
    width: 56.7348px;
  }
  .rb-form__sparkle--b {
    right: calc(var(--rb-form-illo-right) + 103px);
    bottom: calc(var(--rb-form-illo-bottom) + 579px);
    width: 55.7442px;
  }
}

/*# sourceMappingURL=rb-form.css.map */
