/* The header's pop-ups (registration, login, search). Loaded on every page with the header. */

.mk-modal {
    --mk-brand: #d02323;
    --mk-brand-dark: #a81818;
    --mk-ink: #22201f;
    --mk-muted: #6f6a67;
    --mk-line: #e6dfd9;

    z-index: 10050;
    overflow-y: auto;
    padding: 20px 14px;
}

/* Sits above the site header's top bar. The body class is set by modals.js while one of
   these pop-ups is open, so the older pop-ups on some pages keep their own backdrop. */
.mk-modal-open .modal-backdrop {
    z-index: 10040;
    background: #1b1413;
}

.mk-modal-open .modal-backdrop.in,
.mk-modal-open .modal-backdrop.show {
    opacity: .72;
}

.mk-modal .mk-modal__dialog {
    position: relative;
    top: auto;
    display: flex;
    align-items: center;
    width: auto;
    max-width: 460px;
    min-height: calc(100vh - 40px);
    margin: 0 auto;
    opacity: 0;
    transform: translateY(24px) scale(.97) !important;
    transition: opacity .25s ease, transform .25s ease;
}

.mk-modal .mk-modal__dialog--wide {
    max-width: 600px;
}

.mk-modal.in .mk-modal__dialog,
.mk-modal.show .mk-modal__dialog {
    opacity: 1;
    transform: none !important;
}

.mk-modal .mk-modal__content {
    display: flex;
    flex-direction: column;
    width: 100%;
    border: 0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
    color: var(--mk-ink);
    overflow: hidden;
}

/* ---------- Brand strip across the top (registration) ---------- */

.mk-modal__aside {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 26px 30px;
    background: #1b1413 url('../images/ff.jpg') center / cover no-repeat;
    position: relative;
    isolation: isolate;
}

.mk-modal__aside::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(168, 24, 24, .93), rgba(27, 20, 19, .86));
}

.mk-modal__logo {
    width: 100%;
    max-width: 240px;
}

/* ---------- Main panel ---------- */

.mk-modal__main {
    position: relative;
    flex: 1;
    min-width: 0;
    padding: 38px 36px 32px;
}

.mk-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f4efea;
    color: var(--mk-muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, transform .2s ease;
}

.mk-modal__close:hover,
.mk-modal__close:focus {
    background: var(--mk-brand);
    color: #fff;
    outline: 0;
    transform: rotate(90deg);
}

.mk-modal__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: #fdecec;
    color: var(--mk-brand);
    font-size: 22px;
}

.mk-modal .mk-modal__title {
    margin: 0 0 6px;
    padding-right: 34px;
    text-align: left;
    color: var(--mk-ink);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.25;
}

.mk-modal .mk-modal__lead {
    margin: 0 0 22px;
    text-align: left;
    color: var(--mk-muted);
    font-size: 14px;
    line-height: 1.5;
}

/* ---------- Forms ---------- */

.mk-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    margin: 0;
    padding: 0;
}

.mk-form--single {
    grid-template-columns: minmax(0, 1fr);
}

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

.mk-field label {
    display: block;
    margin: 0 0 5px;
    color: var(--mk-ink);
    font-size: 12px;
    font-weight: 600;
}

.mk-modal .mk-input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 13px;
    border: 1px solid #ddd6d0;
    border-radius: 10px;
    background: #fdfbf9;
    box-shadow: none;
    color: var(--mk-ink);
    font: inherit;
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.mk-modal .mk-input:focus {
    border-color: var(--mk-brand);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(208, 35, 35, .12);
    outline: 0;
}

.mk-modal textarea.mk-input {
    height: auto;
    min-height: 84px;
    padding: 11px 13px;
    resize: vertical;
}

/* Tick-box chips (the services in the booking pop-up). */
.mk-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mk-check {
    position: relative;
    margin: 0;
}

.mk-check input {
    position: absolute;
    opacity: 0;
}

.mk-check span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd6d0;
    border-radius: 999px;
    background: #fdfbf9;
    color: var(--mk-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.mk-check input:checked + span {
    border-color: var(--mk-brand);
    background: var(--mk-brand);
    color: #fff;
}

.mk-check input:focus + span {
    box-shadow: 0 0 0 4px rgba(208, 35, 35, .12);
}

.mk-status {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.mk-status[hidden] {
    display: none;
}

.mk-status--error {
    background: #fdecec;
    color: #a81818;
}

.mk-status--success {
    background: #e7f7ee;
    color: #17673b;
}

.mk-range {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
    color: var(--mk-muted);
    font-size: 13px;
}

.mk-hint {
    display: block;
    margin-top: 5px;
    color: #a81818;
    font-size: 12px;
    line-height: 1.35;
}

.mk-hint:empty {
    display: none;
}

.mk-hint img {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
}

.mk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 26px;
    border: 0;
    border-radius: 999px;
    background: var(--mk-brand);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease;
}

.mk-btn:hover,
.mk-btn:focus {
    background: var(--mk-brand-dark);
    outline: 0;
    transform: translateY(-2px);
}

.mk-btn[disabled] {
    opacity: .55;
    cursor: not-allowed;
    transform: none;
}

.mk-modal .mk-form__note {
    margin: 0;
    text-align: center;
    color: var(--mk-muted);
    font-size: 12px;
    line-height: 1.5;
}

.mk-modal .mk-modal__switch {
    margin: 16px 0 0;
    text-align: center;
    color: var(--mk-muted);
    font-size: 14px;
}

.mk-modal .mk-modal__switch + .mk-modal__switch {
    margin-top: 6px;
}

.mk-modal__main a {
    color: var(--mk-brand);
    font-weight: 600;
}

.mk-modal__main a:hover,
.mk-modal__main a:focus {
    color: var(--mk-brand-dark);
}

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
    .mk-modal__aside {
        padding: 20px 22px;
    }

    .mk-modal__logo {
        max-width: 190px;
    }

    .mk-modal__main {
        padding: 30px 22px 26px;
    }
}

@media (max-width: 420px) {
    .mk-form {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mk-modal .mk-modal__dialog,
    .mk-modal__close,
    .mk-btn,
    .mk-modal .mk-input {
        transition: none;
    }
}
