.map .contactform {
    width: min(100%, 1440px);
    gap: clamp(24px, 4vw, 56px);
    margin-inline: auto;
}

.map .contactform > .headingcontact {
    min-width: 0;
    flex: 1 1 420px;
}

#contact-message-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 14px;
    width: 100%;
}

#contact-message-form .input {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: auto;
    min-height: 52px;
    margin: 0;
    padding: 14px 15px;
    border: 1px solid #e4dfea;
    border-radius: 7px;
    background: #fff;
    color: #271344;
    font: inherit;
    font-style: normal;
    box-sizing: border-box;
}

#contact-message-form .input::placeholder {
    color: #77717e;
    opacity: 1;
}

#contact-message-form .input:focus {
    border-color: #ff4880;
    outline: 3px solid rgb(255 72 128 / 16%);
    box-shadow: none;
}

#contact-message-form .textarea {
    grid-column: 1 / -1;
    min-height: 140px;
    resize: vertical;
}

#contact-message-form .contact-submit {
    grid-column: 1 / -1;
    justify-self: start;
    min-height: 50px;
    margin: 0;
    padding: 12px 28px;
    border: 0;
    border-radius: 7px;
    background: #ff4880;
    color: #fff;
    font: inherit;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background-color 160ms ease;
}

#contact-message-form .contact-submit:hover,
#contact-message-form .contact-submit:focus-visible {
    background: #e9366e;
}

.map .mapmain iframe {
    display: block;
    min-height: 360px;
}

@media (max-width: 640px) {
    .map .contactform {
        padding: 20px 18px;
    }

    #contact-message-form {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    #contact-message-form .textarea,
    #contact-message-form .contact-submit {
        grid-column: 1;
    }

    #contact-message-form .contact-submit {
        width: 100%;
    }

    .map .mapmain iframe {
        min-height: 300px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #contact-message-form .contact-submit {
        transition: none;
    }
}
