/* 7r request form. All rules scoped under .r7rf. Brand tokens come from the theme (--sr7-*) with fallbacks. */
.r7rf {
  --r7-ink: var(--sr7-ink, #12291a);
  --r7-leaf: var(--sr7-leaf, #238c2a);
  --r7-sprout: var(--sr7-sprout, #3aaa42);
  --r7-leaf-d: #1c7222;
  --r7-amber: var(--sr7-amber, #f7a600);
  --r7-paper: var(--sr7-paper, #f6f8f6);
  --r7-line: #dfe6df;
  --r7-muted: #6b7a6e;
  --r7-tint: #e6efe7;
  --r7-tint2: #f1f8f2;
  --r7-err: #c0392b;
  --r7-head: 'Archivo', 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r7-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 16px;
  background: var(--r7-tint);
  border-radius: 28px;
  color: var(--r7-ink);
  font-family: var(--r7-body);
  font-size: 15px;
  line-height: 1.5;
  scroll-margin-top: 90px;
}
.r7rf *, .r7rf *::before, .r7rf *::after { box-sizing: border-box; }
.r7rf__card-in {
  background: #fff;
  border-radius: 20px;
  padding: 48px;
}
.r7rf .r7rf__sr {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0;
}

/* stepper */
.r7rf .r7rf__steps { display: flex; list-style: none; margin: 0 0 48px; padding: 0; }
.r7rf .r7rf__st { position: relative; flex: 1; margin: 0; padding: 0; text-align: center; list-style: none; }
.r7rf .r7rf__st:not(:last-child)::after {
  content: ''; position: absolute; top: 16px; left: calc(50% + 24px); right: calc(-50% + 24px);
  height: 2px; background: var(--r7-line);
}
.r7rf .r7rf__st.is-done:not(:last-child)::after { background: var(--r7-ink); }
.r7rf .r7rf__dot {
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin: 0 auto 8px;
  border-radius: 50%; border: 2px solid var(--r7-line); background: #fff; color: var(--r7-muted);
  font: 600 14px/1 var(--r7-body);
}
.r7rf .is-active .r7rf__dot { background: var(--r7-leaf); border-color: var(--r7-leaf); color: #fff; }
.r7rf .is-done .r7rf__dot { border-color: var(--r7-ink); color: var(--r7-ink); }
.r7rf .r7rf__stl { display: block; font-size: 13px; color: var(--r7-muted); }
.r7rf .is-active .r7rf__stl { color: var(--r7-ink); font-weight: 600; }
.r7rf .is-done .r7rf__stl { color: var(--r7-ink); }

/* headings */
.r7rf .r7rf__h {
  margin: 0 0 8px; font: 700 30px/1.2 var(--r7-head); color: var(--r7-ink); text-align: center; letter-spacing: 0;
  text-transform: none; outline: none;
}
.r7rf .r7rf__sub { margin: 0 auto 32px; max-width: 620px; font-size: 14px; color: var(--r7-muted); text-align: center; }
.r7rf .r7rf__sub a { color: var(--r7-leaf); }

/* fields */
.r7rf .r7rf__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.r7rf .r7rf__field { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 0; border: 0; }
.r7rf .r7rf__field.is-half { grid-column: span 1; }
.r7rf .r7rf__lab {
  display: block; margin: 0 0 8px; padding: 0; font: 600 14px/1.35 var(--r7-body); color: var(--r7-ink);
  text-transform: none; letter-spacing: 0;
}
.r7rf .r7rf__optl { font-weight: 400; color: var(--r7-muted); }
.r7rf .r7rf__in {
  display: block; width: 100%; height: 48px; margin: 0; padding: 0 16px; background: #fff; color: var(--r7-ink);
  border: 1px solid var(--r7-line); border-radius: 12px; box-shadow: none;
  font: 400 15px/1.3 var(--r7-body); transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
.r7rf .r7rf__in::placeholder { color: #7a887d; opacity: 1; }
.r7rf .r7rf__in:focus {
  outline: none; border-color: var(--r7-leaf); box-shadow: 0 0 0 3px rgba(35, 140, 42, .25);
}
.r7rf textarea.r7rf__ta { height: auto; min-height: 110px; padding: 14px 16px; resize: vertical; }
.r7rf select.r7rf__sel {
  padding-right: 42px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2312291a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.r7rf .r7rf__in[aria-invalid="true"] { border-color: var(--r7-err); }
.r7rf .r7rf__err { min-height: 0; margin: 6px 0 0; font-size: 13px; color: var(--r7-err); }
.r7rf .r7rf__err:empty { display: none; }

/* choice cards */
.r7rf .r7rf__cards { display: grid; gap: 16px; align-items: stretch; }
.r7rf .r7rf__cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.r7rf .r7rf__cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
.r7rf .r7rf__card {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px;
  min-height: 128px; height: 100%; margin: 0; padding: 24px 16px; text-align: center; cursor: pointer;
  background: #fff; border: 1px solid var(--r7-line); border-radius: 14px;
  box-shadow: 0 4px 14px rgba(18, 41, 26, .06); transition: all .2s ease;
}
.r7rf .r7rf__card:not(:has(.r7rf__cd)) { justify-content: center; }
.r7rf .r7rf__card:hover { border-color: #b9dcbc; }
.r7rf .r7rf__card.is-on { background: var(--r7-tint2); border-color: #b9dcbc; box-shadow: 0 8px 22px rgba(35, 140, 42, .16); }
.r7rf .r7rf__card:has(input:focus-visible) { outline: 3px solid rgba(35, 140, 42, .45); outline-offset: 2px; }
.r7rf .r7rf__ico { display: inline-flex; color: var(--r7-leaf); line-height: 0; }
.r7rf .r7rf__ct { font: 700 15px/1.3 var(--r7-head); color: var(--r7-ink); }
.r7rf .r7rf__cd { font-size: 13px; line-height: 1.4; color: var(--r7-muted); }
.r7rf .r7rf__badge {
  position: absolute; top: 10px; right: 10px; display: none; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--r7-leaf); color: #fff;
}
.r7rf .r7rf__card.is-on .r7rf__badge { display: flex; }
.r7rf .r7rf__badge .r7rf__ico, .r7rf .r7rf__mark .r7rf__ico { color: #fff; }

/* radio / checkbox options */
.r7rf .r7rf__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.r7rf .r7rf__opt {
  position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; margin: 0; padding: 8px 16px;
  background: #fff; border: 1px solid var(--r7-line); border-radius: 12px; cursor: pointer;
  font: 500 14px/1.35 var(--r7-body); color: var(--r7-ink); transition: all .15s ease;
}
.r7rf .r7rf__opt:hover { border-color: #b9dcbc; }
.r7rf .r7rf__opt.is-on { background: var(--r7-tint2); border-color: #b9dcbc; }
.r7rf .r7rf__opt:has(input:focus-visible) { outline: 3px solid rgba(35, 140, 42, .45); outline-offset: 2px; }
.r7rf .r7rf__mark {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px;
  border: 2px solid #c4cfc5; border-radius: 50%; background: #fff; color: #fff; transition: all .15s ease;
}
.r7rf .is-multi .r7rf__mark { border-radius: 6px; }
.r7rf .is-multi .r7rf__mark .r7rf__ico { opacity: 0; }
.r7rf .r7rf__opt.is-on .r7rf__mark { border-color: var(--r7-leaf); }
.r7rf .r7rf__opt:not(.is-multi).is-on .r7rf__mark { box-shadow: inset 0 0 0 4px #fff; background: var(--r7-leaf); }
.r7rf .r7rf__opt.is-multi.is-on .r7rf__mark { background: var(--r7-leaf); }
.r7rf .r7rf__opt.is-multi.is-on .r7rf__mark .r7rf__ico { opacity: 1; }
.r7rf .r7rf__consent { align-items: flex-start; width: 100%; padding: 16px; }
.r7rf .r7rf__consent .r7rf__mark { margin-top: 1px; }
.r7rf .r7rf__consent a { color: var(--r7-leaf); text-decoration: underline; }

/* section heading inside a step (8px gap on top of the 24px grid gap = 32px between sections) */
.r7rf .r7rf__sec {
  grid-column: 1 / -1; margin: 8px 0 0; padding: 0; font: 700 18px/1.3 var(--r7-head); color: var(--r7-ink);
  text-transform: none; letter-spacing: 0;
}
.r7rf .r7rf__comb { position: relative; }
.r7rf .r7rf__lb {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px); max-height: 328px; overflow: auto;
  margin: 0; padding: 8px; list-style: none; background: #fff; border: 1px solid var(--r7-line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(18, 41, 26, .16);
}
.r7rf .r7rf__lb[hidden] { display: none; }
.r7rf .r7rf__lo { margin: 0; padding: 12px 16px; border-radius: 8px; cursor: pointer; font-size: 14px; line-height: 1.4; color: var(--r7-ink); }
.r7rf .r7rf__lo[aria-selected="true"] { background: var(--r7-tint2); box-shadow: inset 3px 0 0 var(--r7-leaf); }
.r7rf .r7rf__hintrow { margin-top: 8px; }
.r7rf .r7rf__hintrow:empty { display: none; }

/* repeater */
.r7rf .r7rf__rows { display: grid; gap: 16px; }
.r7rf .r7rf__row {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: start;
  padding: 24px; background: var(--r7-paper); border: 1px solid var(--r7-line); border-radius: 14px; position: relative;
}
.r7rf .r7rf__cell { min-width: 0; }
.r7rf .r7rf__rm { grid-column: 1 / -1; justify-self: end; margin-top: -4px; }
.r7rf .r7rf__btn.r7rf__add { margin-top: 16px; }

/* files */
.r7rf .r7rf__file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.r7rf .r7rf__pick { position: relative; cursor: pointer; }
.r7rf .r7rf__pick:has(input:focus-visible) { outline: 3px solid rgba(35, 140, 42, .45); outline-offset: 2px; }
.r7rf .r7rf__hint { font-size: 13px; color: var(--r7-muted); }
.r7rf .r7rf__files { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.r7rf .r7rf__fi {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0; padding: 8px 16px;
  background: var(--r7-paper); border: 1px solid var(--r7-line); border-radius: 12px; font-size: 14px;
}
.r7rf .r7rf__fn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.r7rf .r7rf__link {
  flex: none; margin: 0; padding: 4px 2px; background: none; border: 0; box-shadow: none; cursor: pointer;
  font: 600 13px/1 var(--r7-body); color: var(--r7-leaf); text-decoration: underline; text-transform: none;
}
.r7rf .r7rf__link:hover { color: var(--r7-leaf-d); }

/* buttons: pills */
.r7rf .r7rf__btn {
  display: inline-flex; align-items: center; justify-content: center; height: 48px; margin: 0; padding: 0 32px;
  border: 1px solid transparent; border-radius: 999px; box-shadow: none; cursor: pointer; text-decoration: none;
  font: 600 15px/1 var(--r7-body); text-transform: none; letter-spacing: 0; transition: background .15s, color .15s, border-color .15s;
}
.r7rf .r7rf__btn--main { background: var(--r7-leaf); border-color: var(--r7-leaf); color: #fff; }
.r7rf .r7rf__btn--main:hover:not(:disabled) { background: var(--r7-sprout); border-color: var(--r7-sprout); color: #fff; }
.r7rf .r7rf__btn--ghost { background: transparent; border-color: var(--r7-line); color: var(--r7-ink); }
.r7rf .r7rf__btn--ghost:hover { border-color: var(--r7-leaf); color: var(--r7-leaf); }
.r7rf .r7rf__btn:disabled { opacity: .45; cursor: not-allowed; }
.r7rf .r7rf__btn:focus-visible, .r7rf .r7rf__link:focus-visible { outline: 3px solid rgba(35, 140, 42, .45); outline-offset: 2px; }
.r7rf .r7rf__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; }
.r7rf .r7rf__nav.is-first { justify-content: flex-end; }
.r7rf .r7rf__fine { margin: 16px 0 0; font-size: 13px; color: var(--r7-muted); text-align: center; }
.r7rf .r7rf__fail {
  margin-top: 24px; padding: 16px; border-radius: 12px; background: #fdf0ee; border: 1px solid #f1c6c0;
  color: var(--r7-err); font-size: 14px; outline: none;
}
.r7rf .r7rf__hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; pointer-events: none; }

/* done */
.r7rf .r7rf__done { padding: 24px 0 8px; text-align: center; }
.r7rf .r7rf__bigok {
  display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin-bottom: 18px;
  border-radius: 50%; background: var(--r7-tint2); color: var(--r7-leaf); border: 2px solid #b9dcbc;
}
.r7rf .r7rf__done .r7rf__sub { margin-bottom: 26px; }

/* mobile */
@media (max-width: 640px) {
  .r7rf { padding: 8px; border-radius: 22px; }
  .r7rf__card-in { padding: 24px; border-radius: 16px; }
  .r7rf .r7rf__h { font-size: 24px; }
  .r7rf .r7rf__cards.cols-3, .r7rf .r7rf__cards.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .r7rf .r7rf__fields { grid-template-columns: 1fr; }
  .r7rf .r7rf__field.is-half { grid-column: 1 / -1; }
  .r7rf .r7rf__row { grid-template-columns: 1fr; padding: 16px; }
  .r7rf .r7rf__stl { display: none; }
  .r7rf .is-active .r7rf__stl { display: block; position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; top: 42px; }
  .r7rf .r7rf__steps { margin-bottom: 52px; }
  .r7rf .r7rf__st:not(:last-child)::after { left: calc(50% + 22px); right: calc(-50% + 22px); }
  .r7rf .r7rf__nav { flex-wrap: wrap; }
  .r7rf .r7rf__btn { padding: 0 24px; }
}
@media (max-width: 400px) {
  .r7rf .r7rf__cards.cols-3, .r7rf .r7rf__cards.cols-4 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .r7rf * { transition: none !important; }
}

.r7rf .r7rf__ts { margin: 16px 0 0; min-height: 0; }
