.mg-contact-page {
    overflow: hidden
}

.mg-contact-hero {
    background: var(--cream);
    position: relative
}

.mg-contact-hero-inner {
    display: grid;
    grid-template-columns: 58% 42%;
    align-items: end;
    min-height: 390px;
    gap: 10px
}

.mg-contact-hero-copy {
    padding: 65px 0 55px;
    position: relative;
    z-index: 1
}

.mg-contact-hero h1 {
    font-size: clamp(52px, 6vw, 88px);
    line-height: .94;
    transform: rotate(-4deg);
    transform-origin: left center;
    margin: 0 0 46px
}

.mg-contact-hero .mg-title-accent,
.mg-contact-faq .mg-title-accent {
    color: var(--orange)
}

.mg-contact-intro {
    font-size: 18px;
    max-width: 660px;
    line-height: 1.45
}

.mg-contact-hero-visual {
    display: flex;
    align-items: end;
    justify-content: center;
    height: 370px
}

.mg-contact-hero-visual img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    object-position: bottom
}

.mg-contact-blue {
    position: relative;
    padding: 85px 0 70px;
    isolation: isolate
}

.mg-contact-blue::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    background: var(--cream);
    -webkit-mask: url('../img/brand/editorial-top-cutout.svg') center top / 100% 100% no-repeat;
    mask: url('../img/brand/editorial-top-cutout.svg') center top / 100% 100% no-repeat;
    pointer-events: none
}

.mg-contact-layout {
    display: grid;
    grid-template-columns: 29% 1fr;
    gap: 32px;
    align-items: center
}

.mg-contact-polaroids {
    position: relative;
    min-height: 530px
}

.mg-contact-polaroid {
    position: absolute;
    width: 70%;
    background: #fff;
    padding: 10px 10px 18px;
    box-shadow: 0 5px 12px #6b35291a
}

.mg-contact-polaroid img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    object-fit: cover
}

.mg-contact-polaroid-1 {
    left: 7%;
    top: 0;
    transform: rotate(-10deg)
}

.mg-contact-polaroid-2 {
    right: 0;
    top: 180px;
    transform: rotate(9deg)
}

.mg-contact-polaroid-3 {
    left: 8%;
    top: 275px;
    transform: rotate(-7deg)
}

.mg-contact-form-card {
    background: white;
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 8px 15px #6b352917
}

.mg-contact-form-card::before {
    content: none
}

.mg-contact-form-card {
    border: 1px solid #fff
}

.mg-contact-form-card > h2 {
    font-size: clamp(32px, 3.5vw, 53px);
    line-height: 1.05;
    text-align: center;
    margin: 18px 10px 25px
}

.mg-contact-form {
    border: 1.5px solid var(--brown);
    border-radius: 13px;
    padding: 20px 24px 22px
}

.mg-contact-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px
}

.mg-contact-fields label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-weight: 700;
    font-size: 16px
}

.mg-contact-fields input,
.mg-contact-fields textarea,
.mg-contact-fields select {
    display: block;
    width: 100%;
    border: 1px solid #a97e73;
    background: #fff;
    border-radius: 5px;
    padding: 11px 12px;
    font: 400 16px var(--text);
    color: var(--brown);
    min-height: 46px
}

.mg-contact-fields textarea {
    resize: vertical;
    min-height: 140px
}

.mg-contact-fields :is(input, textarea, select):focus {
    outline: 2px solid var(--blue);
    outline-offset: 1px
}

.mg-contact-wide {
    grid-column: 1/-1
}

.mg-contact-submit {
    text-align: center;
    margin-top: 22px
}

.mg-contact-submit .mg-btn {
    font-size: 18px;
    padding: 16px 28px;
    border: 0
}

.mg-contact-feedback {
    margin: 12px 0 0;
    font-size: 15px;
    min-height: 1em
}

.mg-contact-feedback.is-error {
    color: #a22d22
}

.mg-contact-feedback.is-success {
    color: #007a48
}

.mg-contact-hp {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%)
}

.mg-contact-faq {
    padding: 75px 0 120px
}

.mg-contact-faq-heading {
    text-align: center;
    position: relative;
    margin-bottom: 55px
}

.mg-contact-faq-heading h2 {
    font-size: clamp(40px, 4.6vw, 60px);
    margin: 18px 0 0;
    line-height: 1.02
}

.mg-tag-orange {
    background: var(--orange)
}

.mg-contact-faq-dog {
    position: absolute;
    left: 4%;
    bottom: -55px;
    width: 145px
}

.mg-contact-faq-dog img {
    display: block
}

.mg-contact-accordion {
    display: grid;
    gap: 20px
}

.mg-contact-faq-item {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 8px #6b352912
}

.mg-contact-faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 22px 28px;
    font-weight: 700
}

.mg-contact-faq-item summary::-webkit-details-marker {
    display: none
}

.mg-faq-arrow {
    display: grid;
    place-items: center;
    border: 1.5px solid var(--brown);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 24px;
    flex: 0 0 auto;
    transition: transform .2s
}

.mg-contact-faq-item[open] .mg-faq-arrow {
    transform: rotate(90deg)
}

.mg-contact-faq-answer {
    padding: 0 28px 22px;
    max-width: 950px
}

.mg-contact-faq-answer p:last-child {
    margin-bottom: 0
}

@media(max-width:900px) {
    .mg-contact-layout {
        grid-template-columns: 1fr
    }

    .mg-contact-polaroids {
        display: none
    }

    .mg-contact-hero-inner {
        min-height: 320px
    }

    .mg-contact-hero-visual {
        height: 300px
    }
}

@media(max-width:680px) {
    .mg-contact-hero-inner {
        grid-template-columns: 1fr
    }

    .mg-contact-hero-copy {
        padding: 45px 0 20px
    }

    .mg-contact-hero h1 {
        font-size: clamp(45px, 12vw, 65px);
        margin-bottom: 32px
    }

    .mg-contact-hero-visual {
        height: 240px
    }

    .mg-contact-blue {
        padding: 70px 0 55px
    }

    .mg-contact-blue::before {
        height: 55px
    }

    .mg-contact-form-card {
        padding: 10px
    }

    .mg-contact-form {
        padding: 16px
    }

    .mg-contact-fields {
        grid-template-columns: 1fr;
        gap: 15px
    }

    .mg-contact-form-card > h2 {
        font-size: 35px
    }

    .mg-contact-faq {
        padding: 65px 0 85px
    }

    .mg-contact-faq-dog {
        display: none
    }

    .mg-contact-faq-item summary {
        padding: 17px
    }

    .mg-contact-faq-answer {
        padding: 0 17px 18px
    }
}

.mg-contact-fields label {
    min-width: 0;
}

.mg-contact-label-text {
    display: inline-block;
    white-space: nowrap;
    font-weight: 700;
}

.mg-contact-label-text > span {
    display: inline;
    white-space: nowrap;
}

.mg-contact-hero-inner {
    grid-template-columns: 56% 44%;
    min-height: 390px;
}

.mg-contact-hero-visual {
    height: 410px;
    overflow: visible;
    position: relative;
    z-index: 2;
    justify-content: center;
}

.mg-contact-hero-visual img {
    display: block;
    height: 112%;
    max-height: none;
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: bottom;
    transform: translate(0, 18px) scale(1.16);
    transform-origin: center bottom;
}

.mg-contact-form-card {
    border: 0;
    border-radius: 20px;
    padding: 26px 26px 28px;
    box-shadow: 0 5px 12px rgba(107, 53, 41, .09);
}

.mg-contact-form {
    border: 0;
    border-radius: 0;
    padding: 0;
}

.mg-contact-form-card > h2 {
    margin: 0 0 30px;
    font-size: clamp(34px, 3.5vw, 53px);
}

.mg-contact-fields {
    gap: 20px 20px;
}

.mg-contact-fields label {
    gap: 8px;
}

.mg-contact-submit .mg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mg-faq-arrow {
    background: transparent;
}

.mg-faq-arrow img {
    width: 19px;
    height: 19px;
    display: block;
    filter: brightness(0) saturate(100%) invert(20%) sepia(26%) saturate(1316%) hue-rotate(326deg) brightness(95%) contrast(88%);
}

@media(max-width:900px) {
    .mg-contact-hero-visual {
        height: 330px
    }

    .mg-contact-hero-visual img {
        transform: translateY(12px) scale(1.08)
    }
}

@media(max-width:680px) {
    .mg-contact-hero-visual {
        height: 250px
    }

    .mg-contact-hero-visual img {
        height: 100%;
        max-width: 100%;
        transform: translateY(12px) scale(1.07)
    }

    .mg-contact-form-card {
        padding: 22px 18px
    }

    .mg-contact-form-card > h2 {
        margin-bottom: 24px
    }
}

.mg-contact-fields label {
    min-width: 0;
}

.mg-contact-fields label > .mg-contact-label-text {
    display: block;
    white-space: nowrap;
    line-height: 1.4;
}

.mg-contact-fields label > .mg-contact-label-text .mg-required {
    display: inline !important;
    white-space: nowrap;
}

.mg-contact-fields label.mg-contact-wide > .mg-contact-label-text {
    display: block;
}

.mg-contact-hero-visual {
    height: 370px;
    align-self: end;
    overflow: visible;
}

.mg-contact-hero-visual img {
    height: 100%;
    max-height: 100%;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom center;
    transform: translateY(12px) scale(1);
    transform-origin: center bottom;
}

.mg-contact-form-card {
    position: relative;
    padding: 28px;
    border: 0;
    border-radius: 20px;
}

.mg-contact-form-card::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1.5px solid #6B3529;
    border-radius: 13px;
    pointer-events: none;
}

.mg-contact-form {
    border: 0;
    padding: 0 10px 10px;
}

.mg-contact-form-card > h2 {
    position: relative;
    z-index: 1;
}

.mg-contact-faq-item {
    transition: background-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.mg-contact-faq-item:hover {
    background: #fffaf5;
    box-shadow: 0 8px 20px rgba(107, 53, 41, .13);
    transform: translateY(-2px);
}

.mg-contact-faq-item summary:focus-visible {
    outline: 2px solid #EA7600;
    outline-offset: 3px;
    border-radius: 16px;
}

.mg-faq-arrow {
    transition: transform .2s ease, background-color .2s ease;
}

.mg-contact-faq-item:hover .mg-faq-arrow {
    background: #FCF0E1;
    transform: translateX(3px);
}

.mg-contact-faq-item[open]:hover .mg-faq-arrow {
    transform: rotate(90deg);
}

@media(max-width:900px) {
    .mg-contact-hero-visual {
        height: 300px
    }

    .mg-contact-hero-visual img {
        transform: translateY(10px) scale(1)
    }
}

@media(max-width:680px) {
    .mg-contact-hero-visual {
        height: 240px
    }

    .mg-contact-hero-visual img {
        transform: translateY(8px) scale(1)
    }

    .mg-contact-form-card {
        padding: 24px
    }

    .mg-contact-form-card::after {
        inset: 9px
    }

    .mg-contact-form {
        padding: 0 4px 8px
    }
}

@media(prefers-reduced-motion:reduce) {

    .mg-contact-faq-item,
    .mg-contact-polaroid,
    .mg-faq-arrow {
        transition: none
    }
}

.mg-contact-polaroid {
    --mg-pointer-x: 0px;
    --mg-pointer-y: 0px;
    --mg-pointer-rotation: 0deg;
    --mg-base-rotation: 0deg;
    transform: translate3d(var(--mg-pointer-x), var(--mg-pointer-y), 0) rotate(calc(var(--mg-base-rotation) + var(--mg-pointer-rotation)));
    transition: transform .38s cubic-bezier(.2, .7, .2, 1), box-shadow .38s ease;
}

.mg-contact-polaroid-1 {
    --mg-base-rotation: -10deg;
}

.mg-contact-polaroid-2 {
    --mg-base-rotation: 9deg;
}

.mg-contact-polaroid-3 {
    --mg-base-rotation: -7deg;
}

@media (prefers-reduced-motion: reduce) {
    .mg-contact-polaroid {
        transition: none;
    }
}

.mg-contact-form-card::after {
    border-width: 2px;
}

.mg-contact-fields label {
    display: block;
}

.mg-contact-fields .mg-contact-label-text {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
}

.mg-contact-fields .mg-required,
.mg-contact-consent .mg-required {
    display: inline !important;
    white-space: nowrap;
    margin-left: 2px;
}

.mg-contact-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 22px 10px 0;
    cursor: pointer;
    position: relative;
    z-index: 1;
    font-size: 14px;
    line-height: 1.5;
}

.mg-contact-consent input {
    position: absolute;
    width: 22px;
    height: 22px;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.mg-contact-consent-box {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border: 2px solid #6B3529;
    border-radius: 6px;
    background: #fff;
    position: relative;
    transition: background .18s, border-color .18s;
}

.mg-contact-consent input:checked + .mg-contact-consent-box {
    background: #EA7600;
    border-color: #EA7600;
}

.mg-contact-consent input:checked + .mg-contact-consent-box::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 5px;
    left: 4px;
    top: 5px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
}

.mg-contact-consent input:focus-visible + .mg-contact-consent-box {
    outline: 3px solid #48A9C5;
    outline-offset: 3px;
}

.mg-contact-consent-text {
    flex: 1;
    min-width: 0;
}

.mg-contact-consent a {
    color: #6B3529;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.mg-contact-consent a:hover {
    color: #EA7600;
}

@media(max-width:680px) {
    .mg-contact-consent {
        margin: 20px 4px 0
    }
}

@media (min-width: 901px) {
    .mg-contact-hero {
        position: relative;
        z-index: 1;
        overflow: visible;
    }

    .mg-contact-hero-visual {
        position: relative;
        z-index: 1;
        height: 370px;
        overflow: visible;
        align-self: end;
        display: flex;
        align-items: flex-end;
        justify-content: center;
    }

    .mg-contact-hero-visual img {
        display: block;
        width: auto;
        height: 100%;
        max-width: 100%;
        max-height: none;
        object-fit: contain;
        object-position: bottom center;
        transform: translateY(25px) scale(1.3);
        transform-origin: center top;
    }

    .mg-contact-blue {
        position: relative;
        z-index: 2;
    }

    .mg-contact-blue::before {
        z-index: 2;
    }

    .mg-contact-blue > .mg-contact-layout {
        position: relative;
        z-index: 3;
    }
}

.mg-contact-blue::before {
    top: -79px;
    height: 80px;
    z-index: 2;
    background-color: #a6e4f3;
    background-image: linear-gradient(90deg, rgba(255, 255, 255, .5) 50%, transparent 50%), linear-gradient(rgba(255, 255, 255, .5) 50%, transparent 50%);
    background-size: 23px 23px;
    -webkit-mask: url('../img/brand/contact-blue-wave.svg') center top / 100% 100% no-repeat;
    mask: url('../img/brand/contact-blue-wave.svg') center top / 100% 100% no-repeat;
}

@media (min-width:901px) {
    .mg-contact-hero-visual img {
        transform: translateY(65px) scale(1.3);
        transform-origin: center top;
    }
}

@media (max-width:680px) {
    .mg-contact-blue::before {
        top: -54px;
        height: 55px;
    }
}

@media (min-width: 901px) {
    .mg-contact-hero-inner {
        min-height: 440px;
    }

    .mg-contact-hero-visual img {
        transform: translateY(40px) scale(1.3);
        transform-origin: center top;
    }

    .mg-contact-blue {
        padding-top: 35px;
    }
}

@media (min-width:901px) {
    .mg-contact-hero-inner {
        min-height: 520px;
    }

    .mg-contact-hero-visual img {
        transform: translateY(0px) scale(1.3);
        transform-origin: center top;
    }
}

@media(min-width:901px) {
    .mg-contact-hero-inner {
        min-height: 440px;
    }

    .mg-contact-hero-copy {
        padding-top: 20px;
        padding-bottom: 112px;
    }

    .mg-contact-hero-visual img {
        transform: translateY(-35px) scale(1.3);
        transform-origin: center top;
    }
}

.mg-contact-form-card > h2 {
    font-size: 52px;
}

.mg-contact-fields label {
    font-size: 18px;
}

.mg-contact-submit .mg-btn {
    font-size: 18px;
    padding: 20px 30px;
    border: 0;
}

.mg-contact-faq-item summary {
    font-size: 18px;
}

.mg-contact-fields select {
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
    padding-right: 52px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='14' viewBox='0 0 22 14'%3E%3Cpath d='m3 3 8 8 8-8' fill='none' stroke='%236B3529' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 17px center;
    background-size: 17px 11px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.mg-contact-fields select:hover {
    border-color: #EA7600;
    background-color: #fffaf5;
}

.mg-contact-fields select:focus-visible {
    border-color: #EA7600;
    outline: 2px solid #EA7600;
    outline-offset: 2px;
}

@media(max-width:680px) {
    .mg-contact-form-card > h2 {
        font-size: clamp(32px, 8vw, 52px)
    }
}

.mg-contact-blue::before {
    top: -69px;
}

.mg-contact-faq-dog img {
    display: block;
    bottom: -24px;
    position: relative;
}

@media (max-width: 680px) {
    .mg-contact-hero-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width:680px) {
    .mg-contact-blue::before {
        top: -54px;
    }
}

@media (max-width:680px) {
    .mg-contact-hero-visual {
        display: none;
    }
}

@media (max-width:680px) {
    .mg-contact-hero-inner {
        min-height: 0;
    }

    .mg-contact-hero-copy {
        padding-top: 24px;
        padding-bottom: 62px;
    }

    .mg-contact-hero h1 {
        font-size: 40px;
    }

    .mg-contact-blue::before {
        top: -24px;
        height: 25px;
    }
}

.mg-contact-polaroid-2 {
    width: 52%;
}