.sanctuary .contact-open {
    padding: 8px 0;
    min-height: 44px;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
}

.contact-open:hover {
    color: #e0c89d;
}

html.contact-is-open {
    overflow: hidden;
}

.contact-dialog {
    width: min(640px, calc(100% - 32px));
    max-height: calc(100dvh - 40px);
    margin: auto;
    padding: 0;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid #c7ab7566;
    border-radius: 12px;
    background: #1b2118;
    color: #f0eee1;
    box-shadow: 0 24px 100px #00000066;
}

.contact-dialog::backdrop {
    background: #080b08c9;
    backdrop-filter: blur(6px);
}

.contact-sheet {
    position: relative;
    isolation: isolate;
    padding: 36px 40px 30px;
}

.contact-flower {
    position: absolute;
    z-index: -1;
    top: 26px;
    right: 50px;
    width: 135px;
    height: 135px;
    opacity: 0.08;
    pointer-events: none;
}

.contact-close {
    position: absolute;
    right: 12px;
    top: 12px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: none;
    color: #d8c5a1;
    border-radius: 50%;
}

.contact-close:hover {
    background: #c7ab7514;
}

.contact-eyebrow {
    display: block;
    margin: 0 44px 10px 0;
    color: #c7ab75;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.contact-dialog h2 {
    margin: 0 0 12px;
    font:
        400 48px/1.05 'Cormorant Garamond',
        Georgia,
        serif;
    letter-spacing: -0.025em;
}

.contact-dialog h2 em {
    color: #c7ab75;
    font-weight: 400;
}

.contact-intro {
    max-width: 43ch;
    margin: 0 0 26px;
    color: #bdbfb0;
    font-size: 14px;
}

.contact-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px 20px;
}

.contact-field {
    min-width: 0;
}

.contact-field-wide {
    grid-column: 1 / -1;
}

.contact-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
}

.contact-field label span {
    color: #bdbfb0;
    font-size: 11px;
}

.contact-field :is(input, select, textarea) {
    display: block;
    width: 100%;
    min-height: 48px;
    border: 1px solid #68715b;
    border-radius: 4px;
    padding: 11px 12px;
    background: #141a12;
    color: #f0eee1;
    font:
        400 16px/1.5 'DM Sans',
        Arial,
        sans-serif;
}

.contact-field textarea {
    min-height: 104px;
    resize: vertical;
}

.contact-field :is(input, textarea)::placeholder {
    color: #9fa691;
}

.contact-dialog :is(button, a):focus-visible {
    outline: 2px solid #e0c89d;
    outline-offset: 3px;
}

.contact-field :is(input, select, textarea):focus-visible {
    outline: none;
    border-color: #a8b598;
}

.contact-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 24px;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-shrink: 0;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid #c7ab75;
    border-radius: 4px;
    background: #c7ab75;
    color: #171a12;
    font-size: 14px;
}

.contact-submit:hover {
    background: #dbc393;
}

.contact-delivery-note,
.contact-status,
.contact-direct {
    color: #bdbfb0;
    font-size: 12px;
    line-height: 1.65;
}

.contact-status {
    margin-top: 18px;
    color: #e0c89d;
}

.contact-status:empty {
    margin-top: 0;
}

.contact-direct {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid #c7ab7529;
}

.contact-direct a {
    color: #f0eee1;
    text-underline-offset: 4px;
    overflow-wrap: anywhere;
}

@media (max-width: 560px) {
    .contact-dialog {
        width: calc(100% - 24px);
        max-height: calc(100dvh - 24px);
    }

    .contact-sheet {
        padding: 30px 24px 24px;
    }

    .contact-dialog h2 {
        font-size: 42px;
    }

    .contact-fields {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .contact-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
}
