.consultation_modal .modal-dialog {
    max-width: 520px;
}

.consultation_modal .modal-content {
    border: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.consultation_modal .modal-content,
.consultation_modal .modal-body,
.consultation_modal .modal-header {
    direction: rtl;
    text-align: right;
}

.consultation_modal_head {
    position: relative;
    padding: 30px 30px 10px;
}

.consultation_close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #ffd9d9;
    color: red;
    font-size: 30px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.consultation_title {
    margin: 0;
    font-size: 24px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--color2);
}

.consultation_subtitle {
    margin: 10px 0 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--color5);
}

.consultation_modal_body {
    padding: 12px 30px 30px;
}

.consultation_field {
    margin-bottom: 16px;
}

.consultation_field label {
    display: block;
    margin-bottom: 8px;
    color: var(--color1);
    font-size: 16px;
    font-weight: 600;
}

.consultation_field input {
    width: 100%;
    height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    color: #0f172a;
    background: #fff;
    outline: none;
    box-shadow: none;
}

.consultation_field input:focus {
    border-color: #0ea5e9;
}

.consultation_alert {
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 14px;
    font-size: 18px;
    line-height: 1.8;
}

.consultation_alert_error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.consultation_alert_success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.consultation_submit_btn {
    width: 100%;
    height: 50px;
    border: 0;
    border-radius: 10px;
    background: var(--color1);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}

.consultation_submit_btn:hover{
background: var(--color2);
}

.consultation_submit_btn:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.consultation_modal.fade .modal-dialog {
    transition: transform .25s ease-out;
}

.consultation_fixed_badges {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 11px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 5px;
    border-radius: 30px;
}

.consultation_fixed_badge {
    height: 55px;
    padding: 0 18px;
    border: 1px solid var(--color4);
    border-radius: 100px;
    background: var(--color2);
    color: #fff;
    font-family: 'peyda_medium';
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.3);
    display: inline-flex;
    gap: 3px;
    justify-content: center;
    align-items: center;
    min-width: 160px;
    transition: all 0.3s linear;
}

.consultation_fixed_badge:hover{
    background-color: var(--color1);
}

.consultation_fixed_badge::before{
    content: '\e91c';
    font-family: 'icon';
    font-size: 28px;
    display: inline-block;
}

.consultation_fixed_badge--whatsapp {
    background: #25d366;
    border: 1px solid var(--color4);
    color: #fff;
    text-decoration: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s linear;
}

.consultation_fixed_badge--whatsapp:hover{
    background-color: #1c7f41;
}

.consultation_fixed_badge--whatsapp::before{
    content: '\e924';
}

body.rtl .consultation_fixed_badges {
    left: auto;
    right: 18px;
}

@media (max-width: 575.98px) {
    .consultation_fixed_badges{
    flex-direction: row-reverse;
    justify-content: space-around;
    width: 90%;
    right: 5% !important;
    left: 5% !important;
    border-radius: 50px;
}
}

@media (max-width: 767px) {
    .consultation_modal .modal-dialog {
        margin: 16px;
    }

    .consultation_modal_head {
        padding: 22px 18px 8px;
    }

    .consultation_modal_body {
        padding: 10px 18px 20px;
    }

    .consultation_title {
        font-size: 20px;
    }

    .consultation_fixed_badges {
        right: 9px;
        left: auto;
        bottom: 18px;
    }

    .consultation_fixed_badge {
        height: 55px;
        padding: 0 14px;
        font-size: 16px;
    }
}
