/* Contact overlays and shared contact form components. */

.contact-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: none;
    padding: 1.2rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: rgba(12, 20, 17, 0.54);
    backdrop-filter: blur(10px);
}

.contact-modal {
    width: min(1080px, 96%);
    max-width: 100%;
    margin: 3vh auto;
    padding: clamp(1.35rem, 2vw, 1.8rem);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(252, 245, 236, 0.98), rgba(241, 229, 212, 0.98));
    border: 1px solid rgba(23, 33, 29, 0.08);
    box-shadow: var(--shadow-md);
    position: relative;
}

.contact-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.74);
    color: var(--ink);
    font-size: 1.4rem;
}

.contact-modal__grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 1.2rem;
}

.contact-intro,
.contact-cta-panel,
.contact-form,
.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form__honeypot {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip-path: inset(50%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.contact-chip {
    background: rgba(36, 74, 57, 0.08);
}

.contact-chip--accent {
    background: rgba(180, 123, 60, 0.12);
    color: var(--warm-deep);
}

.contact-modal h3 {
    font-size: clamp(2rem, 3vw, 2.8rem);
}

.contact-lead {
    font-size: 1rem;
    color: var(--text);
}

.contact-lead--muted,
.contact-form__hint,
.contact-form__legal,
.contact-form__status,
.contact-hint {
    font-size: 0.86rem;
    color: var(--muted);
}

.contact-form__legal {
    margin: -0.1rem 0 0;
    line-height: 1.45;
}

.contact-form__legal a {
    color: var(--warm-deep);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.contact-metrics,
.contact-cta-grid,
.contact-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.contact-metrics div,
.contact-channel,
.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
    border-radius: 18px;
}

.contact-metrics div {
    padding: 0.95rem;
    background: rgba(255, 250, 243, 0.66);
    border: 1px solid rgba(23, 33, 29, 0.08);
}

.contact-metrics span {
    display: block;
    color: var(--ink);
    font-size: 1.55rem;
    font-weight: 800;
}

.contact-channel {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    background: rgba(255, 250, 243, 0.68);
    border: 1px solid rgba(23, 33, 29, 0.08);
}

.contact-channel strong {
    color: var(--ink);
    display: block;
}

.contact-channel small {
    color: var(--muted);
}

.contact-channel--discord {
    border-color: rgba(88, 101, 242, 0.2);
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-form__field label {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-form__field label span {
    font-weight: 500;
    letter-spacing: 0;
    opacity: 0.68;
    text-transform: none;
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
    width: 100%;
    padding: 0.88rem 0.95rem;
    border: 1px solid rgba(23, 33, 29, 0.1);
    background: rgba(255, 252, 247, 0.88);
    color: var(--ink);
    font: inherit;
}

.contact-form__field textarea {
    resize: vertical;
}

.contact-form__actions {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
