/* =========================================================
   VBLINK HR CONSULTANTS
   TINY SIDEBAR MESSAGE BOX
   ========================================================= */


/* =========================================================
   MAIN BOX
   ========================================================= */

.sidebar-message-box {

    width: 100%;

    max-width: 280px;

    margin: 18px auto;

    padding: 14px;

    box-sizing: border-box;

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f1f6ff
        );

    border:
        1px solid rgba(47, 84, 235, 0.25);

    box-shadow:
        0 8px 22px rgba(15, 23, 42, 0.15),
        0 0 12px rgba(47, 84, 235, 0.10);

}


/* =========================================================
   HEADER
   ========================================================= */

.sidebar-message-header {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 12px;

    padding-bottom: 10px;

    border-bottom:
        1px solid #dbeafe;

}


/* =========================================================
   HEADER ICON
   ========================================================= */

.message-icon {

    width: 34px;

    height: 34px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    background:
        linear-gradient(
            135deg,
            #2f54eb,
            #00a6ff
        );

    color: #ffffff;

    font-size: 14px;

    box-shadow:
        0 4px 10px rgba(47, 84, 235, 0.30);

}


/* =========================================================
   HEADER TITLE
   ========================================================= */

.sidebar-message-header h3 {

    margin: 0;

    color: #172554;

    font-family:
        "Poppins",
        Arial,
        sans-serif;

    font-size: 13px;

    font-weight: 800;

    line-height: 1.2;

}


/* =========================================================
   HEADER SUBTITLE
   ========================================================= */

.sidebar-message-header p {

    margin: 3px 0 0;

    color: #64748b;

    font-family:
        "Poppins",
        Arial,
        sans-serif;

    font-size: 8px;

    font-weight: 500;

}


/* =========================================================
   FORM
   ========================================================= */

.sidebar-message-form {

    width: 100%;

}


/* =========================================================
   INPUT GROUP
   ========================================================= */

.sidebar-input-group {

    width: 100%;

    height: 34px;

    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom: 8px;

    padding: 0 9px;

    box-sizing: border-box;

    background: #ffffff;

    border:
        1px solid #dbeafe;

    border-radius: 8px;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;

}


/* =========================================================
   INPUT ICON
   ========================================================= */

.sidebar-input-group i {

    width: 13px;

    flex-shrink: 0;

    color: #2f54eb;

    font-size: 10px;

    text-align: center;

}


/* =========================================================
   INPUT
   ========================================================= */

.sidebar-input-group input {

    width: 100%;

    min-width: 0;

    height: 100%;

    padding: 0;

    border: none;

    outline: none;

    background: transparent;

    color: #172554;

    font-family:
        "Poppins",
        Arial,
        sans-serif;

    font-size: 9px;

    font-weight: 500;

}


/* =========================================================
   PLACEHOLDER
   ========================================================= */

.sidebar-input-group input::placeholder {

    color: #94a3b8;

    opacity: 1;

}


/* =========================================================
   INPUT FOCUS
   ========================================================= */

.sidebar-input-group:focus-within {

    border-color: #2f54eb;

    background: #f8fbff;

    box-shadow:
        0 0 0 2px rgba(47, 84, 235, 0.10);

}


/* =========================================================
   TEXTAREA GROUP
   ========================================================= */

.sidebar-textarea-group {

    width: 100%;

    min-height: 75px;

    display: flex;

    align-items: flex-start;

    gap: 7px;

    margin-bottom: 9px;

    padding: 9px;

    box-sizing: border-box;

    background: #ffffff;

    border:
        1px solid #dbeafe;

    border-radius: 8px;

    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;

}


/* =========================================================
   TEXTAREA ICON
   ========================================================= */

.sidebar-textarea-group i {

    width: 13px;

    flex-shrink: 0;

    padding-top: 2px;

    color: #2f54eb;

    font-size: 10px;

    text-align: center;

}


/* =========================================================
   TEXTAREA
   ========================================================= */

.sidebar-textarea-group textarea {

    width: 100%;

    min-width: 0;

    min-height: 55px;

    padding: 0;

    border: none;

    outline: none;

    resize: vertical;

    background: transparent;

    color: #172554;

    font-family:
        "Poppins",
        Arial,
        sans-serif;

    font-size: 9px;

    font-weight: 500;

    line-height: 1.5;

}


/* =========================================================
   TEXTAREA PLACEHOLDER
   ========================================================= */

.sidebar-textarea-group textarea::placeholder {

    color: #94a3b8;

    opacity: 1;

}


/* =========================================================
   TEXTAREA FOCUS
   ========================================================= */

.sidebar-textarea-group:focus-within {

    border-color: #2f54eb;

    background: #f8fbff;

    box-shadow:
        0 0 0 2px rgba(47, 84, 235, 0.10);

}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.sidebar-message-submit {

    width: 100%;

    min-height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    padding: 7px 10px;

    border: none;

    border-radius: 8px;

    background:
        linear-gradient(
            135deg,
            #2f54eb,
            #00a6ff
        );

    color: #ffffff;

    font-family:
        "Poppins",
        Arial,
        sans-serif;

    font-size: 9px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 4px 10px rgba(47, 84, 235, 0.25);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;

}


/* =========================================================
   BUTTON HOVER
   ========================================================= */

.sidebar-message-submit:hover {

    transform:
        translateY(-2px);

    filter:
        brightness(1.08);

    box-shadow:
        0 6px 15px rgba(47, 84, 235, 0.40);

}


/* =========================================================
   BUTTON ACTIVE
   ========================================================= */

.sidebar-message-submit:active {

    transform:
        translateY(0);

}


/* =========================================================
   SUCCESS MESSAGE
   ========================================================= */

.sidebar-form-success {

    margin-bottom: 10px;

    padding: 8px;

    border-radius: 7px;

    background: #ecfdf5;

    border:
        1px solid #86efac;

    color: #166534;

    font-family:
        "Poppins",
        Arial,
        sans-serif;

    font-size: 8px;

    font-weight: 600;

    line-height: 1.4;

}


/* =========================================================
   ERROR MESSAGE
   ========================================================= */

.sidebar-form-error {

    margin-bottom: 10px;

    padding: 8px;

    border-radius: 7px;

    background: #fef2f2;

    border:
        1px solid #fca5a5;

    color: #b91c1c;

    font-family:
        "Poppins",
        Arial,
        sans-serif;

    font-size: 8px;

    font-weight: 600;

    line-height: 1.4;

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .sidebar-message-box {

        max-width: 280px;

    }

}






/* =========================================================
   SIDEBAR MESSAGE ALERT
========================================================= */

.sidebar-message-alert {
    position: relative;

    display: flex;
    align-items: center;
    gap: 14px;

    width: 100%;

    margin-top: 18px;
    padding: 15px 42px 15px 15px;

    border-radius: 14px;

    overflow: hidden;

    box-sizing: border-box;

    animation:
        sidebarAlertIn
        0.5s
        cubic-bezier(.2, .8, .2, 1)
        both;
}


/* =========================================================
   SUCCESS
========================================================= */

.sidebar-message-alert-success {

    background:
        linear-gradient(
            135deg,
            rgba(34, 197, 94, 0.16),
            rgba(16, 185, 129, 0.08)
        );

    border:
        1px solid
        rgba(34, 197, 94, 0.35);

    box-shadow:
        0 10px 30px
        rgba(34, 197, 94, 0.10);

}


/* =========================================================
   ERROR
========================================================= */

.sidebar-message-alert-error {

    background:
        linear-gradient(
            135deg,
            rgba(239, 68, 68, 0.15),
            rgba(248, 113, 113, 0.07)
        );

    border:
        1px solid
        rgba(239, 68, 68, 0.35);

    box-shadow:
        0 10px 30px
        rgba(239, 68, 68, 0.10);

}


/* =========================================================
   ALERT ICON
========================================================= */

.sidebar-alert-icon {

    flex:
        0 0 42px;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 18px;

}


.sidebar-message-alert-success
.sidebar-alert-icon {

    color: #16a34a;

    background:
        rgba(34, 197, 94, 0.14);

}


.sidebar-message-alert-error
.sidebar-alert-icon {

    color: #dc2626;

    background:
        rgba(239, 68, 68, 0.14);

}


/* =========================================================
   ALERT CONTENT
========================================================= */

.sidebar-alert-content {

    display: flex;

    flex-direction: column;

    gap: 3px;

    min-width: 0;

}


.sidebar-alert-content strong {

    font-size: 14px;

    font-weight: 700;

    line-height: 1.3;

}


.sidebar-alert-content span {

    font-size: 12px;

    line-height: 1.55;

    opacity: 0.85;

}


/* =========================================================
   SUCCESS TEXT
========================================================= */

.sidebar-message-alert-success
.sidebar-alert-content strong {

    color: #15803d;

}


/* =========================================================
   ERROR TEXT
========================================================= */

.sidebar-message-alert-error
.sidebar-alert-content strong {

    color: #b91c1c;

}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.sidebar-alert-close {

    position: absolute;

    top: 9px;
    right: 9px;

    width: 27px;
    height: 27px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;

    background: transparent;

    cursor: pointer;

    border-radius: 50%;

    font-size: 12px;

    transition:
        background 0.25s ease,
        transform 0.25s ease;

}


.sidebar-alert-close:hover {

    background:
        rgba(0, 0, 0, 0.07);

    transform:
        rotate(90deg);

}


/* =========================================================
   ALERT ANIMATION
========================================================= */

@keyframes sidebarAlertIn {

    from {

        opacity: 0;

        transform:
            translateY(-12px)
            scale(0.97);

    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .sidebar-message-alert {

        gap: 10px;

        padding:
            13px
            38px
            13px
            12px;

        border-radius: 12px;

    }


    .sidebar-alert-icon {

        flex:
            0 0 36px;

        width: 36px;
        height: 36px;

        font-size: 15px;

    }


    .sidebar-alert-content strong {

        font-size: 13px;

    }


    .sidebar-alert-content span {

        font-size: 11px;

    }

}