

/* =========================================================
   RIGHT SIDE REQUEST BUTTON
========================================================= */

.ref-consultation-tab {

    position: fixed;

    right: 0;
    top: 50%;

    z-index: 9998;

    width: 54px;

    display: flex;
    flex-direction: column;
    align-items: center;

    padding: 14px 0 14px;

    background: #f45118;

    color: #ffffff;

    border-radius: 14px 0 0 14px;

    box-shadow:
        -5px 5px 25px rgba(20, 35, 65, 0.20);

    cursor: pointer;

    transform: translateY(-50%);

    overflow: hidden;

    transition:
        width 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}


/* Decorative Circle */

.ref-consultation-tab::before {

    content: "";

    position: absolute;

    top: -1px;
    right: -1px;

    width: 110px;
    height: 110px;

    border: 1px solid rgba(255,255,255,0.16);

    border-radius: 50%;

    pointer-events: none;
}


/* Icon */

.ref-consultation-icon {

    position: relative;

    z-index: 2;

    width: 20px;
    height: 20px;

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

    margin-bottom: 10px;

    color: #ffffff;

    font-size: 13px;
}


/* Vertical Text */

.ref-consultation-text {

    position: relative;

    z-index: 2;

    writing-mode: vertical-rl;

    transform: rotate(180deg);

    color: #ffffff;

    font-size: 10px;

    line-height: 1;

    font-weight: 800;

    letter-spacing: 1.5px;

    white-space: nowrap;
}


/* Hover */

.ref-consultation-tab:hover {

    width: 62px;

    background: #ed4811;

    box-shadow:
        -8px 7px 30px rgba(20, 35, 65, 0.28);
}


/* =========================================================
   OVERLAY
========================================================= */

.ref-consultation-overlay {

    position: fixed;

    inset: 0;

    z-index: 9999;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    background: rgba(10, 15, 40, 0);

    backdrop-filter: blur(0);

    -webkit-backdrop-filter: blur(0);

    transition:
        opacity 0.3s ease,
        background 0.3s ease,
        backdrop-filter 0.3s ease,
        visibility 0.3s ease;
}


/* ACTIVE */

.ref-consultation-overlay.active {

    opacity: 1;

    visibility: visible;

    pointer-events: all;

    background: rgba(10, 15, 40, 0.5);

    backdrop-filter: blur(4px);

    -webkit-backdrop-filter: blur(4px);
}


/* =========================================================
   RIGHT SIDE SLIDER
========================================================= */

.ref-consultation-modal {

    position: absolute;

    top: 50%;
    right: 0;

    width: 400px;
    max-width: 100%;

    /* height: 92vh;*/
    max-height: 92vh; 

    overflow-y: auto;
    overflow-x: hidden;

    background: #ffffff;

    border-radius: 18px 0 0 18px;

    box-shadow:
        -10px 0 40px rgba(5, 20, 45, 0.28);

    /* CLOSED */
    transform:
        translateY(-50%)
        translateX(100%);

    transition:
        transform 0.4s cubic-bezier(.4, 0, .2, 1);
}


/* OPEN */

.ref-consultation-overlay.active
.ref-consultation-modal {

    transform:
        translateY(-50%)
        translateX(0);
}


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

.ref-consultation-header {

    position: relative;

    min-height: 127px;

    display: flex;

    justify-content: space-between;

    padding: 25px 22px 18px;

    overflow: hidden;

    background: #f45118;

    color: #ffffff;
}


/* Decorative Header Circle */

.ref-consultation-header::after {

    content: "";

    position: absolute;

    width: 170px;
    height: 170px;

    right: -55px;
    top: -55px;

    border: 1px solid rgba(255,255,255,0.16);

    border-radius: 50%;

    pointer-events: none;
}


/* Heading */

.ref-consultation-heading {

    position: relative;

    z-index: 2;
}

            .ref-consultation-header h2 {

    margin: 0 0 8px;

    color: #ffffff;

    font-family: inherit;

    font-size: 23px;

    line-height: 1.1;

    font-weight: 700;
}

            .ref-consultation-header p {

    margin: 0;

    color: rgba(255,255,255,0.9);

    font-size: 13px;

    line-height: 1.4;
}


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

.ref-consultation-close {

    position: relative;

    z-index: 10;

    width: 30px;
    height: 30px;

    min-width: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: -5px 0 0 10px;

    border: 1px solid rgba(255,255,255,0.25);

    border-radius: 50%;

    background: rgba(255,255,255,0.12);

    color: #ffffff;

    font-size: 13px;

    cursor: pointer;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

            .ref-consultation-close:hover {

    background: rgba(255,255,255,0.25);

    transform: rotate(90deg);
}


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

.ref-consultation-form {

    padding: 25px 22px 22px;

    background: #ffffff;
}

            .ref-form-group {

    margin-bottom: 17px;
}


/* LABEL */

.ref-form-group label {

    display: block;

    margin-bottom: 8px;

    color: #697386;

    font-size: 12px;

    line-height: 1.2;

    font-weight: 800;

    letter-spacing: 1.5px;
}

            .ref-form-group label span {

    color: #315bd5;
}


/* INPUT + TEXTAREA */

.ref-form-group input,
.ref-form-group textarea {

    width: 100%;

    box-sizing: border-box;

    border: 1px solid #d5def2;

    border-radius: 9px;

    background: #f8faff;

    color: #243654;

    font-family: inherit;

    font-size: 12px;

    outline: none;

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

            .ref-form-group input {

    height: 48px;

    padding: 0 13px;
}

            .ref-form-group textarea {

    min-height: 82px;

    padding: 12px 13px;

    resize: vertical;
}


/* Placeholder */

.ref-form-group input::placeholder,
.ref-form-group textarea::placeholder {

    color: #aab5cc;
}


/* Focus */

.ref-form-group input:focus,
.ref-form-group textarea:focus {

    border-color: #315bd5;

    background: #ffffff;

    box-shadow:
        0 0 0 3px rgba(49,91,213,0.08);
}


/* =========================================================
   DIVIDER
========================================================= */

.ref-form-divider {

    height: 2px;

    margin: -2px 0 17px;

    background: #777777;
}


/* =========================================================
   MESSAGE
========================================================= */

.ref-message-group {

    margin-bottom: 24px;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.ref-consult-submit {

    width: 100%;

    min-height: 51px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    border: 0;

    border-radius: 10px;

    background: #f45118;

    color: #ffffff;

    font-size: 11px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(244,81,24,0.22);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

            .ref-consult-submit:hover {

    background: #e84710;

    transform: translateY(-1px);

    box-shadow:
        0 11px 23px rgba(244,81,24,0.28);
}

            .ref-consult-submit i {

    font-size: 10px;
}


/* =========================================================
   SECURITY
========================================================= */

.ref-consult-security {

    margin-top: 11px;

    text-align: center;

    color: #697386;

    font-size: 9px;

    line-height: 1.4;
}


/* =========================================================
   PC
========================================================= */

@media (min-width: 1200px) {

    .ref-consultation-modal {

        width: 400px;

        /* height: 92vh; */
        max-height: 92vh;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (min-width: 768px) and (max-width: 1199.98px) {

    .ref-consultation-modal {

        width: 390px;

        /* height: 92vh; */
        max-height: 92vh;

        border-radius: 16px 0 0 16px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    .ref-consultation-tab {

        width: 48px;

        padding: 12px 0 12px;
    }

            .ref-consultation-text {

        font-size: 11px;

        letter-spacing: 1.1px;
    }

            .ref-consultation-modal {

        top: 50%;
        right: 0;

        width: 100%;
        max-width: 100%;

        /* height: 92vh; */
        max-height: 92vh;

        border-radius: 15px 0 0 15px;

        transform:
            translateY(-50%)
            translateX(100%);
    }

            .ref-consultation-overlay.active
    .ref-consultation-modal {

        transform:
            translateY(-50%)
            translateX(0);
    }

            .ref-consultation-header {

        min-height: 120px;

        padding: 22px 18px 17px;
    }

            .ref-consultation-header h2 {

        font-size: 22px;
    }

            .ref-consultation-form {

        padding: 22px 18px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575.98px) {

    .ref-consultation-tab {

        width: 45px;
    }

            .ref-consultation-modal {

        width: 100%;

        /* height: 92vh; */
        max-height: 92vh;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .ref-consultation-tab {

        width: 42px;
    }

            .ref-consultation-text {

        font-size: 11px;
    }

            .ref-consultation-header h2 {

        font-size: 20px;
    }

            .ref-consultation-form {

        padding: 18px 16px;
    }

}

