/* Tidewalker Media: the contact form (js/contact.js). Standalone, so it looks the same over the studio, the phone
   roll, the phone room and the "How it was made" page, whichever stylesheet that page uses. */
.tw-contact, .tw-contact * { box-sizing: border-box; }
.tw-contact[hidden] { display: none !important; }
.tw-contact {
  position: fixed; z-index: 80; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: rgba(3, 7, 8, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font: 15px/1.5 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #e9e2d0; text-align: left;
  animation: twc-in .18s ease-out;
}
@keyframes twc-in { from { opacity: 0; } }
/* (a hair taller than the screen, so a drag on the dark surround scrolls this and never the page behind it) */
.twc-wrap { min-height: calc(100% + 1px); display: flex; align-items: center; justify-content: center;
  padding: max(20px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); }
.twc-panel { position: relative; width: min(520px, 100%); padding: 30px 30px 26px; border: 1px solid rgba(95, 201, 194, 0.38); border-radius: 12px;
  background: linear-gradient(180deg, rgba(11, 22, 24, 0.97), rgba(6, 12, 13, 0.97)); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.02); }
.twc-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #e9e2d0;
  font: 400 28px/1 system-ui, sans-serif; cursor: pointer; }
.twc-x:hover { background: rgba(95, 201, 194, 0.14); }
.twc-kicker { margin: 0 0 10px; font: 11px/1 'Share Tech Mono', ui-monospace, Consolas, monospace; letter-spacing: 0.22em; text-transform: uppercase; color: #5fc9c2; }
.twc-panel h2 { margin: 0 44px 10px 0; font: 700 clamp(21px, 5.2vw, 27px)/1.15 'Cinzel', 'Trajan Pro', Georgia, serif; letter-spacing: 0.04em; text-transform: none; color: #f4efe2; outline: none; }
.twc-lede { margin: 0 0 20px; font-size: 14px; color: #b9c6c4; }
.twc-form[hidden], .twc-done[hidden] { display: none; }
.twc-panel.is-done .twc-lede, .twc-panel.is-done h2 { display: none; }
.twc-f { display: block; margin: 0 0 14px; }
.twc-f > span { display: block; margin-bottom: 6px; font: 11px/1.2 'Share Tech Mono', ui-monospace, Consolas, monospace; letter-spacing: 0.16em; text-transform: uppercase; color: #8fd8d2; }
.twc-f > span i { font-style: normal; color: #7f8f8d; letter-spacing: 0.1em; }
.twc-f input, .twc-f select, .twc-f textarea {
  display: block; width: 100%; min-height: 44px; margin: 0; padding: 10px 12px; border: 1px solid rgba(233, 226, 208, 0.2); border-radius: 7px;
  background: rgba(3, 8, 9, 0.75); color: #f4efe2; font: 16px/1.4 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;   /* 16px: phones do not zoom in on focus */
  -webkit-appearance: none; appearance: none; transition: border-color .15s, box-shadow .15s; }
.twc-f textarea { min-height: 120px; resize: vertical; }
.twc-f select { padding-right: 36px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #8fd8d2 50%), linear-gradient(135deg, #8fd8d2 50%, transparent 50%);
  background-position: calc(100% - 19px) 19px, calc(100% - 13px) 19px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.twc-f select:invalid, .twc-f select option[value=""] { color: #8a9997; }
.twc-f select option { color: #f4efe2; background: #0b1518; }
.twc-f input:focus, .twc-f select:focus, .twc-f textarea:focus { outline: none; border-color: #5fc9c2; box-shadow: 0 0 0 3px rgba(95, 201, 194, 0.2); }
.twc-f .bad { border-color: #f0a75a; box-shadow: 0 0 0 3px rgba(240, 167, 90, 0.16); }
.twc-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.twc-status { min-height: 0; margin: 0; font-size: 13.5px; color: #b9c6c4; }
.twc-status:not(:empty) { margin: 2px 0 14px; }
.twc-status.warn { color: #f6c48d; }
.twc-status a, .twc-note a { color: #c8e8e5; text-decoration: underline; text-underline-offset: 3px; }
.twc-send { display: block; width: 100%; min-height: 48px; margin: 4px 0 0; padding: 12px 18px; border: 1px solid #f0a75a; border-radius: 999px;
  background: rgba(240, 167, 90, 0.14); color: #f4efe2; font: 600 13px/1 'Inter', system-ui, sans-serif; letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; transition: background .2s; }
.twc-send:hover { background: rgba(240, 167, 90, 0.28); }
.twc-send:disabled { opacity: .6; cursor: default; }
.twc-x:focus-visible, .twc-send:focus-visible, .twc-note a:focus-visible, .twc-status a:focus-visible { outline: 2px solid #5fc9c2; outline-offset: 3px; }
.twc-note { margin: 16px 0 0; font-size: 12px; line-height: 1.55; color: #8a9997; }
.twc-done h3 { margin: 6px 44px 8px 0; font: 700 22px/1.2 'Cinzel', 'Trajan Pro', Georgia, serif; letter-spacing: 0.04em; color: #f4efe2; outline: none; }
.twc-done p { margin: 0 0 22px; color: #b9c6c4; }
@media (max-width: 480px) { .twc-panel { padding: 24px 18px 20px; } .twc-lede { margin-bottom: 16px; } .twc-f { margin-bottom: 12px; } }
@media (prefers-reduced-motion: reduce) { .tw-contact { animation: none; } }
