/* GEO PSI customer feedback - the client-facing form. Phone first. */
:root {
    --orange: #F57F29; --orange-ink: #A8541A; --navy: #14213D; --black: #231F20; --grey: #495965;
    --tint: #EDEFEF; --rule: #E3E6EA; --off: #D3D8DE; --bg: #F5F6F7; --critical: #B3261E; --good: #2E7D53;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--black); font-family: "Open Sans", Arial, sans-serif;
    font-weight: 400; font-size: 16px; line-height: 1.5; }

.band { background: var(--navy); border-bottom: 4px solid var(--orange); }
.band-in { max-width: 680px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center;
    justify-content: space-between; gap: 12px; }
.band img { height: 44px; width: auto; display: block; }
.band span { color: #C9D1DE; font-size: 14px; }

.wrap { max-width: 680px; margin: 0 auto; padding: 20px 16px 32px; }
.wrap.narrow { max-width: 520px; padding-top: 48px; }
.card { background: #fff; border: 1px solid var(--rule); border-radius: 10px; padding: 22px 20px; margin: 0 0 16px; }

h1 { font-size: 26px; font-weight: 600; margin: 0 0 8px; line-height: 1.25; }
.intro p { margin: 0 0 8px; color: var(--grey); font-weight: 300; }
.intro p:last-child { margin: 0; }
.intro .job { color: var(--black); font-weight: 400; font-size: 15px; }
.intro .job strong { font-weight: 600; }

.banner { background: #FBE4DC; color: var(--critical); font-weight: 600; font-size: 14px; border-radius: 8px;
    padding: 10px 14px; margin: 0 0 16px; }

/* a question */
.q { border: none; margin: 0; padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--rule); min-width: 0; }
legend, .legend { display: flex; gap: 10px; align-items: baseline; padding: 0; font-weight: 600; font-size: 17px;
    line-height: 1.35; margin: 0 0 4px; }
.legend { display: block; }
.num { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--tint); color: var(--grey);
    font-size: 13px; display: inline-flex; align-items: center; justify-content: center; transform: translateY(-1px); }
.help { margin: 0 0 6px 34px; font-size: 14px; color: var(--grey); font-weight: 300; }
.opt { font-weight: 400; font-size: 13px; color: var(--grey); margin-left: 4px; }
.q.missing legend { color: var(--critical); }
.q.missing .num { background: #FBE4DC; color: var(--critical); }
.err { color: var(--critical); font-size: 14px; font-weight: 600; margin: 4px 0 0 34px; }

/* the stars: DOM order 5..1, shown 1..5 by row-reverse, so "~" lights the lower ones */
.stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; margin: 6px 0 0 28px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.stars label { cursor: pointer; padding: 4px 3px; -webkit-tap-highlight-color: transparent; border-radius: 6px; }
.stars svg { width: 40px; height: 40px; display: block; fill: var(--off); transition: fill .12s ease, transform .12s ease; }
.stars input:checked ~ label svg { fill: var(--orange); }
@media (hover: hover) {
    .stars:hover label svg { fill: var(--off); }
    .stars label:hover svg, .stars label:hover ~ label svg { fill: var(--orange); }
    .stars label:hover svg { transform: scale(1.08); }
}
.stars label:active svg { transform: scale(.92); }
.stars input:focus-visible + label { outline: 2px solid var(--navy); outline-offset: 1px; }
.said { min-height: 20px; margin: 2px 0 0 34px; font-size: 14px; font-weight: 600; color: var(--orange-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

textarea { display: block; width: 100%; margin-top: 8px; font: inherit; font-size: 16px; padding: 10px 12px;
    border: 1px solid var(--off); border-radius: 8px; resize: vertical; color: var(--black); }
textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; margin: 0 0 22px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }

.send { display: block; width: 100%; font: inherit; font-size: 17px; font-weight: 600; padding: 14px; border: none;
    border-radius: 8px; background: var(--orange); color: var(--black); cursor: pointer; }
.send:hover { background: #F78F44; }
.send:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.send:disabled { opacity: .6; cursor: default; }
.fine { font-size: 13px; color: var(--grey); text-align: center; margin: 12px 0 0; font-weight: 300; }

.msg { text-align: center; padding: 36px 24px; }
.msg p { color: var(--grey); margin: 0; }
.msg.ok h1 { color: var(--good); }
.msg.ok h1::before { content: ""; display: block; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%;
    background: #E3F1E8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232E7D53' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 28px no-repeat; }

.foot { text-align: center; font-size: 13px; color: var(--grey); padding: 0 16px 32px; }
.foot a { color: var(--grey); }

@media (max-width: 420px) {
    .stars { margin-left: 0; }
    .stars svg { width: 44px; height: 44px; }
    .stars label { padding: 3px 2px; }
    .help, .said, .err { margin-left: 0; }
    h1 { font-size: 23px; }
}
