/* =========================================
   MESSAGEHUB OSM
   SEND WHATSAPP
========================================= */


/* =========================================
   SEND CARD
========================================= */

.send-card {

    width: 100%;

    box-sizing: border-box;

    padding: 34px 38px;

    background: #0B1F3A;

    border: 1px solid #1E5EFF;

    border-radius: 16px;

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.15);

}


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

.form-group {

    margin-bottom: 28px;

}


.form-group label {

    display: block;

    margin-bottom: 12px;

    color: #ffffff;

    font-size: 16px;

    font-weight: 500;

}


/* =========================================
   SELECT
========================================= */

.send-select {

    width: 100%;

    height: 58px;

    box-sizing: border-box;

    padding: 0 18px;

    background: #07182F;

    color: #ffffff;

    border: 1px solid rgba(155, 179, 212, 0.16);

    border-radius: 10px;

    outline: none;

    font-size: 16px;

    cursor: pointer;

    transition:
        border 0.2s ease,
        box-shadow 0.2s ease;

}


.send-select:focus {

    border-color: #1E5EFF;

    box-shadow:
        0 0 0 3px rgba(30, 94, 255, 0.12);

}


/* =========================================
   NOMOR TUJUAN
========================================= */

.target-textarea {
    display: block;
    width: 100%;
    min-width: 100%;
    height: 220px;
    min-height: 220px;
    box-sizing: border-box;

    padding: 18px;

    background: #07182F;
    color: #ffffff;

    border: 1px solid rgba(155, 179, 212, 0.16);
    border-radius: 10px;

    outline: none;

    resize: vertical;
    overflow-y: auto;

    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;

    white-space: pre-wrap;
    overflow-wrap: break-word;

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


.target-textarea::placeholder {

    color: #7186A5;

}


.target-textarea:focus {

    border-color: #1E5EFF;

    box-shadow:
        0 0 0 3px rgba(30, 94, 255, 0.12);

}


/* =========================================
   DELAY
========================================= */

.delay-row {

    display: flex;

    align-items: center;

    gap: 14px;

}


.delay-input {

    width: 150px;

    height: 58px;

    box-sizing: border-box;

    padding: 0 16px;

    background: #07182F;

    color: #ffffff;

    border: 1px solid rgba(155, 179, 212, 0.16);

    border-radius: 10px;

    outline: none;

    font-size: 16px;

    appearance: textfield;

    -moz-appearance: textfield;

}


.delay-input::-webkit-inner-spin-button,
.delay-input::-webkit-outer-spin-button {

    -webkit-appearance: none;

    margin: 0;

}


.delay-input::placeholder {

    color: #7186A5;

}


.delay-input:focus {

    border-color: #1E5EFF;

    box-shadow:
        0 0 0 3px rgba(30, 94, 255, 0.12);

}


.delay-row span {

    color: #9BB3D4;

    font-size: 16px;

}


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

.message-input {

    display: block;

    width: 100%;

    min-height: 220px;

    box-sizing: border-box;

    padding: 18px;

    background: #07182F;

    color: #ffffff;

    border: 1px solid rgba(155, 179, 212, 0.16);

    border-radius: 10px;

    outline: none;

    resize: vertical;

    font-family: inherit;

    font-size: 16px;

    line-height: 1.6;

}


.message-input::placeholder {

    color: #7186A5;

}


.message-input:focus {

    border-color: #1E5EFF;

    box-shadow:
        0 0 0 3px rgba(30, 94, 255, 0.12);

}


/* =========================================
   TYPING
========================================= */

.typing-section {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 28px 0;

    margin-top: 4px;

    border-top: 1px solid rgba(155, 179, 212, 0.10);

    border-bottom: 1px solid rgba(155, 179, 212, 0.10);

}


.typing-section strong {

    display: block;

    margin-bottom: 6px;

    color: #ffffff;

    font-size: 16px;

}


.typing-section p {

    margin: 0;

    color: #7FA4D4;

    font-size: 14px;

}


/* =========================================
   SWITCH
========================================= */

.switch {

    position: relative;

    display: inline-block;

    width: 60px;

    height: 34px;

    margin: 0;

}


.switch input {

    opacity: 0;

    width: 0;

    height: 0;

}


.slider {

    position: absolute;

    inset: 0;

    cursor: pointer;

    background: #29415F;

    border-radius: 50px;

    transition: 0.2s;

}


.slider::before {

    content: "";

    position: absolute;

    width: 26px;

    height: 26px;

    left: 4px;

    top: 4px;

    background: #ffffff;

    border-radius: 50%;

    transition: 0.2s;

}


.switch input:checked + .slider {

    background: #1E5EFF;

}


.switch input:checked + .slider::before {

    transform: translateX(26px);

}


/* =========================================
   SEND ACTION
========================================= */

.send-action {

    display: flex;

    justify-content: flex-end;

    margin-top: 28px;

}


.send-button {

    min-width: 160px;

    height: 48px;

    padding: 0 22px;

    border: 1px solid #1E5EFF;

    border-radius: 9px;

    background: #1E5EFF;

    color: #ffffff;

    font-size: 15px;

    font-weight: 500;

    cursor: pointer;

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

}


.send-button:hover {

    background: #3470FF;

    box-shadow:
        0 0 18px rgba(30, 94, 255, 0.25);

    transform: translateY(-1px);

}


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

@media (max-width: 700px) {

    .send-card {

        padding: 24px 20px;

    }


    .delay-row {

        flex-wrap: wrap;

    }


    .delay-input {

        flex: 1;

        min-width: 100px;

    }


    .send-action {

        justify-content: stretch;

    }


    .send-button {

        width: 100%;

    }

}