/* ============================================================================
   Modal styles (.dcdeck-): capabilities-deck email gate (contact) and the
   form thank-you dialogs (contact + careers).
   Native <dialog>. Loaded by contact.head.html and careers.head.html; brand font/colour tokens
   come from desicrew-theme.css (loaded after this file, tokens are :root vars).
   These captured pages have no Tailwind JIT, so everything is hand-written.
   ============================================================================ */

.dcdeck {
  border: 0;
  padding: 0;
  margin: auto;
  background: transparent;
  width: calc(100vw - 2rem);
  max-width: 26rem;
  overflow: visible;
}
.dcdeck::backdrop {
  background: rgba(1, 28, 70, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.dcdeck__card {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-family: var(--font-main, "Helvetica Neue", Helvetica, Arial, sans-serif);
  color: #011c46;
  /* hairline ring + layered navy shadow — never a solid gray border on an elevated card */
  box-shadow:
    0 0 0 1px rgba(1, 28, 70, 0.06),
    0 24px 48px -12px rgba(1, 28, 70, 0.28),
    0 8px 16px -8px rgba(1, 28, 70, 0.16);
}
@media (max-width: 480px) {
  .dcdeck__card { padding: 1.375rem; border-radius: 14px; }
}

/* --- entrance / exit ------------------------------------------------------ */
.dcdeck[open] { animation: dcdeck-in 0.28s cubic-bezier(0.32, 0.72, 0.28, 1); }
.dcdeck[open]::backdrop { animation: dcdeck-fade 0.28s ease-out; }
@keyframes dcdeck-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes dcdeck-fade { from { opacity: 0; } to { opacity: 1; } }

/* --- close button --------------------------------------------------------- */
.dcdeck__close {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(1, 28, 70, 0.45);
  cursor: pointer;
}
.dcdeck__close:hover { background: rgba(1, 28, 70, 0.06); color: #011c46; }
.dcdeck__close svg { width: 1.125rem; height: 1.125rem; }
/* expanded touch target on coarse pointers */
@media (pointer: coarse) {
  .dcdeck__close::after { content: ""; position: absolute; inset: 50% auto auto 50%; width: 3rem; height: 3rem; transform: translate(-50%, -50%); }
}

/* --- header --------------------------------------------------------------- */
.dcdeck__tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 10px;
  background: var(--dc-gradient, linear-gradient(135deg, #22d2a2 0%, #1892e5 55%, #0b44cf 100%));
  box-shadow: 0 6px 14px -6px rgba(11, 68, 207, 0.5);
}
.dcdeck__tile svg { width: 1.375rem; height: 1.375rem; color: #fff; }

.dcdeck__title {
  margin: 0.875rem 0 0;
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.dcdeck__sub {
  margin: 0.375rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(1, 28, 70, 0.6);
  text-wrap: pretty;
}

/* --- form ----------------------------------------------------------------- */
.dcdeck__form { display: flex; flex-direction: column; gap: 1rem; }
.dcdeck__field { display: flex; flex-direction: column; gap: 0.4375rem; }
.dcdeck__label {
  font-family: var(--font-mono, "Space Grotesk", sans-serif);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(1, 28, 70, 0.55);
}
.dcdeck__input {
  width: 100%;
  font: inherit;
  font-size: 1rem; /* >=16px so iOS never zooms */
  line-height: 1.5;
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(1, 28, 70, 0.16);
  background: #fff;
  color: #011c46;
}
.dcdeck__input::placeholder { color: rgba(1, 28, 70, 0.35); }
.dcdeck__input:focus-visible {
  outline: 2px solid #0b44cf;
  outline-offset: -1px; /* inset so the ring never spills outside the field */
  border-color: transparent;
}

.dcdeck__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.625rem 0.75rem;
  border: 0;
  border-radius: 8px;
  background: #0a0a0a;
  color: #fff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.25s ease; /* the unlock: 0.45 -> 1 when the email is valid */
}
.dcdeck__btn:disabled { opacity: 0.45; cursor: not-allowed; }
.dcdeck__btn:not(:disabled):hover { background: #232323; }
.dcdeck__btn:focus-visible { outline: 2px solid #0b44cf; outline-offset: 2px; }
.dcdeck__btn svg { width: 1rem; height: 1rem; flex-shrink: 0; }

.dcdeck__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(1, 28, 70, 0.45);
  text-align: center;
  text-wrap: pretty;
}

/* --- success state -------------------------------------------------------- */
.dcdeck__success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.375rem;
  padding: 0.5rem 0 0.25rem;
}
.dcdeck__success[hidden] { display: none; }
.dcdeck__form[hidden] { display: none; }
.dcdeck__header[hidden] { display: none; }

.dcdeck__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  background: #def8f1; /* brand Mint Green */
  margin-bottom: 0.625rem;
  animation: dcdeck-pop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.dcdeck__badge svg { width: 1.625rem; height: 1.625rem; color: #1aa886; }
.dcdeck__badge svg path {
  stroke-dasharray: 24;
  stroke-dashoffset: 24;
  animation: dcdeck-draw 0.4s 0.18s ease-out forwards;
}
@keyframes dcdeck-pop { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dcdeck-draw { to { stroke-dashoffset: 0; } }

.dcdeck__success-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.dcdeck__success-sub {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: rgba(1, 28, 70, 0.6);
  text-wrap: pretty;
  max-width: 32ch;
}
.dcdeck__again {
  margin-top: 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #0b44cf;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.dcdeck__again:hover { color: #093bb0; }
.dcdeck__success .dcdeck__btn { margin-top: 1.125rem; }

@media (prefers-reduced-motion: reduce) {
  .dcdeck[open], .dcdeck[open]::backdrop, .dcdeck__badge, .dcdeck__badge svg path { animation: none; }
  .dcdeck__badge svg path { stroke-dashoffset: 0; }
  .dcdeck__btn { transition: none; }
}

/* --- Registered office + phone (side info column) -------------------------- */
/* <address> is the correct element for the page owner's contact details, but its
   UA italic reads as an aside next to the other blocks here. */
.dc-ct-addr {
  font-style: normal;
  line-height: 1.6;
}
/* The tel links sit inside a sentence, so WCAG 2.5.8's inline exception applies
   and a 44px box would wreck the line box. Vertical padding on an INLINE element
   grows the hit area without touching layout, which buys the thumb most of that
   back for free — and a phone number is the likeliest thing to be tapped here. */
.dc-ct-tel { padding-block: 0.6rem; }
