/* Contact overlay (see contact.js) */

html.dt-contact-lock,
html.dt-contact-lock body {
    overflow: hidden;
}

.dt-contact {
    position: fixed;
    inset: 0;
    z-index: 10020;
    background: #06181a;
    color: #fff;
    overflow-y: auto;
    overscroll-behavior: contain;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 72px 24px 48px;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}
.dt-contact[hidden] { display: none; }

.dt-contact-inner {
    width: 100%;
    max-width: 640px;
    margin: auto 0;
}

/* Contents step in once the fill has landed */
.dt-contact-inner > *,
.dt-contact-close {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.7s var(--ease-out, ease);
}
.dt-contact.is-ready .dt-contact-inner > *,
.dt-contact.is-ready .dt-contact-close {
    opacity: 1;
    transform: none;
}
.dt-contact.is-ready .dt-contact-inner > :nth-child(2) { transition-delay: 60ms; }
.dt-contact.is-ready .dt-contact-inner > :nth-child(3) { transition-delay: 120ms; }

button.dt-contact-close {
    position: fixed;
    top: 20px;
    right: 24px;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    transition: opacity 0.5s ease, transform 0.7s var(--ease-out, ease), background 0.2s ease, color 0.2s ease;
}
button.dt-contact-close:hover {
    background: #fff;
    color: #000;
}

.dt-contact-eyebrow {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
}

.dt-contact-title {
    margin: 0 0 36px;
    font-size: clamp(30px, 5vw, 52px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.dt-contact-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.dt-contact-form[hidden],
.dt-contact-done[hidden] { display: none; }

.dt-chips {
    border: 0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.dt-chips legend {
    padding: 0;
    margin-bottom: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}
.dt-chip {
    position: relative;
    cursor: pointer;
}
.dt-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.dt-chip span {
    display: inline-block;
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.dt-chip:hover span { border-color: #fff; }
.dt-chip input:checked + span {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    font-weight: 600;
}
.dt-chip input:focus-visible + span {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.dt-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.dt-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dt-field > span {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}
.dt-field input,
.dt-field textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0;
    color: #fff;
    font: inherit;
    font-size: 17px;
    resize: vertical;
    transition: border-color 0.2s ease;
}
.dt-field input:focus,
.dt-field textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}
.dt-field input:user-invalid,
.dt-field textarea:user-invalid {
    border-bottom-color: #ff8a8a;
}

.dt-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
}

.dt-form-foot {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.dt-form-status {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
}

.dt-contact-done-text {
    margin: -18px 0 0;
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.75);
}

/* Shared button style (Contact, Patron, Vision) */
.dt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6em;
    padding: 13px 26px;
    border: 2px solid #fff;
    border-radius: 6px;
    background: transparent;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.dt-btn:hover {
    background: #fff;
    color: #000;
    transform: none;
}
.dt-btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
}
.dt-btn-primary:hover {
    background: #fff;
    border-color: #fff;
}
.dt-btn:disabled {
    opacity: 0.6;
    pointer-events: none;
}

@media (max-width: 600px) {
    .dt-contact { padding: 80px 20px 40px; align-items: flex-start; }
    .dt-field-row { grid-template-columns: 1fr; }
    .dt-btn-primary { width: 100%; }
}
