/**
 * OpenForms – frontend styles
 * @author drek124 <https://github.com/drek124>
 * @license GPL-2.0-or-later
 */

.openform {
  --of-accent: #6d5dfc;
  --of-accent-2: #d946ef;
  --of-bg: #ffffff;
  --of-text: #0f172a;
  --of-field-bg: #f8fafc;
  --of-radius: 14px;
  --of-width: 680px;
  --of-pad: 40px;
  --of-font: inherit;
  --of-muted: color-mix(in srgb, var(--of-text) 58%, transparent);
  --of-border: color-mix(in srgb, var(--of-text) 13%, transparent);
  --of-border-strong: color-mix(in srgb, var(--of-text) 24%, transparent);
  --of-ring: color-mix(in srgb, var(--of-accent) 20%, transparent);
  --of-tint: color-mix(in srgb, var(--of-accent) 8%, var(--of-bg));
  --of-danger: #e5484d;
  --of-gap: 20px;
  --of-field-h: 50px;
  --of-ease: cubic-bezier(.2, .8, .2, 1);

  container-type: inline-size;
  position: relative;
  width: 100%;
  max-width: var(--of-width);
  margin: 0 auto;
  font-family: var(--of-font);
  color: var(--of-text);
  line-height: 1.5;
  text-align: start;
  -webkit-font-smoothing: antialiased;
}

.openform *,
.openform *::before,
.openform *::after { box-sizing: border-box; }

/* The runtime hides parts of the form (the form after a successful submit, other steps, the alert…) with the
   hidden attribute; keep them hidden even when a form's custom CSS gives those elements a display value. */
.openform [hidden] { display: none !important; }

.of-sp-compact { --of-gap: 14px; --of-field-h: 44px; }
.of-sp-spacious { --of-gap: 28px; --of-field-h: 56px; }

/* ---------- Card ---------- */
.openform .of-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--of-pad);
  background: var(--of-bg);
  border: 1px solid var(--of-border);
  border-radius: calc(var(--of-radius) + 8px);
  transition: min-height .3s var(--of-ease);
}

.of-shadow-soft .of-card { box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 18px 50px -18px rgba(15, 23, 42, .22); }
.of-shadow-strong .of-card { box-shadow: 0 2px 4px rgba(15, 23, 42, .05), 0 40px 90px -28px color-mix(in srgb, var(--of-accent) 45%, rgba(15, 23, 42, .5)); }

.of-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
}

.of-glow span {
  position: absolute;
  width: 65%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .14;
  animation: ofFloat 16s ease-in-out infinite alternate;
}

.of-glow span:first-child { top: -35%; left: -18%; background: var(--of-accent); }
.of-glow span:last-child { right: -22%; bottom: -40%; background: var(--of-accent-2); animation-delay: -8s; }

/* Themes */
.of-theme-dark { color-scheme: dark; --of-border: color-mix(in srgb, var(--of-text) 14%, transparent); }
.of-theme-dark .of-glow span { opacity: .3; }
.of-theme-dark.of-shadow-soft .of-card { box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7); }

.of-theme-glass .of-card {
  background: color-mix(in srgb, var(--of-bg) 58%, transparent);
  border: 1px solid color-mix(in srgb, #fff 60%, transparent);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
}

.of-theme-glass .of-input,
.of-theme-glass .of-choices-cards .of-choice,
.of-theme-glass .of-dropzone { background: color-mix(in srgb, var(--of-field-bg) 65%, transparent); }

.of-theme-minimal .of-card { padding: 0; background: transparent; border: 0; box-shadow: none !important; }
.of-theme-minimal .of-glow,
.of-theme-minimal .of-header::before { display: none; }

/* ---------- Header ---------- */
.of-header { margin-bottom: calc(var(--of-gap) + 8px); }

.of-header::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--of-accent), var(--of-accent-2));
}

.of-ha-center .of-header { text-align: center; }
.of-ha-center .of-header::before { margin-inline: auto; }
.of-ha-end .of-header { text-align: end; }
.of-ha-end .of-header::before { margin-inline-start: auto; }

.openform .of-title {
  margin: 0 0 8px;
  color: var(--of-text);
  font-family: inherit;
  font-size: clamp(22px, 4cqi, 30px);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.of-desc { margin: 0; color: var(--of-muted); font-size: 15.5px; }
.of-header.is-compact .of-desc { display: none; }

/* ---------- Grid ---------- */
.of-form { margin: 0; }

.of-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--of-gap) 16px;
}

.of-field { position: relative; flex: 0 0 100%; min-width: 0; }
.of-w-75 { flex-basis: calc(75% - 4px); }
.of-w-66 { flex-basis: calc(66.666% - 5.34px); }
.of-w-50 { flex-basis: calc(50% - 8px); }
.of-w-33 { flex-basis: calc(33.333% - 10.67px); }
.of-w-25 { flex-basis: calc(25% - 12px); }
.of-field[hidden] { display: none !important; }

/* ---------- Labels ---------- */
.openform .of-label {
  display: block;
  margin: 0 0 8px;
  color: var(--of-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.005em;
}

.of-req { margin-inline-start: 3px; color: var(--of-accent); font-weight: 700; }

.of-ls-hidden .of-label:not(.of-label-float) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.of-help { margin-top: 7px; color: var(--of-muted); font-size: 13px; }

/* ---------- Inputs ---------- */
.of-control { position: relative; }

.openform .of-input {
  display: block;
  width: 100%;
  max-width: none;
  height: var(--of-field-h);
  margin: 0;
  padding: 0 16px;
  color: var(--of-text);
  background: var(--of-field-bg);
  border: 1.5px solid var(--of-border);
  border-radius: var(--of-radius);
  outline: none;
  box-shadow: none;
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s, box-shadow .25s, background-color .2s;
}

.openform .of-input::placeholder { color: var(--of-muted); opacity: .75; }
.openform .of-input:hover { border-color: var(--of-border-strong); }

.openform .of-input:focus {
  background: var(--of-bg);
  border-color: var(--of-accent);
  box-shadow: 0 0 0 4px var(--of-ring);
}

.openform textarea.of-input {
  height: auto;
  min-height: calc(var(--of-field-h) * 2.5);
  padding: 14px 16px;
  line-height: 1.55;
  resize: vertical;
}

.openform select.of-input {
  padding-inline-end: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

.openform select.of-input[multiple] { height: auto; min-height: calc(var(--of-field-h) * 2.5); padding: 8px; background-image: none; }

.openform .of-input::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }

.of-field-icon {
  position: absolute;
  inset-inline-start: 16px;
  top: calc(var(--of-field-h) / 2 - 9px);
  z-index: 1;
  width: 18px;
  height: 18px;
  color: var(--of-muted);
  pointer-events: none;
  transition: color .2s, transform .3s var(--of-ease);
}

.has-icon .of-input { padding-inline-start: 46px; }
.has-icon.is-focus .of-field-icon { color: var(--of-accent); transform: scale(1.08); }

.of-focus-ring { display: none; }

/* Field style: filled */
.of-fs-filled .of-input { background: color-mix(in srgb, var(--of-text) 5%, var(--of-field-bg)); border-color: transparent; }
.of-fs-filled .of-input:hover { border-color: transparent; background: color-mix(in srgb, var(--of-text) 8%, var(--of-field-bg)); }

/* Field style: underline */
.of-fs-underline .of-input,
.of-fs-underline .of-input:hover,
.of-fs-underline .of-input:focus {
  padding-inline-start: 2px;
  background: transparent;
  border-width: 0 0 1.5px;
  border-radius: 0;
  box-shadow: none;
}

.of-fs-underline .has-icon .of-input { padding-inline-start: 30px; }
.of-fs-underline .of-field-icon { inset-inline-start: 2px; }
.of-fs-underline select.of-input { background-position: right 2px center; }

.of-fs-underline .of-focus-ring {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  height: 2px;
  background: linear-gradient(90deg, var(--of-accent), var(--of-accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--of-ease);
}

.of-fs-underline .of-control:focus-within .of-focus-ring { transform: scaleX(1); }

/* Floating labels */
[data-floating] .of-input { padding-top: 18px; }
[data-floating] textarea.of-input { padding-top: 28px; }
[data-floating] .of-input::placeholder { opacity: 0; transition: opacity .2s; }
[data-floating] .of-input:focus::placeholder { opacity: .6; }

.openform .of-label-float {
  position: absolute;
  top: calc(var(--of-field-h) / 2);
  inset-inline-start: 17px;
  z-index: 1;
  max-width: calc(100% - 40px);
  margin: 0;
  overflow: hidden;
  color: var(--of-muted);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
  pointer-events: none;
  transform: translateY(-50%);
  transform-origin: left top;
  transition: top .2s var(--of-ease), transform .2s var(--of-ease), color .2s, font-weight .2s;
}

.of-type-textarea .of-label-float { top: 26px; }
.has-icon .of-label-float { inset-inline-start: 47px; }
.of-fs-underline .of-label-float { inset-inline-start: 2px; }
.of-fs-underline .has-icon .of-label-float { inset-inline-start: 31px; }

.of-input:focus ~ .of-label-float,
.of-input:not(:placeholder-shown) ~ .of-label-float,
.has-value .of-label-float,
.of-type-date .of-label-float,
.of-type-time .of-label-float {
  top: 8px;
  font-weight: 650;
  transform: translateY(0) scale(.76);
}

.of-input:focus ~ .of-label-float { color: var(--of-accent); }

/* ---------- Phone: country code + number ---------- */
.of-phone { display: flex; align-items: stretch; gap: 8px; }
.of-phone-cc { position: relative; flex: 0 0 auto; }
.of-phone-num { position: relative; flex: 1 1 auto; min-width: 0; }

.openform .of-phone-face {
  display: flex;
  align-items: center;
  gap: 7px;
  width: auto;
  padding: 0;
  padding-inline: 12px 10px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

[data-floating] .of-phone-face { padding-top: 0; }

.of-phone-flag {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
  font-size: 19px;
  line-height: 1;
}

.of-phone-flag.is-code {
  padding: 3px 5px;
  color: var(--of-muted);
  border: 1px solid var(--of-border);
  border-radius: 5px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

.of-phone-dial { font-weight: 550; direction: ltr; unicode-bidi: isolate; }
.of-phone-caret { flex: none; width: 14px; height: 14px; color: var(--of-muted); transition: color .2s; }

/* The real (native, searchable by typing) picker sits invisibly on top of the face. */
.openform .of-phone-select {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  color: var(--of-text);
  background: var(--of-bg);
  border: 0;
  opacity: 0;
  font-size: 16px;
  cursor: pointer;
}

.of-phone-cc:hover .of-phone-face { border-color: var(--of-border-strong); }
.of-fs-filled .of-phone-cc:hover .of-phone-face { border-color: transparent; background: color-mix(in srgb, var(--of-text) 8%, var(--of-field-bg)); }

.of-phone-cc:focus-within .of-phone-face {
  background: var(--of-bg);
  border-color: var(--of-accent);
  box-shadow: 0 0 0 4px var(--of-ring);
}

.of-phone-cc:focus-within .of-phone-caret { color: var(--of-accent); }
.is-invalid .of-phone-cc:focus-within .of-phone-face { border-color: var(--of-danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--of-danger) 18%, transparent); }

.of-fs-underline .of-phone { gap: 14px; }
.openform.of-fs-underline .of-phone-face { padding-inline: 2px 4px; }
.of-fs-underline .of-phone-cc:focus-within .of-phone-face { background: transparent; box-shadow: none; }
.of-fs-underline .of-phone:focus-within .of-focus-ring { transform: scaleX(0); }
.of-fs-underline .of-phone-num:focus-within .of-focus-ring { transform: scaleX(1); }

/* With JavaScript: the face is a button opening the searchable list; the select is only submitted. */
.openform .of-phone-cc.is-enhanced .of-phone-select { display: none; }
.openform .of-phone-cc.is-enhanced .of-phone-face { pointer-events: auto; cursor: pointer; font: inherit; font-size: 15px; text-align: start; }
.is-picking .of-phone-face { background: var(--of-bg); border-color: var(--of-accent) !important; box-shadow: 0 0 0 4px var(--of-ring); }
.is-picking .of-phone-caret { color: var(--of-accent); transform: rotate(180deg); }
.of-fs-underline .is-picking .of-phone-face { background: transparent; box-shadow: none; }

/* Flag emoji on systems without them (Windows): Twemoji Country Flags, see fonts/TwemojiCountryFlags-LICENSE.md */
@font-face {
  font-family: "Twemoji Country Flags";
  src: url("../fonts/TwemojiCountryFlags.woff2") format("woff2");
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
  font-display: swap;
}

.of-flagfont .of-phone-flag,
.of-flagfont .of-cc-flag { font-family: "Twemoji Country Flags", "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }

/* Country list */
.of-cc-panel {
  position: absolute;
  z-index: 60;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--of-text);
  background: var(--of-bg);
  border: 1px solid var(--of-border-strong);
  border-radius: calc(var(--of-radius) * .7 + 6px);
  box-shadow: 0 2px 6px rgba(15, 23, 42, .06), 0 24px 60px -16px rgba(15, 23, 42, .38);
  font-family: var(--of-font);
  text-align: start;
  animation: ofCcIn .16s var(--of-ease);
}

.of-cc-panel.is-up { animation-name: ofCcUp; }
.of-theme-dark .of-cc-panel { box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .7); }
.of-theme-glass .of-cc-panel { background: color-mix(in srgb, var(--of-bg) 90%, transparent); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); }

.of-cc-search { display: flex; flex: none; align-items: center; gap: 9px; padding: 6px 14px; border-bottom: 1px solid var(--of-border); }
.of-cc-search svg { flex: none; width: 16px; height: 16px; color: var(--of-muted); }

.openform .of-cc-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  margin: 0;
  padding: 0;
  color: var(--of-text);
  background: transparent;
  border: 0;
  outline: 0;
  box-shadow: none;
  font: inherit;
  font-size: 16px;
}

.openform .of-cc-input::placeholder { color: var(--of-muted); opacity: .8; }

.openform .of-cc-list {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  /* Own thin scrollbar, so a site's (e.g. dark) page scrollbar styles don't show inside the list. */
  scrollbar-width: thin;
  scrollbar-color: var(--of-border-strong) transparent;
}

.of-cc-item {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 8px 10px;
  border-radius: calc(var(--of-radius) * .5 + 2px);
  cursor: pointer;
  font-size: 14.5px;
  line-height: 1.3;
}

.of-cc-item[hidden] { display: none; }
.of-cc-item.is-active { background: var(--of-tint); }
.of-cc-item[aria-selected="true"] { color: var(--of-accent); font-weight: 650; }

.of-cc-flag {
  flex: none;
  width: 24px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
  font-size: 19px;
  line-height: 1;
  text-align: center;
}

.of-cc-flag.is-code {
  padding: 3px 0;
  color: var(--of-muted);
  border: 1px solid var(--of-border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
}

.of-cc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.of-cc-dial { flex: none; color: var(--of-muted); font-variant-numeric: tabular-nums; font-weight: 500; direction: ltr; unicode-bidi: isolate; }
.of-cc-empty { padding: 22px 14px; color: var(--of-muted); font-size: 14px; text-align: center; }

@keyframes ofCcIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
@keyframes ofCcUp { from { opacity: 0; transform: translateY(6px) scale(.98); } }

@media (prefers-reduced-motion: reduce) {
  .of-cc-panel { animation: none; }
}

/* Counter */
.of-counter {
  position: absolute;
  inset-inline-end: 12px;
  bottom: 9px;
  padding: 0 4px;
  color: var(--of-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  transition: color .2s;
}

.of-counter.is-near { color: #d97706; font-weight: 600; }

/* ---------- Choices ---------- */
.of-choices { display: flex; flex-direction: column; gap: 10px; }
.of-choices-inline { flex-flow: row wrap; gap: 10px 24px; }
.of-choices-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }

.openform .of-choice {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  color: var(--of-text);
  font-size: 15px;
  font-weight: 450;
  line-height: 1.45;
  cursor: pointer;
  user-select: none;
}

.of-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.of-choice-ui {
  position: relative;
  display: grid;
  flex: 0 0 22px;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: -1px;
  color: #fff;
  background: var(--of-field-bg);
  border: 2px solid var(--of-border-strong);
  border-radius: 7px;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s var(--of-ease);
}

.of-choice-ui svg { width: 14px; height: 14px; stroke-width: 3.2; stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .3s .05s var(--of-ease); }
.of-choice:hover .of-choice-ui { border-color: var(--of-accent); }
.of-choice:active .of-choice-ui { transform: scale(.9); }

.of-choice input:checked + .of-choice-ui {
  background: linear-gradient(135deg, var(--of-accent), var(--of-accent-2));
  border-color: transparent;
  box-shadow: 0 4px 12px -2px color-mix(in srgb, var(--of-accent) 55%, transparent);
}

.of-choice input:checked + .of-choice-ui svg { stroke-dashoffset: 0; }
.of-choice input:focus-visible + .of-choice-ui { box-shadow: 0 0 0 4px var(--of-ring); }

/* Radio */
.of-type-radio .of-choice-ui { border-radius: 50%; }
.of-type-radio .of-choice-ui::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
  transition: transform .25s var(--of-ease);
}
.of-type-radio .of-choice input:checked + .of-choice-ui::after { transform: scale(1); }

/* Cards layout */
.openform .of-choices-cards .of-choice {
  align-items: center;
  padding: 14px 16px;
  background: var(--of-field-bg);
  border: 1.5px solid var(--of-border);
  border-radius: var(--of-radius);
  transition: border-color .2s, background .2s, transform .25s var(--of-ease), box-shadow .25s;
}

.openform .of-choices-cards .of-choice:hover { border-color: var(--of-border-strong); transform: translateY(-2px); }

.openform .of-choices-cards .of-choice:has(input:checked) {
  background: var(--of-tint);
  border-color: var(--of-accent);
  box-shadow: 0 10px 24px -14px var(--of-accent);
}

.openform .of-choices-cards .of-choice:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--of-ring); }

.of-acceptance .of-choice-label a { color: var(--of-accent); font-weight: 600; }

/* ---------- Rating ---------- */
.of-rating { display: flex; align-items: center; gap: 4px; }

.of-star {
  position: relative;
  display: inline-flex;
  color: var(--of-border-strong);
  cursor: pointer;
  transition: color .2s, transform .25s var(--of-ease);
}

.of-star input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.of-star-icon { width: 34px; height: 34px; fill: transparent; stroke-width: 1.6; transition: fill .2s; }
.of-star:hover { transform: scale(1.18) rotate(-6deg); }
.of-star.is-on { color: #f5a524; }
.of-star.is-on .of-star-icon { fill: currentColor; }
.of-star.is-pop { animation: ofPop .45s var(--of-ease); }
.of-star:has(input:focus-visible) { outline: 2px solid var(--of-ring); outline-offset: 2px; border-radius: 8px; }
.of-rating-text { margin-inline-start: 12px; color: var(--of-muted); font-size: 14px; font-weight: 600; }

/* ---------- Range ---------- */
.of-range { position: relative; padding-top: 40px; --p: 50%; }

.of-range-input {
  display: block;
  width: 100%;
  height: 8px;
  margin: 0;
  border-radius: 8px;
  outline: none;
  background:
    linear-gradient(90deg, var(--of-accent), var(--of-accent-2)) 0 / var(--p) 100% no-repeat,
    var(--of-border);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

.of-range-input::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  background: #fff;
  border: 4px solid var(--of-accent);
  border-radius: 50%;
  box-shadow: 0 4px 14px -2px color-mix(in srgb, var(--of-accent) 60%, transparent);
  transition: transform .2s var(--of-ease);
  -webkit-appearance: none;
  appearance: none;
}

.of-range-input::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #fff;
  border: 4px solid var(--of-accent);
  border-radius: 50%;
}

.of-range-input:active::-webkit-slider-thumb { transform: scale(1.2); }
.of-range-input:focus-visible { box-shadow: 0 0 0 4px var(--of-ring); }

.of-range-bubble {
  position: absolute;
  top: 0;
  left: clamp(24px, var(--p), calc(100% - 24px));
  padding: 4px 10px;
  color: var(--of-bg);
  background: var(--of-text);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transform: translateX(-50%);
  font-variant-numeric: tabular-nums;
}

.of-range-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -4px;
  width: 8px;
  height: 8px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
}

.of-range-scale { display: flex; justify-content: space-between; margin-top: 10px; color: var(--of-muted); font-size: 12px; }

/* ---------- File ---------- */
.of-dropzone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--of-field-bg);
  border: 2px dashed var(--of-border-strong);
  border-radius: var(--of-radius);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .25s var(--of-ease);
}

.of-dropzone:hover,
.of-dropzone.is-over { background: var(--of-tint); border-color: var(--of-accent); }
.of-dropzone.is-over { transform: scale(1.01); }

.of-file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

.of-dropzone-icon {
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--of-accent);
  background: color-mix(in srgb, var(--of-accent) 12%, transparent);
  border-radius: 14px;
  transition: transform .3s var(--of-ease);
}

.of-dropzone-icon .of-icon { width: 22px; height: 22px; }
.of-dropzone:hover .of-dropzone-icon,
.of-dropzone.is-over .of-dropzone-icon { animation: ofBounce .8s var(--of-ease) infinite; }

.of-dropzone-text { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.of-dropzone-text strong { color: var(--of-text); font-weight: 600; }
.of-dropzone-text u { color: var(--of-accent); text-decoration: none; border-bottom: 1.5px solid currentColor; }
.of-dropzone-text small { color: var(--of-muted); font-size: 12.5px; }

.of-file-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.of-file-list:empty { display: none; }

.of-file {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  background: var(--of-bg);
  border: 1px solid var(--of-border);
  border-radius: calc(var(--of-radius) - 4px);
  font-size: 14px;
  animation: ofRise .35s var(--of-ease);
}

.of-file-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: linear-gradient(135deg, var(--of-accent), var(--of-accent-2));
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
}

.of-file-icon.is-image {
  position: relative;
  width: 56px;
  height: 56px;
  overflow: hidden;
  background: var(--of-field-bg);
  border: 1px solid var(--of-border);
  border-radius: 10px;
}

.of-file-icon.is-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.15);
  transition: opacity .4s, transform .6s var(--of-ease);
}

.of-file-icon.is-loaded img { opacity: 1; transform: none; }
.of-file.has-thumb:hover .of-file-icon img { transform: scale(1.08); }

.of-file-name { flex: 1; min-width: 0; overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.of-file small { color: var(--of-muted); }

.of-file-remove {
  width: 28px;
  height: 28px;
  padding: 0;
  color: var(--of-muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.of-file-remove:hover { color: var(--of-danger); background: color-mix(in srgb, var(--of-danger) 10%, transparent); }

/* ---------- Layout elements ---------- */
.openform .of-heading { margin: 6px 0 0; color: var(--of-text); font-family: inherit; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.openform h2.of-heading { font-size: 24px; }
.openform h3.of-heading { font-size: 20px; }
.openform h4.of-heading { font-size: 17px; }
.openform h5.of-heading { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.of-subheading { margin: 4px 0 0; color: var(--of-muted); font-size: 14px; }
.of-paragraph { color: var(--of-muted); font-size: 15px; }
.of-paragraph > :last-child { margin-bottom: 0; }
.of-paragraph a { color: var(--of-accent); }
.of-html { min-width: 0; overflow-wrap: break-word; }
.of-html img, .of-html video, .of-html iframe { max-width: 100%; }
.of-html img, .of-html video { height: auto; }
.of-divider { height: 1px; margin: 4px 0; background: linear-gradient(90deg, transparent, var(--of-border-strong), transparent); border: 0; }

/* ---------- Errors ---------- */
.of-error {
  max-height: 0;
  overflow: hidden;
  color: var(--of-danger);
  font-size: 13px;
  font-weight: 550;
  opacity: 0;
  transition: max-height .25s, opacity .25s, margin .25s;
}

.of-error.is-shown { max-height: 80px; margin-top: 7px; opacity: 1; animation: ofDrop .3s var(--of-ease); }
.is-invalid .of-input,
.is-invalid .of-input:hover { border-color: var(--of-danger); }
.is-invalid .of-input:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--of-danger) 18%, transparent); }
.is-invalid .of-choice-ui,
.is-invalid .of-dropzone { border-color: var(--of-danger); }
.is-invalid .of-label-float { color: var(--of-danger) !important; }
.openform .is-invalid .tox-tinymce { border-color: var(--of-danger); }

/* ---------- Rich text (TinyMCE) ---------- */
.openform .of-richtext { min-height: calc(var(--of-field-h) * 3); }
.openform .is-rt-loading .of-richtext { opacity: .55; }
.openform .of-type-richtext .tox-tinymce { background: var(--of-field-bg); border: 1.5px solid var(--of-border); border-radius: var(--of-radius); transition: border-color .2s, box-shadow .25s; }
.openform .of-type-richtext .tox-tinymce:hover { border-color: var(--of-border-strong); }
.openform .of-type-richtext.is-focus .tox-tinymce { border-color: var(--of-accent); box-shadow: 0 0 0 4px var(--of-ring); }
.openform .of-type-richtext.is-invalid.is-focus .tox-tinymce { border-color: var(--of-danger); box-shadow: 0 0 0 4px color-mix(in srgb, var(--of-danger) 18%, transparent); }
.openform .tox:not(.tox-tinymce-inline) .tox-editor-header { padding: 2px 4px; background: transparent; border-bottom: 1px solid var(--of-border); box-shadow: none; }
.openform .tox .tox-toolbar,
.openform .tox .tox-toolbar__primary,
.openform .tox .tox-toolbar__overflow { background-color: transparent; }
.openform .tox .tox-edit-area::before { display: none; }
.openform .tox .tox-edit-area__iframe { background: transparent; }
.of-shake { animation: ofShake .45s; }

.of-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px 16px;
  color: color-mix(in srgb, var(--of-danger) 80%, var(--of-text));
  background: color-mix(in srgb, var(--of-danger) 9%, var(--of-bg));
  border: 1px solid color-mix(in srgb, var(--of-danger) 28%, transparent);
  border-radius: var(--of-radius);
  font-size: 14px;
  font-weight: 500;
  animation: ofDrop .35s var(--of-ease);
}

.of-alert[hidden] { display: none; }

.of-alert-icon {
  display: grid;
  flex: 0 0 22px;
  place-items: center;
  width: 22px;
  height: 22px;
  color: #fff;
  background: var(--of-danger);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

/* ---------- Buttons ---------- */
.of-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: calc(var(--of-gap) + 10px);
}

.of-ba-left .of-nav,
.of-ba-start .of-nav { justify-content: flex-start; }
.of-ba-center .of-nav { justify-content: center; }
.of-ba-right .of-nav,
.of-ba-end .of-nav { justify-content: flex-end; }
.of-ba-stretch .of-nav .of-btn-primary { flex: 1; }

.openform .of-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: calc(var(--of-field-h) + 4px);
  margin: 0;
  padding: 0 28px;
  overflow: hidden;
  color: var(--of-text);
  background: transparent;
  border: 0;
  border-radius: var(--of-radius);
  font: inherit;
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform .25s var(--of-ease), box-shadow .3s, background-position .6s var(--of-ease), background-color .2s, color .2s, opacity .2s;
}

.openform .of-btn:disabled { cursor: progress; opacity: .85; }
.of-btn .of-icon { width: 18px; height: 18px; transition: transform .3s var(--of-ease); }
.of-next:hover .of-icon { transform: translateX(4px); }
.of-prev:hover .of-icon { transform: translateX(-4px); }

.openform .of-btn-primary {
  color: #fff;
  background: linear-gradient(110deg, var(--of-accent), var(--of-accent-2) 50%, var(--of-accent)) 0 0 / 200% 100%;
  box-shadow: 0 12px 28px -12px var(--of-accent);
}

.openform .of-btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  transition: left .7s var(--of-ease);
}

.openform .of-btn-primary:hover:not(:disabled) { background-position: 100% 0; box-shadow: 0 18px 34px -14px var(--of-accent); transform: translateY(-2px); }
.openform .of-btn-primary:hover:not(:disabled)::before { left: 130%; }
.openform .of-btn-primary:active:not(:disabled) { transform: translateY(0) scale(.98); }
.openform .of-btn:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--of-ring); }

.of-btn-solid .of-btn-primary { background: var(--of-accent); }
.of-btn-solid .of-btn-primary:hover:not(:disabled) { background: color-mix(in srgb, var(--of-accent) 88%, #000); }

.openform.of-btn-outline .of-btn-primary { color: var(--of-accent); background: transparent; border: 2px solid var(--of-accent); box-shadow: none; }
.openform.of-btn-outline .of-btn-primary:hover:not(:disabled) { color: #fff; background: var(--of-accent); }
.openform.of-btn-outline .of-btn-primary .of-spinner { border-color: color-mix(in srgb, currentColor 30%, transparent); border-top-color: currentColor; }

.of-btn-glow .of-btn-primary { animation: ofGlow 2.6s ease-in-out infinite; }

.openform .of-btn-ghost { color: var(--of-text); border: 1.5px solid var(--of-border); }
.openform .of-btn-ghost:hover { background: color-mix(in srgb, var(--of-text) 5%, transparent); border-color: var(--of-border-strong); }

.of-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ofSpin .7s linear infinite;
}

.is-busy .of-spinner { display: block; }
.is-busy .of-submit .of-btn-label { opacity: .8; }

.of-ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  pointer-events: none;
  transform: scale(0);
  animation: ofRipple .7s ease-out;
}

.of-btn-ghost .of-ripple { background: color-mix(in srgb, var(--of-accent) 25%, transparent); }

/* ---------- Steps ---------- */
.of-progress { margin-bottom: 30px; }

.of-progress-track { height: 6px; overflow: hidden; background: var(--of-border); border-radius: 6px; }

.of-progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--of-accent), var(--of-accent-2));
  border-radius: inherit;
  transition: width .6s var(--of-ease);
}

.of-steps { display: flex; justify-content: space-between; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.of-progress-style-bar .of-steps { display: none; }

.of-step { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--of-muted); font-size: 13px; font-weight: 600; transition: color .3s; }
.of-step-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.of-step-num {
  display: grid;
  flex: 0 0 26px;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--of-field-bg);
  border: 1.5px solid var(--of-border);
  border-radius: 50%;
  font-size: 12px;
  transition: all .35s var(--of-ease);
}

.of-step.is-active { color: var(--of-text); }
.of-step.is-active .of-step-num,
.of-step.is-done .of-step-num {
  color: #fff;
  background: linear-gradient(135deg, var(--of-accent), var(--of-accent-2));
  border-color: transparent;
}

.of-step.is-active .of-step-num { box-shadow: 0 0 0 5px var(--of-ring); transform: scale(1.06); }

.of-page[hidden] { display: none; }
.of-page.is-leaving.to-left { animation: ofOutLeft .22s ease-in forwards; }
.of-page.is-leaving.to-right { animation: ofOutRight .22s ease-in forwards; }
.of-page.is-entering.from-right { animation: ofInRight .45s var(--of-ease); }
.of-page.is-entering.from-left { animation: ofInLeft .45s var(--of-ease); }

/* ---------- Success ---------- */
.of-success { padding: 24px 0 8px; text-align: center; }
.of-success[hidden] { display: none; }
.of-success.is-in > * { animation: ofRise .6s var(--of-ease) both; }
.of-success.is-in > :nth-child(2) { animation-delay: .25s; }
.of-success.is-in > :nth-child(3) { animation-delay: .4s; }

.of-success-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin-bottom: 8px;
  border-radius: 50%;
}

.of-success-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--of-accent) 22%, transparent), transparent 70%);
  animation: ofHalo 2.4s ease-out infinite;
}

.of-success-icon svg { position: relative; width: 80px; height: 80px; }

.of-check-circle {
  stroke: var(--of-accent);
  stroke-width: 3;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
}

.of-check-mark {
  stroke: var(--of-accent);
  stroke-width: 4;
  stroke-dasharray: 36;
  stroke-dashoffset: 36;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.of-success.is-in .of-check-circle { animation: ofDraw .7s .1s var(--of-ease) forwards; }
.of-success.is-in .of-check-mark { animation: ofDraw .45s .65s var(--of-ease) forwards; }

.of-success-msg { max-width: 460px; margin: 0 auto; color: var(--of-muted); font-size: 16px; }
.openform .of-success-msg h1,
.openform .of-success-msg h2,
.openform .of-success-msg h3 { margin: 10px 0 8px; color: var(--of-text); font-size: 26px; font-weight: 750; letter-spacing: -.02em; }
.of-success-msg p { margin: 0 0 .6em; }
.of-success .of-again { margin-top: 22px; }

.of-confetti { position: absolute; top: 34%; left: 0; z-index: 5; width: 100%; height: 0; pointer-events: none; }
.of-confetti i { position: absolute; top: 0; display: block; }

.of-form.is-leaving { animation: ofFadeOut .26s ease-in forwards; }
.of-form.is-returning { animation: ofRise .5s var(--of-ease); }

.of-closed {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  color: var(--of-muted);
  background: var(--of-field-bg);
  border: 1px solid var(--of-border);
  border-radius: var(--of-radius);
}

.of-closed-icon { flex: 0 0 22px; width: 22px; height: 22px; color: var(--of-accent); }
.of-closed p { margin: 0; }

.of-hp { position: absolute !important; top: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; pointer-events: none; }

/* Conditional logic */
.of-field.is-hidden { animation: ofCollapse .28s ease-in forwards; pointer-events: none; }
.of-field.is-appearing { animation: ofExpand .45s var(--of-ease); }

/* ---------- Entrance animations ---------- */
.openform.of-js:not(.is-in) .of-card { opacity: 0; }

.openform.is-in .of-card { animation: var(--of-card-anim, ofCardUp) .75s var(--of-ease) both; }

.openform.is-in .of-header,
.openform.is-in .of-progress,
.openform.is-in .of-page:first-child .of-field,
.openform.is-in .of-page:first-child .of-nav {
  animation: var(--of-field-anim, ofUp) .65s var(--of-ease) both;
  animation-delay: calc(var(--of-i, 0) * 55ms + 180ms);
}

.openform .of-header { --of-i: -1; }
.openform .of-progress { --of-i: 0; }
.openform .of-nav { --of-i: 12; }

.of-anim-slide { --of-card-anim: ofCardSlide; --of-field-anim: ofSlide; }
.of-anim-zoom { --of-card-anim: ofCardZoom; --of-field-anim: ofZoom; }
.of-anim-blur { --of-card-anim: ofCardBlur; --of-field-anim: ofBlur; }
.of-anim-flip { --of-card-anim: ofCardFlip; --of-field-anim: ofUp; }
.openform.of-anim-none .of-card,
.openform.of-anim-none .of-field,
.openform.of-anim-none .of-header,
.openform.of-anim-none .of-nav,
.openform.of-anim-none .of-progress { animation: none !important; opacity: 1 !important; }

/* ---------- Right-to-left ---------- */
.openform[dir="rtl"] select.of-input { background-position: left 14px center; }
.openform[dir="rtl"].of-fs-underline select.of-input { background-position: left 2px center; }
.openform[dir="rtl"] .of-fs-underline .of-focus-ring,
.openform[dir="rtl"].of-fs-underline .of-focus-ring { transform-origin: right; }
.openform[dir="rtl"] .of-label-float { transform-origin: right top; }
.openform[dir="rtl"] .of-btn .of-icon { transform: scaleX(-1); }
.openform[dir="rtl"] .of-next:hover .of-icon { transform: scaleX(-1) translateX(4px); }
.openform[dir="rtl"] .of-prev:hover .of-icon { transform: scaleX(-1) translateX(-4px); }
.openform[dir="rtl"] .of-btn-primary { background-position: 100% 0; }
.openform[dir="rtl"] .of-btn-primary:hover:not(:disabled) { background-position: 0 0; }

/* E-mail, URL and phone numbers are typed left-to-right but stay aligned with the RTL layout */
.openform[dir="rtl"] .of-input:is([type="email"], [type="url"], [type="tel"]) { direction: ltr; text-align: right; }
.openform[dir="rtl"] .has-icon .of-input:is([type="email"], [type="url"], [type="tel"]) { padding-right: 46px; padding-left: 16px; }
.openform[dir="rtl"].of-fs-underline .has-icon .of-input:is([type="email"], [type="url"], [type="tel"]) { padding-right: 30px; padding-left: 2px; }

/* Range fills from the right */
.openform[dir="rtl"] .of-range-input {
  background:
    linear-gradient(270deg, var(--of-accent), var(--of-accent-2)) 100% 0 / var(--p) 100% no-repeat,
    var(--of-border);
}
.openform[dir="rtl"] .of-range-bubble { right: clamp(24px, var(--p), calc(100% - 24px)); left: auto; transform: translateX(50%); }

/* Mirror motion */
.openform[dir="rtl"] .of-page.is-leaving.to-left { animation-name: ofOutRight; }
.openform[dir="rtl"] .of-page.is-leaving.to-right { animation-name: ofOutLeft; }
.openform[dir="rtl"] .of-page.is-entering.from-right { animation-name: ofInLeft; }
.openform[dir="rtl"] .of-page.is-entering.from-left { animation-name: ofInRight; }
.openform[dir="rtl"].of-anim-slide { --of-card-anim: ofCardSlideRtl; --of-field-anim: ofSlideRtl; }

/* Arabic and other scripts need a little more line height and no letter spacing */
.openform[dir="rtl"] .of-title,
.openform[dir="rtl"] .of-heading,
.openform[dir="rtl"] .of-label,
.openform[dir="rtl"] .of-btn,
.openform[dir="rtl"] .of-success-msg h3 { letter-spacing: 0; }
.openform[dir="rtl"] .of-title { line-height: 1.4; }
.openform[dir="rtl"] h5.of-heading { text-transform: none; }

@keyframes ofCardSlideRtl { from { opacity: 0; transform: translateX(40px); } }
@keyframes ofSlideRtl { from { opacity: 0; transform: translateX(18px); } }

/* ---------- Responsive (container based) ---------- */
@container (max-width: 560px) {
  .of-field { flex-basis: 100% !important; }
  .openform .of-card { padding: min(var(--of-pad), 22px); }
  .of-step:not(.is-active) .of-step-title { display: none; }
  .of-choices-cards { grid-template-columns: 1fr 1fr; }
  .of-nav .of-btn-primary { flex: 1; }
  .of-star-icon { width: 30px; height: 30px; }
}

@container (max-width: 360px) {
  .of-choices-cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .openform *,
  .openform *::before,
  .openform *::after { animation: none !important; transition: none !important; }
  .openform.of-js .of-card { opacity: 1; }
}

/* ---------- Keyframes ---------- */
@keyframes ofCardUp { from { opacity: 0; transform: translateY(28px) scale(.985); } }
@keyframes ofCardSlide { from { opacity: 0; transform: translateX(-40px); } }
@keyframes ofCardZoom { from { opacity: 0; transform: scale(.92); } }
@keyframes ofCardBlur { from { opacity: 0; filter: blur(14px); transform: scale(1.02); } }
@keyframes ofCardFlip { from { opacity: 0; transform: perspective(1200px) rotateX(16deg) translateY(30px); } }
@keyframes ofUp { from { opacity: 0; transform: translateY(14px); } }
@keyframes ofSlide { from { opacity: 0; transform: translateX(-18px); } }
@keyframes ofZoom { from { opacity: 0; transform: scale(.96); } }
@keyframes ofBlur { from { opacity: 0; filter: blur(6px); } }
@keyframes ofRise { from { opacity: 0; transform: translateY(12px); } }
@keyframes ofDrop { from { opacity: 0; transform: translateY(-6px); } }
@keyframes ofFadeOut { to { opacity: 0; transform: translateY(-10px) scale(.98); } }
@keyframes ofOutLeft { to { opacity: 0; transform: translateX(-30px); } }
@keyframes ofOutRight { to { opacity: 0; transform: translateX(30px); } }
@keyframes ofInRight { from { opacity: 0; transform: translateX(36px); } }
@keyframes ofInLeft { from { opacity: 0; transform: translateX(-36px); } }
@keyframes ofSpin { to { transform: rotate(360deg); } }
@keyframes ofRipple { to { transform: scale(28); opacity: 0; } }
@keyframes ofShake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(3px); } 30%, 50%, 70% { transform: translateX(-6px); } 40%, 60% { transform: translateX(6px); } }
@keyframes ofPop { 40% { transform: scale(1.45) rotate(-12deg); } }
@keyframes ofBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes ofDraw { to { stroke-dashoffset: 0; } }
@keyframes ofHalo { 0% { transform: scale(.8); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes ofGlow { 0%, 100% { box-shadow: 0 10px 26px -12px var(--of-accent); } 50% { box-shadow: 0 10px 40px -4px var(--of-accent-2), 0 0 0 4px var(--of-ring); } }
@keyframes ofFloat { from { transform: translate(0, 0) scale(1); } to { transform: translate(18%, 14%) scale(1.15); } }
@keyframes ofCollapse { to { opacity: 0; transform: translateY(-6px); } }
@keyframes ofExpand { from { opacity: 0; transform: translateY(-8px); } }
