/* 21:00 · Early access: the shop's door sign and the form (access.js). */

/* The door sign, hung from a hook by two strings. */
.access-sign { display: flex; justify-content: center; padding-top: 8px; }
.sign-hang { position: relative; width: 240px; transform-origin: 50% 5px; }
.sign-strings { display: block; width: 240px; height: 80px; fill: none; stroke: rgba(230,224,217,.5); stroke-width: 1.5; }
.sign-strings circle { fill: #96A4AC; stroke: none; }
.sign-card { position: relative; height: 150px; margin-top: -4px; perspective: 900px; transform-style: preserve-3d; transition: transform .8s var(--ease); }
.sign-hang.is-turned .sign-card { transform: rotateY(180deg); }
html.reduced .sign-card { transition: none; }
.sign-face {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 14px; border-radius: 16px; text-align: center;
  background: #F4E5DA; color: #141D23;
  box-shadow: 0 24px 40px -22px rgba(0,0,0,.8), inset 0 0 0 6px #F4E5DA, inset 0 0 0 7px rgba(20,29,35,.25);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.sign-back { transform: rotateY(180deg); }
.sign-big { font-size: 30px; font-weight: 700; font-stretch: 112%; letter-spacing: -0.03em; line-height: 1.05; }
.sign-small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #56656E; }
.sign-check { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #DDEBE9; }
.sign-check svg { width: 22px; height: 22px; fill: none; stroke: #16706E; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sign-thanks { font-size: 17px; font-weight: 700; }
.sign-shop { font-size: 12px; color: #56656E; }

/* The form. */
.ea-form { margin-top: 32px; display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.ea-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ea-form .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ea-form label, .ea-form legend { font-size: 15px; font-weight: 600; padding: 0; }
.ea-form .opt { margin-left: 4px; font-weight: 400; color: var(--muted); }
.ea-form input, .ea-form select, .ea-form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border-radius: var(--r-input); border: 1px solid var(--field);
  background: var(--surface); color: var(--ink); font-size: 16px;
}
.ea-form textarea { resize: vertical; min-height: 96px; }
.ea-form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.ea-form input:focus-visible, .ea-form select:focus-visible, .ea-form textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.ea-form [aria-invalid="true"] { border-color: var(--error); }
.ea-form .err { min-height: 0; font-size: 14px; color: var(--error); }
.ea-form .err:empty { display: none; }

/* Where do you sell? — three segments. */
.seg-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 16px; border: 1px solid var(--field); background: var(--surface); }
.seg-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-opts label { display: grid; place-items: center; min-height: 44px; border-radius: 12px; font-weight: 500; color: var(--muted); cursor: pointer; }
.seg-opts input:checked + label { background: var(--accent-tint); color: var(--accent); font-weight: 600; }
.seg-opts input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 1px; }
.seg[aria-invalid="true"] .seg-opts { border-color: var(--error); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ea-submit { align-self: flex-start; min-width: 200px; }
.ea-submit:disabled { opacity: .6; cursor: default; }
.ea-note { margin-top: -6px; font-size: 13px; color: var(--muted); }
.ea-form.is-sent { display: none; }

@media (max-width: 899px) {
  .access-sign { padding-bottom: 8px; }
}
@media (max-width: 599px) {
  .ea-row { grid-template-columns: 1fr; }
  .ea-submit { align-self: stretch; }
}

/* Why a request couldn't be sent; what was typed stays in the form. */
.ea-status { margin: -6px 0 0; font-size: 14px; color: var(--error); }
.ea-status:empty { display: none; }
.ea-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
