/* =========================
   VISIT REQUEST MODAL
   Selika refreshed design
========================= */

.visit-modal {
    --visit-navbar-offset: 35px;

    padding: 0 !important;
    color: #111111;
    font-family: var(--font-main);
    font-size: var(--fs-body);
}

.visit-modal *,
.visit-modal *::before,
.visit-modal *::after {
    box-sizing: border-box;
}

/* =========================
   MODAL POSITION
========================= */

.visit-modal-dialog {
    width: min(680px, calc(100% - 32px));
    max-width: 680px;

    min-height: calc(100vh - var(--visit-navbar-offset));
    margin: var(--visit-navbar-offset) auto 0 !important;

    display: flex;
    align-items: center;
    justify-content: center;
}

.visit-modal-content {
    position: relative;
    overflow-y: auto;

    width: 100%;
    max-height: calc(100vh - var(--visit-navbar-offset) - 48px);

    border: 1px solid rgba(17, 17, 17, 0.075);
    border-radius: 10px;

    background: #ffffff;
    color: #111111;

    box-shadow: 0 24px 70px rgba(17, 17, 17, 0.18);
}

.visit-modal-content::before {
    content: "";
    position: absolute;
    left: 0;
    top: 34px;

    width: 3px;
    height: 72px;

    background: #018d71;
    pointer-events: none;
}

.visit-modal-body {
    padding: 0;
}

.visit-modal-inner {
    padding: clamp(28px, 4vw, 44px);
}

/* =========================
   CLOSE BUTTON
========================= */

.visit-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;

    width: 34px;
    height: 34px;
    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(17, 17, 17, 0.12);
    border-radius: 999px;

    background: #ffffff;
    color: #111111;

    font-family: var(--font-main);
    font-size: var(--fs-body);
    line-height: 1;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.visit-modal-close:hover {
    transform: translateY(-1px);
    background: rgba(238, 218, 6, 0.16);
    border-color: rgba(238, 218, 6, 0.8);
    color: #111111;
}

/* =========================
   HEADER
========================= */

.visit-modal-head {
    max-width: 560px;
    margin: 0 0 24px;
    padding-right: 42px;
}

.visit-modal-kicker {
    margin: 0 0 12px;

    color: #018d71;
    font-family: var(--font-accent);
    font-size: var(--fs-small);
    line-height: 1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.visit-modal-head h3 {
    margin: 0;

    color: #111111;
    font-family: var(--font-main);
    font-size: var(--fs-title);
    line-height: 0.98;
    font-weight: 720;
    letter-spacing: -0.065em;
}

.visit-modal-reference {
    display: block;
    margin: 16px 0 0;

    color: rgba(17, 17, 17, 0.58);
    font-family: var(--font-main);
    font-size: var(--fs-body);
    line-height: 1.5;
    font-style: normal;
    font-weight: 500;
}

/* =========================
   FORM
========================= */

.visit-modal-form {
    width: 100%;
    margin: 0;
}

.visit-modal-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

.visit-modal-field {
    display: flex;
    flex-direction: column;
    gap: 7px;

    margin: 0;

    color: #111111;
    font-family: var(--font-main);
    font-size: var(--fs-small);
    line-height: 1.35;
    font-weight: 760;
}

.visit-modal-field span {
    color: rgba(17, 17, 17, 0.48);
    font-family: var(--font-main);
    font-size: var(--fs-small);
    line-height: 1.35;
    font-weight: 600;
}

.visit-modal-field-full {
    grid-column: 1 / -1;
}

.visit-modal-field-label {
    display: block;

    color: #111111 !important;
    font-family: var(--font-main);
    font-size: var(--fs-small);
    line-height: 1.35;
    font-weight: 760 !important;
}

/* =========================
   INPUTS
========================= */

.visit-modal-form input,
.visit-modal-form select,
.visit-modal-form textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 13px;

    border: 1px solid rgba(1, 141, 113, 0.22);
    border-radius: 8px;

    background: #ffffff;
    color: #111111;

    font-family: var(--font-main);
    font-size: var(--fs-small);
    line-height: 1.25;
    font-weight: 450;

    outline: none;
    box-shadow: none;

    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.visit-modal-form textarea {
    min-height: 82px;
    max-height: 120px;
    resize: vertical;
    line-height: 1.45;
}

.visit-modal-comment textarea {
    min-height: 72px;
    max-height: 100px;
}

.visit-modal-form input:hover,
.visit-modal-form select:hover,
.visit-modal-form textarea:hover {
    border-color: rgba(184, 50, 95, 0.30);
}

.visit-modal-form input:focus,
.visit-modal-form select:focus,
.visit-modal-form textarea:focus {
    border-color: #018d71;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(61, 199, 171, 0.12);
}

.visit-modal-form input::placeholder,
.visit-modal-form textarea::placeholder {
    color: rgba(17, 17, 17, 0.42);
}

/* =========================
   ERRORS
========================= */

.visit-modal-form ul.errorlist {
    margin: 2px 0 0;
    padding: 0;

    list-style: none;

    color: #b8325f;
    font-family: var(--font-main);
    font-size: var(--fs-small);
    line-height: 1.35;
    font-weight: 700;
}

.visit-modal-form .errorlist li {
    margin: 0;
}

/* =========================
   CAPTCHA
========================= */

.visit-modal-captcha {
    padding: 12px;

    border: 1px solid rgba(17, 17, 17, 0.075);
    border-radius: 10px;

    background: #fbfcfb;
}

.visit-modal-captcha img,
.visit-modal-captcha canvas {
    display: block;

    width: auto !important;
    max-width: 180px !important;

    height: auto !important;
    max-height: 54px !important;

    object-fit: contain;
}

.visit-modal-captcha input {
    max-width: 220px;
    min-height: 40px;
    margin-top: 8px;
}

.visit-modal-captcha table {
    width: auto;
    max-width: 100%;
}

.visit-modal-captcha td {
    padding: 0 8px 0 0;
    vertical-align: middle;
}

/* =========================
   ACTIONS
========================= */

.visit-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 20px;
}

.visit-modal-btn {
    min-height: 42px;
    padding: 0 19px;

    border-radius: 8px;
    border: 1px solid transparent;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    font-family: var(--font-main);
    font-size: var(--fs-small);
    line-height: 1;
    font-weight: 780;
    white-space: nowrap;
    text-decoration: none;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;

    transition:
        transform 0.18s ease,
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

.visit-modal-btn:hover {
    transform: translateY(-1px);
}

.visit-modal-btn-primary {
    background: #b8325f;
    border-color: #b8325f;
    color: #ffffff;
}

.visit-modal-btn-primary:hover {
    background: #9f294f;
    border-color: #9f294f;
    color: #ffffff;
}

.visit-modal-btn-secondary {
    background: #ffffff;
    color: #111111;
    border-color: rgba(17, 17, 17, 0.14);
}

.visit-modal-btn-secondary:hover {
    background: rgba(238, 218, 6, 0.16);
    border-color: rgba(238, 218, 6, 0.8);
    color: #111111;
}

/* =========================
   BOOTSTRAP BACKDROP SUPPORT
========================= */

.modal-backdrop.show {
    opacity: 0.42;
}

body.modal-open {
    padding-right: 0 !important;
}

/* =========================
   RESPONSIVE
========================= */

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 640px) {
.visit-modal {
        --visit-navbar-offset: 76px;
    }

    .visit-modal-dialog {
        width: calc(100% - 24px);
        max-width: none;

        min-height: calc(100vh - var(--visit-navbar-offset));
        margin: var(--visit-navbar-offset) auto 0 !important;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    .visit-modal-content {
        max-height: calc(100vh - var(--visit-navbar-offset) - 24px);
        overflow-y: auto;
    }

    .visit-modal-inner {
        padding: 28px 22px;
    }

    .visit-modal-content::before {
        top: 28px;
        height: 58px;
    }

    .visit-modal-close {
        top: 12px;
        right: 12px;
    }

    .visit-modal-head {
        padding-right: 38px;
        margin-bottom: 22px;
    }

    .visit-modal-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .visit-modal-form textarea {
        min-height: 76px;
        max-height: 110px;
    }

    .visit-modal-captcha img,
    .visit-modal-captcha canvas {
        max-width: 150px !important;
        max-height: 48px !important;
    }

    .visit-modal-captcha input {
        max-width: 100%;
    }

    .visit-modal-actions {
        flex-direction: column-reverse;
    }

    .visit-modal-btn {
        width: 100%;
    }
}
