.qm-contact {
    background: #fff;
    color: #2d3137;
    font-family: Cairo, Tahoma, sans-serif;
    padding-bottom: 56px;
}

.qm-contact h1,
.qm-contact h2,
.qm-contact h3,
.qm-contact p,
.qm-contact a,
.qm-contact label,
.qm-contact input,
.qm-contact select,
.qm-contact textarea,
.qm-contact button {
    font-family: Cairo, Tahoma, sans-serif;
}

.qm-contact-banner {
    position: relative;
    overflow: hidden;
    background: #fff;
    margin-bottom: 18px;
}

.qm-contact-banner-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 58%;
    min-height: 470px;
    margin-inline-end: auto;
    padding: 28px 0;
    text-align: start;
}

.qm-contact-banner-title {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
}

.qm-contact-banner h6 {
    margin: 0 0 12px;
    color: #6c7480;
    font-size: 16px;
    font-weight: 400;
}

.qm-contact-banner h6 span {
    display: inline-block;
    width: 50px;
    height: 2px;
    margin-inline-end: 15px;
    background: #ffb819;
    vertical-align: middle;
}

.qm-contact-banner h1 {
    margin: 0;
    color: #ce021d;
    font-size: 52px;
    font-weight: 900;
    line-height: 1.15;
}

.qm-contact-crumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 28px 0 0;
    padding: 10px 15px;
    list-style: none;
    border-radius: 7px;
    background: #edf5ff;
}

.qm-contact-crumbs a {
    color: #ce021d;
    text-decoration: none;
}

.qm-contact-crumbs li + li::before {
    color: #7b94b5;
    content: "/";
}

.qm-contact-crumbs li:last-child a {
    color: #7b94b5;
}

.qm-contact-banner-art {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 42%;
    overflow: hidden;
}

html[dir="rtl"] .qm-contact-banner-art {
    right: auto;
    left: 0;
    border-radius: 0 0 80px 0;
}

html[dir="ltr"] .qm-contact-banner-art {
    right: 0;
    left: auto;
    border-radius: 0 0 0 80px;
}

.qm-contact-banner-art img {
    display: block;
    width: 100%;
    height: 470px;
    object-fit: cover;
    object-position: center;
}

html[dir="rtl"] .qm-contact-banner-art img {
    border-radius: 0 0 80px 0;
}

html[dir="ltr"] .qm-contact-banner-art img {
    border-radius: 0 0 0 80px;
}

.qm-contact-intro,
.qm-contact-form-wrap,
.qm-contact-map {
    text-align: start;
}

.qm-contact-intro h2,
.qm-contact-form-wrap h3,
.qm-contact-map h3 {
    margin: 0 0 10px;
    color: #2d3137;
    font-size: 32px;
    font-weight: 700;
}

.qm-contact-intro p,
.qm-contact-form-wrap > p,
.qm-contact-map p {
    max-width: 920px;
    margin: 0 0 18px;
    color: #2d3137;
    font-size: 16px;
    line-height: 1.9;
}

.qm-contact-intro a {
    color: #ce021d;
    font-weight: 700;
    text-decoration: none;
}

.qm-contact-reach {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px;
    margin: 8px 0 36px;
}

.qm-contact .qm-contact-intro a.qm-contact-chat {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    direction: ltr;
    gap: 12px;
    padding: 3px 18px 3px 3px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 100px;
    background: #25d366;
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
    transition: transform 0.4s ease-in-out, box-shadow 0.4s ease-in-out;
}

.qm-contact .qm-contact-intro a.qm-contact-chat::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, #000, #000, #000);
    animation: qm-chat-rotate 4s linear infinite;
    z-index: -2;
}

.qm-contact .qm-contact-intro a.qm-contact-chat::after {
    content: "";
    position: absolute;
    inset: 2px;
    border-radius: inherit;
    background: #cc0000;
    z-index: -1;
}

.qm-contact .qm-contact-intro a.qm-contact-chat .qm-contact-chat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 100px 0 0 100px;
    border-right: 2px solid #000;
    background: #25d366;
    color: #fff !important;
    font-size: 18px;
    line-height: 1;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 10px #25d366;
    animation: qm-chat-pulse 1.5s linear infinite;
}

.qm-contact .qm-contact-intro a.qm-contact-chat .qm-contact-chat-icon i,
.qm-contact .qm-contact-intro a.qm-contact-chat .qm-contact-chat-text {
    color: #fff !important;
}

.qm-contact .qm-contact-intro a.qm-contact-chat .qm-contact-chat-text {
    position: relative;
    z-index: 2;
    font-weight: 600;
}

.qm-contact .qm-contact-intro a.qm-contact-chat:hover,
.qm-contact .qm-contact-intro a.qm-contact-chat:focus {
    color: #fff !important;
    text-decoration: none;
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.2);
}

@keyframes qm-chat-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes qm-chat-pulse {
    0% {
        box-shadow: 0 0 5px #25d366;
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px #25d366;
        transform: scale(1.1);
    }
    100% {
        box-shadow: 0 0 5px #25d366;
        transform: scale(1);
    }
}

.qm-contact-lines {
    display: flex !important;
    flex-direction: column !important;
    direction: ltr !important;
    align-items: flex-start !important;
    float: none !important;
    gap: 8px;
    text-align: left !important;
}

.qm-contact-lines a,
.qm-contact-lines bdi {
    direction: ltr !important;
    unicode-bidi: isolate !important;
}

.qm-contact-lines a {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    float: none !important;
    color: #2d3137;
    text-decoration: none;
    white-space: nowrap;
}

.qm-contact-phone {
    order: 1;
}

.qm-contact-mail {
    order: 2;
}

.qm-contact-lines i {
    color: #ce021d;
    margin: 0 8px 0 0;
}

.qm-contact-form {
    position: relative;
    background: #f3f8ff;
    border-radius: 28px;
    padding: 28px 22px 22px;
}

.qm-contact-hp {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

.qm-contact-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
    align-items: start;
}

.qm-field {
    min-width: 0;
    float: none !important;
}

.qm-field-wide {
    grid-column: 1 / -1;
}

.qm-field label {
    display: block !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 8px !important;
    color: #2d3137 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-align: start;
}

.qm-field label span {
    color: #ce021d;
}

.qm-contact-grid input,
.qm-contact-grid select,
.qm-contact-grid textarea {
    display: block !important;
    width: 100% !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    box-sizing: border-box;
    float: none !important;
    margin: 0 !important;
    border: 1px solid #9eb0c8 !important;
    border-radius: 6px !important;
    background: #fff !important;
    background-image: none !important;
    box-shadow: none !important;
    padding: 10px 14px !important;
    line-height: 1.4 !important;
    color: #2d3137 !important;
    font-size: 16px !important;
    opacity: 1 !important;
    appearance: auto;
}

.qm-contact-grid textarea {
    height: 160px !important;
    min-height: 160px !important;
    max-height: none !important;
    resize: vertical;
}

.qm-subject {
    position: relative;
}

.qm-subject-native.is-replaced {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    min-height: 0 !important;
    max-height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

.qm-subject-btn {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    height: 48px !important;
    margin: 0;
    border: 1px solid #9eb0c8 !important;
    border-radius: 6px;
    background: #fff !important;
    background-image: none !important;
    color: #2d3137 !important;
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 400;
    text-align: start;
    cursor: pointer;
}

.qm-subject-btn i {
    color: #6c7480;
    font-size: 12px;
}

.qm-subject-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    margin: 0 !important;
    padding: 6px 0 !important;
    list-style: none;
    border: 1px solid #9eb0c8;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 32, 48, 0.12);
    max-height: 280px;
    overflow: auto;
}

.qm-subject-menu li {
    margin: 0;
    padding: 10px 14px;
    color: #2d3137;
    font-size: 16px;
    line-height: 1.5;
    text-align: start;
    cursor: pointer;
}

.qm-subject-menu li:hover,
.qm-subject-menu li.is-on {
    background: #eceff3;
}

.qm-contact-form button[type="submit"] {
    display: block;
    margin-top: 16px;
    margin-inline-start: auto;
    border: 0;
    border-radius: 6px;
    background: #ce021d;
    color: #fff;
    padding: 10px 28px;
    font-size: 16px;
    font-weight: 700;
}

html[dir="rtl"] .qm-contact-form button[type="submit"] {
    margin-inline-start: 0;
    margin-inline-end: auto;
}

.qm-contact-form button[type="submit"]:hover {
    background: #a80118;
}

.qm-contact-sent,
.qm-contact-error {
    padding: 10px 14px;
    border-radius: 8px;
}

.qm-contact-sent {
    background: #e8f7ee;
    color: #146c36;
}

.qm-contact-error {
    background: #fde8ea;
    color: #9d1020;
}

.qm-contact-map {
    margin-top: 36px;
}

.qm-contact-map a {
    color: #ce021d;
}

.qm-contact-frame {
    overflow: hidden;
    border-radius: 16px;
    background: #eef3f8;
}

.qm-contact-frame iframe {
    display: block;
    width: 100%;
    height: 360px;
    border: 0;
}

.qm-contact-wa {
    position: fixed;
    z-index: 40;
    bottom: 18px;
    inset-inline-start: 18px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    text-align: center;
    line-height: 52px;
    font-size: 28px;
}

.qm-contact-wa:hover {
    color: #fff;
}

@media (max-width: 767px) {
    .qm-contact-banner-copy,
    .qm-contact-banner-art {
        width: 100%;
        position: static;
    }

    .qm-contact-banner-copy {
        min-height: 0;
    }

    .qm-contact-banner h1 {
        font-size: 34px;
    }

    .qm-contact-banner-art,
    .qm-contact-banner-art img {
        position: static;
        width: 100%;
        height: 220px;
        border-radius: 0;
    }

    .qm-contact-grid {
        grid-template-columns: 1fr !important;
    }

    .qm-contact-reach {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .qm-contact-lines {
        align-items: center !important;
        text-align: center !important;
    }

    .qm-contact-intro h2,
    .qm-contact-form-wrap h3,
    .qm-contact-map h3 {
        font-size: 26px;
    }
}
