/* ---------- ask to join: join.html and the trip page's join buttons. Sticker Truck tokens only, nothing new. ----------
   Text is 17px or more, every tap target is at least 48px tall, and colour is always paired with a word or mark. */
.join-top .nav{margin-left:auto}
.join{max-width:640px}
.join-head{display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px;margin-top:18px}
.join-head>div{flex:1 1 260px}
.join-title{font-family:Inter;font-weight:700;letter-spacing:-0.02em;font-size:32px;line-height:1.1;text-wrap:balance}
.join-sub{margin-top:6px;font-weight:700;color:var(--muted)}
.join-note{margin-top:14px;padding:12px 14px;border-radius:14px;background:#fff7e0;box-shadow:inset 0 0 0 2px #f3d98a;font-weight:700}

/* one question: a label or a legend, help and an example, then the control */
.jq{margin:0 0 20px;padding:0;border:0;min-width:0}
.jq label:not(.jq-opt),.jq legend,.jq-label{display:block;font-weight:800;font-size:18px;margin-bottom:4px;padding:0}
.jq[hidden]{display:none}
.jq-group{margin:0;padding:0;border:0;min-width:0}
.jq-req{font-weight:700;font-size:15px;color:var(--muted)}
.jq-optional{font-weight:500;color:var(--muted)}
.jq-hint{margin:2px 0 8px;font-size:16px;font-weight:500;color:var(--muted)}
.jq input[type=text],.jq input[type=number],.jq input[type=date],.jq textarea{width:100%;min-height:50px;padding:10px 14px;border-radius:14px;border:1.5px solid var(--line);
  background:#fff;font:inherit;font-size:18px;font-weight:700;color:var(--indigo)}
.jq textarea{min-height:120px;resize:vertical}
.jq input:focus,.jq textarea:focus{border-color:var(--indigo)}
.jq .unit{font-weight:700;margin-left:6px}
/* options: the whole row is the control, 48px tall, with the tick or dot inside it */
.jq-opt{display:flex;align-items:center;gap:12px;min-height:48px;margin:0 0 6px;padding:6px 14px;border-radius:14px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line);
  font-weight:700;font-size:17px;cursor:pointer}
.jq-opt:hover{box-shadow:inset 0 0 0 1.5px var(--indigo)}
.jq-opt input{flex:none;width:24px;height:24px;margin:0;accent-color:var(--magenta)}
.jq-opt:has(input:checked){background:#fde8f2;box-shadow:inset 0 0 0 2px var(--magenta)}
.jq-opt:has(input:focus-visible){outline:3px solid var(--magenta);outline-offset:2px}
.jq-other{margin:0 0 6px 38px;width:calc(100% - 38px)}
.jq-scale{display:flex;flex-wrap:wrap;gap:6px}
.jq-scale .jq-opt{flex:1 1 56px;justify-content:center;min-width:56px}
.jq-saved{margin:0 0 8px;min-height:48px;padding:6px 16px;font-size:17px}
.jq .ferr{margin-top:6px}

#join-h{margin-bottom:14px}
#join-h:focus{outline:none}
.join-nav{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.join-nav .btn{min-height:48px;min-width:120px;font-size:18px}
.join-nav .btn[disabled]{opacity:.55;cursor:not-allowed}
.join-saved{margin-top:12px;min-height:1.4em;font-weight:700;color:var(--muted)}
.join-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:16px}
.join-links .btn{min-height:48px;text-decoration:none}
.join-review{display:grid;gap:10px;margin:8px 0 18px}
.join-review div{padding:10px 14px;border-radius:14px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line)}
.join-review dt{font-weight:800;font-size:16px;color:var(--muted)}
.join-review dd{margin:2px 0 0;font-weight:700;font-size:18px;overflow-wrap:anywhere}

/* the trip page: where the request stands, and the question panel */
.join-state{margin:0 0 10px;padding:10px 14px;border-radius:14px;background:#e6f7f5;box-shadow:inset 0 0 0 2px #7fd1c9;font-weight:800;font-size:17px;line-height:1.3}
.bookbar .join-state{margin:0;flex:1 1 0;font-size:15px;padding:8px 12px}
/* the booking code and a closed-link sentence sit on their own row under the phone bar's price and button */
.bookbar .join-note,.bookbar .ferr{flex:1 1 100%;margin:0;font-size:15px}
.bookcard .btn+.btn,.bookcard .join-state+.btn,.bookcard .btn+a{margin-top:10px}
.join-q{margin-top:14px}
.join-q-btn{width:100%;min-height:48px;font-size:17px;white-space:normal}
.join-q-panel{margin-top:12px;padding:14px;border-radius:16px;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line)}
.join-q-panel label{display:block;margin-bottom:6px;font-weight:800;font-size:17px}
.join-q-panel textarea{width:100%;min-height:110px;padding:10px 14px;border-radius:14px;border:1.5px solid var(--line);font:inherit;font-size:17px;font-weight:600;color:var(--indigo);resize:vertical}
.join-q-panel textarea:focus{border-color:var(--indigo)}
.join-q-panel .btn{min-height:48px;margin-top:8px;font-size:17px}
.join-q-panel .btn[disabled]{opacity:.55;cursor:not-allowed}
.join-count{margin-top:6px;font-size:15px;font-weight:700;color:var(--muted)}
.join-note[role=status]:empty{display:none}
.join-thread{display:grid;gap:8px;margin-bottom:12px;max-height:260px;overflow:auto}
.join-thread:empty{display:none}
.join-msg{margin:0;padding:8px 12px;border-radius:14px;font-size:16px;font-weight:600;overflow-wrap:anywhere;white-space:pre-wrap}
.join-msg strong{display:block;font-size:14px;color:var(--muted)}
.join-msg.mine{background:#eef2ff}
.join-msg.theirs{background:#fff3e6}
@media (max-width:480px){.join-title{font-size:26px}.join-nav .btn{flex:1 1 100%}}
.join-summary-text{background:#eef2ff;border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:6px 0 10px;line-height:1.5}
/* Why Send is greyed out (join.js SEND_HINT), with room under the button and its shadow. */
.join-send-hint{margin:12px 0 0}
/* The "Your data" links under the card on join.html: the same look as on the account page (me.html), which this page did not get. */
.me-legal{display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:22px;font-weight:700}
.me-legal a{color:var(--indigo);text-underline-offset:3px}
