* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font, "Manrope"), system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--q); background: var(--bg) var(--bgimg, none) center / cover no-repeat fixed; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.tf-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; background: color-mix(in srgb, var(--a) 15%, transparent); z-index: 5; }
.tf-progress i { display: block; height: 100%; width: 0; background: var(--a); transition: width .4s ease; }
.tf-logo { position: fixed; top: 32px; left: 30px; z-index: 4; }
.tf-logo img { height: 34px; width: auto; display: block; }
.tf-stage { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 110px 24px 120px; }
.tf-block { width: 100%; max-width: 720px; animation: tf-in .45s cubic-bezier(.2,.7,.3,1); }
.tf-block.tf-center { text-align: center; }
@keyframes tf-in { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tf-block { animation: none; } }
.tf-q { display: flex; gap: 8px; align-items: flex-start; }
.tf-num { flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 14px; height: 14px; margin-top: 7px; padding: 0 3px; border-radius: 3px; background: var(--q); color: var(--bg); font-size: 9px; font-weight: 700; }
.tf-body { flex: 1; min-width: 0; }
.tf-title { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 400; color: var(--q); white-space: pre-line; }
.tf-title .tf-req, .tf-sub .tf-req { margin-left: 2px; }
.tf-desc { margin: 6px 0 0; font-size: 14px; line-height: 1.45; color: color-mix(in srgb, var(--q) 70%, transparent); white-space: pre-line; }
.tf-center .tf-title { font-size: 24px; }
.tf-media { margin: 20px 0 0; }
.tf-media img { max-width: 100%; max-height: 320px; border-radius: 8px; display: block; }
.tf-center .tf-media img { margin: 0 auto; }
.tf-answer { margin-top: 26px; }
.tf-sub { margin-top: 24px; }
.tf-sub:first-child { margin-top: 0; }
.tf-sub > label, .tf-sub > .tf-sublabel { display: block; font-size: 15px; color: var(--q); margin-bottom: 4px; }
.tf-sub .tf-desc { margin: 0 0 6px; }
.tf-input, .tf-textarea { width: 100%; border: 0; border-bottom: 1px solid color-mix(in srgb, var(--a) 30%, transparent); background: transparent; color: var(--a);
  font: inherit; font-size: 20px; padding: 0 0 8px; outline: none; border-radius: 0; }
.tf-textarea { resize: none; min-height: 40px; line-height: 1.4; overflow: hidden; }
.tf-input::placeholder, .tf-textarea::placeholder { color: color-mix(in srgb, var(--a) 30%, transparent); }
.tf-input:focus, .tf-textarea:focus { border-bottom: 2px solid var(--a); padding-bottom: 7px; }
.tf-hint { margin-top: 8px; font-size: 12px; color: color-mix(in srgb, var(--a) 70%, transparent); }
.tf-hint b { font-weight: 700; }
.tf-choices { display: inline-flex; flex-direction: column; gap: 8px; min-width: min(100%, 300px); max-width: 100%; }
.tf-choice { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 12px 6px 6px; border-radius: 4px; cursor: pointer; text-align: left;
  font: inherit; font-size: 18px; color: var(--a); background: color-mix(in srgb, var(--a) 10%, transparent); border: 1px solid color-mix(in srgb, var(--a) 60%, transparent); }
.tf-choice:hover { background: color-mix(in srgb, var(--a) 20%, transparent); }
.tf-choice[aria-pressed="true"], .tf-choice[aria-checked="true"] { border: 2px solid var(--a); padding: 5px 11px 5px 5px; background: color-mix(in srgb, var(--a) 25%, transparent); }
.tf-key { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 2px; font-size: 12px; font-weight: 700;
  border: 1px solid color-mix(in srgb, var(--a) 60%, transparent); background: var(--bg); color: var(--a); }
.tf-choice[aria-pressed="true"] .tf-key, .tf-choice[aria-checked="true"] .tf-key { background: var(--a); color: var(--bg); }
.tf-choice .tf-keyhint { font-size: 11px; font-weight: 400; display: none; }
.tf-choice .tf-label { flex: 1; min-width: 0; }
.tf-check { margin-left: auto; opacity: 0; }
.tf-choice[aria-pressed="true"] .tf-check, .tf-choice[aria-checked="true"] .tf-check { opacity: 1; }
.tf-other-input { flex: 1; border: 0; background: transparent; font: inherit; color: var(--a); outline: none; min-width: 0; }
.tf-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.tf-pics.tf-super { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tf-pic { display: flex; flex-direction: column; gap: 8px; padding: 6px; border-radius: 4px; cursor: pointer; text-align: left; font: inherit; color: var(--a);
  background: color-mix(in srgb, var(--a) 10%, transparent); border: 1px solid color-mix(in srgb, var(--a) 60%, transparent); }
.tf-pic img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: rgba(255,255,255,.4); display: block; }
.tf-pic .tf-pic-foot { display: flex; gap: 8px; align-items: center; font-size: 15px; }
.tf-pic[aria-pressed="true"] { border: 2px solid var(--a); padding: 5px; background: color-mix(in srgb, var(--a) 25%, transparent); }
.tf-pic[aria-pressed="true"] .tf-key { background: var(--a); color: var(--bg); }
.tf-scale { display: flex; gap: 6px; flex-wrap: wrap; }
.tf-scale .tf-choice { width: auto; flex: 1 0 44px; justify-content: center; padding: 10px 0; font-size: 18px; }
.tf-scale .tf-choice[aria-pressed="true"] { padding: 9px 0; }
.tf-scale-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 14px; color: var(--a); }
.tf-stars { display: flex; gap: 14px; }
.tf-star { background: none; border: 0; padding: 0; cursor: pointer; color: var(--a); font: inherit; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; }
.tf-star svg { width: 56px; height: 56px; }
.tf-star svg path { fill: transparent; stroke: var(--a); stroke-width: 1.2; }
.tf-star.on svg path { fill: var(--a); }
.tf-drop { position: relative; display: grid; place-items: center; min-height: 200px; padding: 24px; text-align: center; border: 1px dashed color-mix(in srgb, var(--a) 60%, transparent);
  border-radius: 8px; background: color-mix(in srgb, var(--a) 10%, transparent); color: var(--a); font-size: 16px; }
.tf-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tf-drop small { display: block; margin-top: 6px; font-size: 12px; opacity: .8; }
.tf-dropdown { position: relative; }
.tf-dropdown-list { list-style: none; margin: 8px 0 0; padding: 0; max-height: 280px; overflow: auto; display: grid; gap: 6px; }
.tf-actions { display: flex; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.tf-center .tf-actions { justify-content: center; flex-direction: column; gap: 8px; }
.tf-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-size: 15px; font-weight: 400; line-height: 1; padding: 9px 13px;
  border-radius: 999px; background: var(--b); color: var(--bc); text-decoration: none; box-shadow: 0 3px 12px rgba(0,0,0,.1); }
.tf-btn:hover { filter: brightness(1.08); }
.tf-btn[disabled] { opacity: .6; cursor: default; }
.tf-press { font-size: 12px; color: var(--a); }
.tf-press b { font-weight: 700; }
.tf-time { font-size: 12px; color: color-mix(in srgb, var(--q) 80%, transparent); display: inline-flex; align-items: center; gap: 4px; }
.tf-error { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 4px 8px; border-radius: 3px; font-size: 14px; background: #f7e6e6; color: #af0404; }
.tf-error[hidden] { display: none; }
.tf-nav { position: fixed; right: 24px; bottom: 24px; display: flex; gap: 1px; z-index: 4; }
.tf-nav button { width: 32px; height: 32px; border: 0; cursor: pointer; background: var(--b); color: var(--bc); display: grid; place-items: center; }
.tf-nav button:first-child { border-radius: 4px 0 0 4px; }
.tf-nav button:last-child { border-radius: 0 4px 4px 0; }
.tf-nav button[disabled] { opacity: .3; cursor: default; }
.tf-date { display: flex; align-items: flex-end; gap: 10px; }
.tf-date .tf-date-part { width: 3.2em; text-align: center; }
.tf-date .tf-date-part[maxlength="4"] { width: 4.6em; }
.tf-date-sep { font-size: 20px; color: var(--a); padding-bottom: 8px; }
.tf-phone { display: flex; align-items: flex-end; gap: 12px; }
.tf-cc { flex: none; font-size: 16px; color: var(--a); padding: 0 0 9px; border-bottom: 1px solid color-mix(in srgb, var(--a) 30%, transparent); }
.tf-video iframe { width: 100%; max-width: 560px; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; display: block; }
.tf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tf-note { margin-top: 10px; font-size: 12px; color: color-mix(in srgb, var(--a) 75%, transparent); }
@media (max-width: 600px) {
  .tf-stage { padding: 90px 20px 110px; align-items: flex-start; }
  .tf-title { font-size: 18px; } .tf-center .tf-title { font-size: 21px; }
  .tf-input, .tf-textarea { font-size: 18px; }
  .tf-choice { font-size: 16px; }
  .tf-logo { top: 22px; left: 20px; }
  .tf-pics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tf-pics.tf-super { grid-template-columns: 1fr; }
}
