/* Kitchen-ticket forms (quote ticket on the homepage, job application on Fólkið okkar).
   Uses the colour and font tokens from site.css. */
/* ---------- Order docket (contact) ---------- */
.contact { background: var(--rye); padding: var(--section) 0; }
.contact-inner { display: grid; grid-template-columns: 1fr minmax(320px, 440px); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact .h2 { margin: 18px 0 20px; }
.seg { display: inline-flex; background: var(--oat); border-radius: 999px; padding: 5px; margin: 32px 0 8px; }
.seg button { border: 0; background: none; font: 700 15px var(--text); letter-spacing: .02em; color: var(--ink); padding: 12px 22px; min-height: 44px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.seg button[aria-checked="true"] { background: var(--deep); color: var(--oat); }
.q { border: 0; border-top: 1px solid var(--line); padding: 24px 0 4px; margin-top: 16px; }
.q legend { float: left; width: 100%; font-family: var(--display); font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -.015em; line-height: 1.1; padding: 0 0 14px; display: flex; gap: 12px; align-items: baseline; }
.q legend i { font-family: var(--accent); font-weight: 200; color: var(--deep); font-size: .9em; }
.q > legend + * { clear: both; }
.q[hidden], [data-mode][hidden] { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 15px var(--text); letter-spacing: .01em; color: var(--ink); background: transparent; border: 1.5px solid var(--line-strong); border-radius: 999px; padding: 10px 16px; min-height: 44px; cursor: pointer; transition: background .15s, border-color .15s, transform .15s; }
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--oat); }
.chip[aria-pressed="true"]::before { content: "✓ "; }
.range { display: flex; align-items: center; gap: 20px; }
.range output { font-family: var(--display); font-size: 44px; line-height: 1; letter-spacing: -.02em; min-width: 3.2ch; color: var(--deep); }
.range input { flex: 1; accent-color: var(--deep); height: 44px; }
.q input[type=date] { font: 400 16px var(--text); background: var(--paper); border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; }

.docket-wrap { position: sticky; top: 100px; }
.docket {
  position: relative; background: var(--ticket); color: var(--ink); font: 400 14px/1.55 var(--mono);
  padding: 28px 28px 32px; box-shadow: 0 30px 60px -30px rgba(20, 39, 42, .45), 0 2px 6px rgba(20, 39, 42, .08);
  transform: rotate(.6deg); transition: transform .4s;
}
.docket::before, .docket::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: radial-gradient(circle at 8px 10px, var(--rye) 6px, transparent 6.5px) 0 0 / 16px 10px repeat-x; }
.docket::before { top: -1px; transform: scaleY(-1); }
.docket::after { bottom: -1px; }
.docket:hover { transform: rotate(0); }
.d-head { text-align: center; border-bottom: 1.5px dashed var(--ink); padding-bottom: 14px; margin-bottom: 14px; }
.d-head b { display: block; font-weight: 600; font-size: 17px; letter-spacing: .14em; }
.d-head span { font-size: 13px; color: var(--stone); letter-spacing: .04em; }
.d-title { font-weight: 600; letter-spacing: .12em; margin-bottom: 6px; }
.d-lines { list-style: none; min-height: 150px; }
.d-lines li { display: flex; justify-content: space-between; gap: 12px; }
.d-lines li.sub { padding-left: 2ch; color: var(--ink-soft); }
.d-lines li.meta { margin-top: 8px; }
.d-lines li.new { animation: print .45s steps(6, end); }
@keyframes print { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.d-lines li.empty { color: var(--stone); }
.d-inc { border-top: 1.5px dashed var(--ink); border-bottom: 1.5px dashed var(--ink); margin: 14px 0 18px; padding: 12px 0; font-size: 13px; }
.d-inc b { font-weight: 600; letter-spacing: .1em; display: block; margin-bottom: 4px; }
.d-form { display: grid; gap: 10px; }
/* Label column fits the longest label (FYRIRTÆKI) including its letter-spacing, plus a gap before the line */
.d-form label { display: grid; grid-template-columns: 12.5ch 1fr; column-gap: 12px; align-items: center; font: 600 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.d-form input { font: 400 15px var(--mono); color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--ink); border-radius: 0; padding: 11px 2px; width: 100%; }
.d-form input:focus { outline: none; border-bottom-color: var(--teal); }
.d-form input:focus-visible { outline: 2px solid var(--deep); outline-offset: 2px; border-radius: 2px; }
.d-form input[aria-invalid="true"] { border-bottom-color: var(--error); }
/* Required-field mark beside the label */
.d-form .req { font-style: normal; color: var(--error); margin-left: 2px; }
.d-form .btn { margin-top: 14px; justify-content: center; width: 100%; font-family: var(--text); }
.call { margin-top: 18px; font-weight: 600; }
.d-form label[hidden] { display: none; }
.call a { color: var(--deep); font-weight: 700; white-space: nowrap; }
.d-error a { color: inherit; font-weight: 700; }
.d-note { font-size: 13px; color: var(--stone); text-align: center; margin-top: 10px; }
.stamp { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%) rotate(-14deg) scale(2.2); opacity: 0; display: none; pointer-events: none; border: 4px solid var(--teal); color: var(--teal); border-radius: 10px; padding: 8px 18px; font: 700 30px var(--text); letter-spacing: .14em; mix-blend-mode: multiply; }
.docket.sent .stamp { display: block; animation: stamp .5s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes stamp { to { opacity: .9; transform: translate(-50%, -50%) rotate(-14deg) scale(1); } }
.d-form .btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.d-error { font-size: 13px; color: var(--error); text-align: center; }
.d-done { display: none; text-align: center; font-size: 14px; margin-top: 14px; }
.docket.sent .d-form { display: none; }
.docket.sent .d-done { display: block; }


/* CV line (job application): applicants email the file, there is no upload */
.cv-mail { font-weight: 600; }
.cv-mail a { color: var(--deep); font-weight: 700; white-space: nowrap; }
/* CV picker: not in use while there is no upload */
.cv { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cv input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.cv label { display: inline-flex; align-items: center; gap: 10px; font: 600 15px var(--text); color: var(--ink); border: 1.5px dashed var(--line-strong); border-radius: 999px; padding: 10px 18px; min-height: 44px; cursor: pointer; background: transparent; }
.cv label:hover { border-color: var(--ink); }
.cv input[type=file]:focus-visible + label { outline: 2px solid var(--deep); outline-offset: 3px; }
.cv .cv-name { font-size: 14px; color: var(--stone); }
.cv-note { margin-top: 8px; font-size: 13px; color: var(--stone); }

@media (prefers-reduced-motion: reduce) {
  .d-lines li.new { animation: none; }
  .docket.sent .stamp { animation: none; opacity: .9; transform: translate(-50%, -50%) rotate(-14deg); }
}
/* Phones: the ticket's name and email fields sit below all the choices, so a shortcut leads there */
.to-ticket { display: none; }
@media (max-width: 860px) {
  .to-ticket { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--deep); }
  .contact-inner { grid-template-columns: 1fr; }
  .docket-wrap { position: static; }
}

/* ---------- Ticket stub (homepage): follows the visitor and hands over to the full ticket ---------- */
.stub { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 300px; filter: drop-shadow(0 18px 24px rgba(20, 39, 42, .28)) drop-shadow(0 2px 4px rgba(20, 39, 42, .1)); transform: translateY(calc(100% + 48px)) rotate(-2deg); opacity: 0; transition: transform .55s cubic-bezier(.2, 1.3, .3, 1), opacity .3s; pointer-events: none; }
.stub.show { transform: rotate(-2deg); opacity: 1; pointer-events: auto; }
.stub.show:hover { transform: rotate(0); }
/* Torn top edge: half-circle bites cut out with a mask, so it works over any background */
.stub-paper { background: var(--ticket); color: var(--ink); padding: 24px 20px 20px; -webkit-mask: radial-gradient(circle at 8px 0, transparent 6px, #000 6.5px) 0 0 / 16px 100% repeat-x; mask: radial-gradient(circle at 8px 0, transparent 6px, #000 6.5px) 0 0 / 16px 100% repeat-x; }
.stub-ticket { display: grid; gap: 2px; font: 400 13px/1.45 var(--mono); padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1.5px dashed var(--ink); }
.stub-meta { color: var(--stone); letter-spacing: .04em; }
.stub-title { font-weight: 600; font-size: 22px; letter-spacing: .12em; line-height: 1.2; }
.stub-title.new { animation: print .45s steps(6, end); }
.stub-note { color: var(--stone); font-size: 12px; }
.stub-actions { display: flex; gap: 8px; }
.stub-go { flex: 1; justify-content: center; padding: 14px 18px; }
.stub-call { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none; border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); text-decoration: none; transition: background .2s, color .2s; }
.stub-call:hover { background: var(--ink); color: var(--ticket); }

/* Phones: a full-width strip along the bottom */
@media (max-width: 860px) {
  .stub { left: 0; right: 0; bottom: 0; width: auto; transform: translateY(110%); filter: drop-shadow(0 -6px 18px rgba(20, 39, 42, .18)); }
  .stub.show, .stub.show:hover { transform: none; }
  .stub-paper { display: flex; align-items: center; gap: 12px; padding: 18px var(--gutter) calc(12px + env(safe-area-inset-bottom)); }
  .stub-ticket { flex: 1; min-width: 0; padding: 0; margin: 0; border: 0; }
  .stub-title { font-size: 17px; }
  .stub-note { display: none; }
  .stub-go { flex: none; padding: 14px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .stub, .stub.show, .stub.show:hover { transition: opacity .2s; transform: none; }
  .stub:not(.show) { transform: translateY(110%); }
  .stub-title.new { animation: none; }
}
