/* Home-made song quiz — reproduces the Tally form bZ5xv7 (its custom CSS + measurements of the live form):
   #FDF6EE page, Lato, 560 px column with 24 px padding, white option cards with a 20 px orange ring,
   selected = orange (#fd703a) fill with white text and a ✓, coral "Next" button right-aligned. */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,400&display=swap');

.tq { background: #FDF6EE; font-family: 'Lato', system-ui, -apple-system, sans-serif; color: #2c2c2c; font-size: 16px; line-height: 1.6; letter-spacing: normal; -webkit-font-smoothing: antialiased; text-align: left; position: relative; overflow-x: hidden; min-height: 606px; display: flex; flex-direction: column; }
/* like the Tally page: the column is vertically centered in the (at least) 630 px tall embed area */
.tq *, .tq *::before, .tq *::after { box-sizing: border-box; }
.tq__page { width: 100%; max-width: 560px; margin: auto; padding: 24px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.tq__step { display: none; }
.tq__step.is-active { display: block; }
.tq__step.is-forward { animation: tq-in-right .3s ease-out both; }
.tq__step.is-backward { animation: tq-in-left .3s ease-out both; }
@keyframes tq-in-right { from { opacity: 0; transform: translateX(60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes tq-in-left { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: translateX(0); } }

.tq__back { display: inline-block; align-self: flex-start; background: none; border: 0; padding: 4px 0; margin: 0 0 8px; font: 400 14px/1.6 'Lato', system-ui, sans-serif; color: #2c2c2c; cursor: pointer; }
.tq__back:hover { color: #000; }
.tq__back[hidden] { display: none; }

.tq__title { margin: 0; padding: 12px 0 4px; font: 700 24px/1.4 'Lato', system-ui, sans-serif; color: #000; }
.tq__text { margin: 0; padding: 0 0 2px; font: 400 14px/1.5 'Lato', system-ui, sans-serif; color: #2c2c2c; }
.tq__text--italic { font-style: italic; }
.tq__text b { font-weight: 700; }

.tq__options { margin: 0; padding: 0; }
.tq__opt { display: flex; align-items: center; width: 100%; background: #fff; border: 0; border-radius: 8px; padding: 8px 14px; margin: 0 0 4px; cursor: pointer; color: #2c2c2c; font-size: 14px; line-height: 1.6; transition: background-color .15s ease; position: relative; }
.tq__opt:hover { background: #f5ede4; }
.tq__opt input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.tq__badge { width: 20px; height: 20px; min-width: 20px; border: 2px solid #fd703a; border-radius: 50%; background: transparent; margin-right: 10px; position: relative; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; }
.tq__opt-text { padding-left: 12px; }
.tq__opt.is-selected { background: #fd703a; color: #fff; font-weight: 600; }
.tq__opt.is-selected:hover { background: #e5601f; }
.tq__opt.is-selected .tq__badge { background: #fff; border-color: #fff; }
.tq__opt.is-selected .tq__badge::after { content: '✓'; font-size: 13px; font-weight: 700; color: #fd703a; line-height: 1; position: absolute; }
.tq__opt:focus-within { box-shadow: 0 0 0 3px rgba(253, 112, 58, .12); }
.tq__other { margin: 4px 0 4px; }
.tq__other[hidden] { display: none; }

.tq__input, .tq__textarea, .tq__select { display: block; width: 100%; background: #fff; border: 1px solid #ede4d3; border-radius: 8px; font: 400 16px/1.4 'Lato', system-ui, sans-serif; color: #2c2c2c; outline: none; transition: border-color .15s, box-shadow .15s; box-shadow: 0 1px 2px rgba(44, 44, 44, .04); -webkit-appearance: none; appearance: none; }
.tq__input, .tq__select { height: 38px; padding: 7px 16px; }
.tq__textarea { min-height: 100px; padding: 14px; resize: vertical; }
.tq__input::placeholder, .tq__textarea::placeholder { color: rgba(44, 44, 44, .31); }
.tq__input:focus, .tq__textarea:focus, .tq__select:focus { border-color: #fd703a; box-shadow: 0 0 0 3px rgba(253, 112, 58, .12); }
.tq__select { padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232c2c2c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.tq__field { margin: 0; }
.tq__error { display: none; margin: 6px 0 0; font: 500 13px/1.5 'Lato', system-ui, sans-serif; color: #dc2626; }
.tq__error.is-visible { display: block; }

.tq__submit { display: flex; justify-content: flex-end; margin-top: 12px; }
.tq__submit button { background: #fd703a; color: #FCFCFC; border: 0; border-radius: 10px; font: 600 14px/1.4 'Lato', system-ui, sans-serif; padding: 9px 32px; cursor: pointer; transition: background-color .2s ease; }
.tq__submit button:hover { background: #e5601f; }
.tq__submit button:disabled { opacity: .7; cursor: wait; }
.tq__hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }

.tq__loader { position: absolute; inset: 0; background: #FDF6EE; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.tq__loader.is-active { opacity: 1; pointer-events: auto; }
.tq__spinner { width: 38px; height: 38px; border: 3px solid #ede4d3; border-top-color: #fd703a; border-radius: 50%; animation: tq-spin .8s linear infinite; }
.tq__loader-text { margin: 0; font: 600 15px/1.5 'Lato', system-ui, sans-serif; color: #2c2c2c; }
@keyframes tq-spin { to { transform: rotate(360deg); } }
