.contact-body {
    background: #fff;
}

.contact-page {
    padding-top: var(--navbar-height, 4rem);
}

.contact-page.site-main {
    display: flex;
    flex-direction: column;
}

.contact-layout {
    flex: 1;
    display: flex;
    min-height: calc(100vh - var(--navbar-height, 4rem) - 5rem);
}

.contact-image {
    flex: 0 0 50%;
    max-width: 50%;
    background: #e8e4df;
}

.contact-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: calc(100vh - var(--navbar-height, 4rem));
    object-fit: cover;
}

.contact-panel {
    flex: 1;
    padding: 3rem 3.5rem 2.5rem;
    overflow-y: auto;
}

.contact-title {
    font-family: 'Playfair Display', 'Didot', 'Bodoni MT', serif;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #2f3439;
    margin: 0 0 2rem;
}

.contact-form {
    border: none;
    padding: 0;
    margin: 0 0 2.5rem;
    max-width: 34rem;
}

.form-group {
    border: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.form-group legend {
    font-size: 0.95rem;
    font-weight: 400;
    color: #2f3439;
    margin-bottom: 0.75rem;
    padding: 0;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.field {
    margin-bottom: 1.25rem;
}

.field label {
    display: block;
    font-size: 0.9rem;
    font-weight: 400;
    color: #2f3439;
    margin-bottom: 0.45rem;
}

.required {
    font-size: 0.8rem;
    color: #7d848c;
}

.field input,
.field textarea {
    width: 100%;
    padding: 0.6rem 0.7rem;
    border: 1px solid #2f3439;
    border-radius: 0;
    background: #fff;
    color: #2f3439;
    font-family: inherit;
    font-size: 0.95rem;
    box-sizing: border-box;
}

.field textarea {
    resize: vertical;
    min-height: 8rem;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: #7d848c;
}

#contact-submit {
    display: inline-block;
    min-width: 6.5rem;
    padding: 0.5rem 1.35rem;
    border: 1px solid #2f3439;
    border-radius: 0;
    background: #fff;
    color: #2f3439;
    font-family: inherit;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

#contact-submit:hover {
    background: #2f3439;
    color: #fff;
}

.contact-details {
    max-width: 34rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #2f3439;
}

.showroom-address {
    margin: 0 0 1rem;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    margin-bottom: 0.55rem;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: inherit;
    text-decoration: none;
}

.contact-link:hover {
    text-decoration: underline;
}

.contact-link img {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.qr-code-container {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1100;
    justify-content: center;
    align-items: center;
}

.qr-code {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(18rem, 70vw);
    margin: 1rem;
    text-align: center;
}

.qr-code img {
    width: 100%;
    height: auto;
}

.hidden {
    display: none;
}

#closeButton {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: #2f3439;
    font-family: inherit;
    width: 2rem;
    height: 2rem;
    font-size: 1.25rem;
    line-height: 1;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

@media (max-width: 900px) {
    .contact-layout {
        flex-direction: column;
        min-height: auto;
    }

    .contact-image {
        flex: none;
        max-width: none;
        width: 100%;
    }

    .contact-image img {
        min-height: 18rem;
        height: 18rem;
    }

    .contact-panel {
        padding: 2rem 1.25rem 2.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
