/* Public testimonial share form (/welcome/testimonials/share/).
 * Builds on welcome.css tokens; only what that file lacks lives here.
 * Phone first: one column, big tap targets, nothing wider than the screen. */

.share-page { background: var(--bg); }
.share-top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.share-top .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.share-top .brand { min-width: 0; font-size: 16px; }
.share-top .brand img { height: 32px; }
.share-top .brand-mark { width: 34px; height: 34px; }

.share-lang { display: inline-flex; flex: none; padding: 3px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; }
.share-lang a { min-width: 44px; min-height: 34px; display: grid; place-items: center; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--muted); }
.share-lang a[aria-current="true"] { background: var(--navy); color: #fff; }

.share-main { max-width: 600px; padding-top: 20px; padding-bottom: 48px; }
@media (min-width: 640px) { .share-main { padding-top: 40px; } }
.share-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); padding: 22px 18px; min-width: 0; }
@media (min-width: 640px) { .share-card { padding: 36px 40px; border-radius: var(--radius-lg); box-shadow: var(--shadow); } }

.share-title { font-family: var(--font-display); font-size: clamp(24px, 6.4vw, 32px); font-weight: 800; color: var(--navy); line-height: 1.2; }
.share-sub { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* minmax(0, 1fr): a grid column otherwise grows to its widest child (a
 * native file input on a large-font phone) and pushes the form off-screen. */
.share-form { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.share-field { min-width: 0; }
.share-field > label { display: block; font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 6px; }
.share-opt { font-weight: 400; color: var(--muted); }
.share-field input[type=text], .share-field textarea {
    display: block; width: 100%; max-width: 100%; font: inherit; font-size: 16px; color: var(--text);
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    padding: 12px 14px; min-height: 48px; transition: border-color .15s ease, box-shadow .15s ease;
}
.share-field input[type=text]::placeholder, .share-field textarea::placeholder { color: #94A3B8; }
.share-field input[type=text]:focus, .share-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.share-field textarea { resize: vertical; min-height: 120px; }
.share-err { color: #DC2626; font-size: 13px; margin-top: 6px; }
.share-alert { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.share-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.share-photo { display: flex; align-items: center; gap: 14px; }
.share-photo-preview { width: 56px; height: 56px; border-radius: 999px; flex: none; display: grid; place-items: center; color: var(--blue); background: var(--blue-soft) center / cover no-repeat; border: 1px solid var(--line); }
.share-photo-preview.has-photo svg { display: none; }
.share-photo-btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: 14px; color: var(--navy); cursor: pointer; }
.share-photo-btn:hover { border-color: #CBD5E1; }
#id_photo:focus-visible + .share-photo-btn, .share-photo:focus-within .share-photo-btn { outline: 3px solid var(--blue); outline-offset: 2px; }

.share-club { position: relative; }
.share-club-results {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 10; margin-top: 4px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    box-shadow: var(--shadow); max-height: 280px; overflow-y: auto;
}
.share-club-results li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; font-size: 15px; min-height: 48px; }
.share-club-results li:hover, .share-club-results li:focus { background: var(--blue-soft); outline: none; }
.share-club-results li.is-empty { color: var(--muted); cursor: default; }
.share-club-results img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; flex: none; }

/* Ratings: one block per criterion, title + one-line hint, stars underneath
 * at full width so each is a comfortable tap target on a phone. */
.share-ratings { display: grid; gap: 10px; min-width: 0; }
.share-ratings-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 14px; color: var(--navy); }
.share-average { font-weight: 500; color: var(--muted); font-size: 14px; }
.share-average strong { color: var(--navy); font-size: 16px; margin-left: 4px; }
.rate { border: 1px solid var(--line); border-radius: 14px; margin: 0; padding: 14px; min-width: 0; background: #fff; }
.rate-title { float: left; width: 100%; padding: 0; font-weight: 700; font-size: 15px; color: var(--navy); }
.rate-title + * { clear: both; }
.rate-hint { color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 2px; }
.rate-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.rate-word { font-size: 13px; color: #94A3B8; }
.rate-word.is-set { color: var(--navy); font-weight: 600; }
/* Radios are in 5..1 order and laid out reversed, so ~ selects the stars
 * "below" the hovered/checked one, which display to its left. */
.stars { display: inline-flex; flex-direction: row-reverse; margin-left: -6px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 32px; line-height: 1; padding: 4px 5px; color: #D5DCE6; cursor: pointer; margin: 0; transition: color .1s ease, transform .1s ease; -webkit-tap-highlight-color: transparent; }
.stars input:checked ~ label { color: var(--gold); }
@media (hover: hover) { .stars label:hover, .stars label:hover ~ label { color: var(--gold); } }
.stars input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 1px; border-radius: 6px; }
.stars label:active { transform: scale(.88); }

.share-check { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.share-check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--blue); }
.share-check label { font-weight: 400; font-size: 14px; color: var(--text); margin: 0; }
.share-check .share-err { grid-column: 2; margin-top: 0; }
.share-form .btn-block { min-height: 52px; font-size: 16px; }

.share-done { text-align: center; display: grid; justify-items: center; gap: 12px; }
.share-done-ico { width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.share-done .btn { margin-top: 12px; }

/* All testimonials page */
.ta-main { padding-top: 24px; padding-bottom: 48px; }
.ta-head { display: grid; justify-items: center; gap: 12px; text-align: center; margin-bottom: 24px; }
.ta-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 0; color: var(--muted); font-size: 14px; }
.ta-summary strong { color: var(--navy); font-size: 18px; }
.ta-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }
@media (min-width: 640px) { .ta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .ta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ta-empty { text-align: center; color: var(--muted); }
.ta-back { text-align: center; margin-top: 32px; }
