/* NÜMO contact modal — shared between desktop and mobile.
   Mobile-first: full-screen sheet under 600px, centred card above. */
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: stretch;
    justify-content: center;
    pointer-events: none;
    transition: opacity .2s ease;
    opacity: 0;
}
.contact-modal[aria-hidden="false"] {
    opacity: 1;
    pointer-events: auto;
}
.contact-modal__scrim {
    position: absolute;
    inset: 0;
    background: rgba(7, 6, 10, .85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.contact-modal__card {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #0f0d12;
    border: 1px solid rgba(255, 255, 255, .06);
    color: #f4ece4;
    font-family: "Manrope", system-ui, sans-serif;
    padding: 28px 24px;
    overflow-y: auto;
    /* Account for the iOS notch / home indicator */
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
    padding-top: calc(28px + env(safe-area-inset-top));
}
.contact-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255, 255, 255, .04);
    border-radius: 50%;
    color: #c8bdb1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}
.contact-modal__close:hover { background: rgba(255, 255, 255, .08); }
.contact-modal__close svg { width: 18px; height: 18px; }

.contact-modal__head { margin-bottom: 22px; }
.contact-modal__eyebrow {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #c5704d;
    font-weight: 700;
    margin: 0 0 8px;
}
.contact-modal__title {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.15;
}
.contact-modal__lead {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #c8bdb1;
}

.contact-modal__form { display: flex; flex-direction: column; gap: 14px; }
.contact-modal__field { display: flex; flex-direction: column; gap: 6px; }
.contact-modal__label {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8e827a;
    font-weight: 600;
}
.contact-modal__field input,
.contact-modal__field textarea {
    font-family: inherit;
    /* 16px+ keeps iOS from zooming into the field when focused */
    font-size: 16px;
    color: #f4ece4;
    background: #181318;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    padding: 12px 14px;
    line-height: 1.4;
    resize: vertical;
    outline: none;
    transition: border-color .15s ease, background .15s ease;
}
.contact-modal__field textarea { min-height: 110px; }
.contact-modal__field input:focus,
.contact-modal__field textarea:focus {
    border-color: #c5704d;
    background: #1f1a20;
}
.contact-modal__honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-modal__status {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.4;
    min-height: 18px;
    color: #c8bdb1;
}
.contact-modal__status[data-kind="ok"] { color: #6ec887; }
.contact-modal__status[data-kind="error"] { color: #e26f57; }

.contact-modal__submit {
    margin-top: 6px;
    padding: 15px 24px;
    font-family: inherit;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(180deg, #d88a63, #c5704d);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .15s ease, opacity .15s ease;
    /* 48px+ touch target */
    min-height: 48px;
}
.contact-modal__submit:hover:not(:disabled) { transform: translateY(-1px); }
.contact-modal__submit:disabled { opacity: 0.7; cursor: progress; }

/* Desktop / tablet — centred card with rounded corners */
@media (min-width: 600px) {
    .contact-modal { align-items: center; padding: 24px; }
    .contact-modal__card {
        max-height: 92vh;
        border-radius: 16px;
        padding: 36px 32px;
        padding-top: 36px;
        box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
    }
}
