/* KYKOLOGY™ feedback form (feedback.kykology.app). Brand: Montserrat body, bold Merriweather headers, #006D77 section headers. */
:root {
  --midnight: #193656; --teal: #006D77; --soft-teal: #83C5BE; --blue: #4F94D4; --gold: #C98A00; --soft-gold: #D8BC7C;
  --charcoal: #2E2E2E; --muted: #5B6B80; --line: #DCE5EC; --page: #F3F6F8; --red: #B3261E;
  --serif: Merriweather, Georgia, serif; --sans: Montserrat, 'Segoe UI', Arial, sans-serif;
}
* { box-sizing: border-box; }
/* Steady on iPhone: nothing may be wider than the screen, and sideways scrolling is locked. */
html, body { margin: 0; max-width: 100%; overflow-x: hidden; overscroll-behavior-x: none; }
body { background: var(--page); color: var(--charcoal); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; touch-action: pan-y; }
h1, h2 { font-family: var(--serif); font-weight: 700; text-wrap: balance; }
a { color: var(--teal); }
sup { font-size: .55em; line-height: 0; }
button, input, textarea { font: inherit; }

.top { position: sticky; top: 0; z-index: 10; background: var(--midnight); }
.top-in { max-width: 760px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { height: 34px; width: auto; display: block; }
.tag { color: var(--soft-gold); font-size: 11px; font-weight: 700; letter-spacing: .16em; }

main { max-width: 760px; margin: 0 auto; padding: 0 16px 32px; }
.hero { position: relative; margin: 0 -16px; padding: 30px 20px 64px; color: #fff; background:
  radial-gradient(60% 60% at 15% 90%, rgba(131,197,190,.35), transparent 70%),
  radial-gradient(45% 50% at 85% 85%, rgba(79,148,212,.35), transparent 70%),
  linear-gradient(180deg, var(--midnight) 0%, #1C4560 100%); }
.hero .eyebrow { color: #B7DBF6; }
.hero h1 { font-size: 27px; line-height: 1.25; margin: 6px 0 10px; }
.hero p { margin: 0; max-width: 560px; color: rgba(255,255,255,.88); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--teal); }

.card { position: relative; background: #fff; border-radius: 18px; box-shadow: 0 6px 24px rgba(25,54,86,.10); padding: 22px 18px; }
form.card { margin-top: -40px; }
.q { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
legend, .legend { display: block; padding: 0; font-weight: 700; color: var(--teal); font-size: 16px; margin-bottom: 10px; }
.legend { margin-bottom: 4px; }
.n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 12px; margin-right: 6px; vertical-align: 1px; }
.hint { margin: 0 0 8px; color: var(--muted); font-size: 13.5px; }

.choices { display: grid; gap: 10px; }
.choice { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.choice span { display: flex; flex-direction: column; min-width: 0; }
.choice small { color: var(--muted); font-size: 12.5px; }
.choice input { accent-color: var(--teal); width: 18px; height: 18px; flex: none; margin: 0; }
.choice:has(input:checked) { border-color: var(--teal); background: #EEF7F7; }

.faces { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.face { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 2px 8px; cursor: pointer; min-width: 0; }
.face input { position: absolute; opacity: 0; pointer-events: none; }
.face .emo { font-size: 28px; line-height: 1; }
.face .lbl { font-size: 10.5px; line-height: 1.2; color: var(--muted); }
.face:has(input:checked) { border-color: var(--teal); background: #EEF7F7; }
.face:has(input:checked) .lbl { color: var(--teal); font-weight: 600; }
.face:has(input:focus-visible), .choice:has(input:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }

input[type=text], input[type=email], textarea { width: 100%; max-width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 16px; background: #fff; color: var(--charcoal); outline: none; }
input[type=text]:focus, input[type=email]:focus, textarea:focus { border-color: var(--teal); }
textarea { resize: vertical; min-height: 120px; }
.two { display: grid; gap: 18px; }

.consent { display: flex; gap: 12px; align-items: flex-start; background: #F7F0E4; border-radius: 12px; padding: 14px; margin: 0 0 16px; cursor: pointer; }
.consent input { accent-color: var(--teal); width: 20px; height: 20px; flex: none; margin: 1px 0 0; }
.privacy { font-size: 12.5px; color: var(--muted); margin: 0 0 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.btn { width: 100%; border: 0; border-radius: 12px; padding: 15px 18px; color: #fff; font-weight: 700; letter-spacing: .08em; cursor: pointer; background: linear-gradient(90deg, var(--blue), var(--teal)); }
.btn[disabled] { opacity: .6; cursor: wait; }

.err { display: none; color: var(--red); font-size: 13px; margin: 6px 0 0; }
.q.bad .err, .q .bad + .err, .err.show { display: block; }
.q.bad .choice, .q.bad .face { border-color: #E9B9B5; }
input.bad, textarea.bad { border-color: var(--red); }

.done { margin-top: -40px; text-align: left; }
.done h2 { color: var(--midnight); font-size: 22px; margin: 6px 0 10px; }
.done:focus { outline: none; }
.foot { text-align: center; color: var(--muted); font-size: 12px; padding: 8px 16px 28px; }
.foot a { color: inherit; }

@media (min-width: 640px) {
  .hero { margin: 0; border-radius: 0 0 22px 22px; padding: 40px 36px 72px; }
  .hero h1 { font-size: 34px; }
  .card { padding: 30px 34px; }
  .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .choice { flex-direction: column; align-items: flex-start; }
  .face .lbl { font-size: 12px; }
  .two { grid-template-columns: 1fr 1fr; }
  .btn { width: auto; min-width: 260px; }
}
