/* Koinos contact dialogue — navy, champagne and restrained gold. */
.footer-contact {
  appearance: none;
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  font: inherit;
  cursor: pointer;
}

.footer-contact:focus-visible,
.contact-dialog button:focus-visible,
.contact-dialog input:focus-visible,
.contact-dialog textarea:focus-visible {
  outline: 2px solid var(--gold-bright, #E4BE47);
  outline-offset: 4px;
}

.contact-dialog {
  width: min(590px, calc(100% - 32px));
  max-width: none;
  max-height: min(790px, calc(100dvh - 32px));
  margin: auto;
  padding: 0;
  overflow: auto;
  color: var(--ivory, #F5F2EC);
  border: 1px solid rgba(201, 162, 39, 0.42);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 95% 0%, rgba(201, 162, 39, 0.1), transparent 43%),
    linear-gradient(150deg, #14243b 0%, #0F1B2D 55%, #081019 100%);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.52), 0 1px 0 rgba(243, 231, 198, 0.08) inset;
}

.contact-dialog[open] {
  animation: contact-arrive 220ms cubic-bezier(.2, .8, .2, 1) both;
}

.contact-dialog::backdrop {
  background: rgba(4, 8, 14, 0.78);
  backdrop-filter: blur(8px);
  animation: contact-backdrop 180ms ease both;
}

.contact-panel {
  padding: clamp(26px, 6vw, 44px);
}

.contact-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.contact-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--gold-bright, #E4BE47);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.23em;
}

.contact-heading h2 {
  color: var(--champagne, #F3E7C6);
  font-family: var(--ff, 'Archivo', sans-serif);
  font-size: clamp(30px, 8vw, 42px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.contact-close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  color: var(--champagne, #F3E7C6);
  border: 1px solid rgba(201, 162, 39, 0.28);
  border-radius: 50%;
  background: rgba(8, 16, 25, 0.45);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.contact-close span {
  font-family: sans-serif;
  font-size: 25px;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-1px);
}

.contact-close:hover {
  color: var(--navy-deep, #081019);
  border-color: var(--gold, #C9A227);
  background: var(--gold, #C9A227);
}

.contact-intro {
  margin: 16px 0 26px;
  color: rgba(245, 242, 236, 0.66);
  font-size: 14px;
  line-height: 1.65;
}

.contact-form {
  display: grid;
  gap: 19px;
}

.contact-field {
  display: grid;
  gap: 8px;
}

.contact-field label {
  color: var(--champagne, #F3E7C6);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.contact-field label span {
  color: var(--gold-bright, #E4BE47);
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  color: var(--ivory, #F5F2EC);
  border: 1px solid rgba(201, 162, 39, 0.25);
  border-radius: 8px;
  background: rgba(8, 16, 25, 0.55);
  font: 400 14px/1.55 var(--ff, 'Archivo', sans-serif);
  transition: border-color 160ms ease, background 160ms ease;
}

.contact-field input {
  min-height: 48px;
  padding: 11px 13px;
}

.contact-field textarea {
  min-height: 126px;
  padding: 12px 13px;
  resize: vertical;
}

.contact-field input:hover,
.contact-field textarea:hover {
  border-color: rgba(201, 162, 39, 0.52);
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--gold-bright, #E4BE47);
  background: rgba(8, 16, 25, 0.8);
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: rgba(245, 242, 236, 0.36);
}

.contact-hint {
  color: rgba(245, 242, 236, 0.46);
  font-size: 11px;
  line-height: 1.4;
}

.contact-submit {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 2px;
  padding: 0 18px;
  color: var(--navy-deep, #081019);
  border: 1px solid var(--gold, #C9A227);
  border-radius: 8px;
  background: var(--gold, #C9A227);
  font: 700 12px/1 var(--ff, 'Archivo', sans-serif);
  letter-spacing: 0.075em;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.contact-submit:hover {
  border-color: var(--gold-bright, #E4BE47);
  background: var(--gold-bright, #E4BE47);
  transform: translateY(-1px);
}

.contact-submit-mark {
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
}

.contact-disclaimer {
  max-width: 54ch;
  margin-top: -7px;
  color: rgba(245, 242, 236, 0.46);
  font-size: 11px;
  line-height: 1.6;
}

.contact-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html.contact-scroll-lock,
html.contact-scroll-lock body {
  overflow: hidden;
  overscroll-behavior: none;
}

@keyframes contact-arrive {
  from { opacity: 0; transform: translateY(10px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes contact-backdrop {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 520px) {
  .contact-dialog {
    width: calc(100% - 20px);
    max-height: calc(100dvh - 20px);
    border-radius: 14px;
  }

  .contact-panel {
    padding: 24px 21px max(24px, env(safe-area-inset-bottom));
  }

  .contact-form {
    gap: 16px;
  }

  .contact-field textarea {
    min-height: 112px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-dialog[open],
  .contact-dialog::backdrop {
    animation: none;
  }

  .contact-close,
  .contact-field input,
  .contact-field textarea,
  .contact-submit {
    transition: none;
  }
}