/* ==========================================================
   QanoonMarkaz
   Contact Us Page
   ========================================================== */


/* ==========================================================
   Main Page
   ========================================================== */

.qm-contact-page {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* ==========================================================
   Contact Hero Banner
   ========================================================== */

.qm-contact-hero {
    width: 100%;
    margin: 0;
    padding: 0;

    overflow: hidden;
    line-height: 0;
}

.qm-contact-hero img {
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;

    margin: 0;
    padding: 0;

    object-fit: cover;
}


/* ==========================================================
   Main Container
   ========================================================== */

.qm-contact-container {
    width: 90%;
    max-width: 1200px;

    margin: 0 auto;
    padding: 45px 0 60px;

    box-sizing: border-box;
}


/* ==========================================================
   Introduction
   ========================================================== */

.qm-contact-intro {
    width: 100%;
    margin-bottom: 35px;

    text-align: center;
}

.qm-contact-intro h1 {
    margin: 0 0 15px;

    color: #000e36;

    font-family: Arial, sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.4;
}

.qm-contact-intro h1::after {
    content: "";

    display: block;

    width: 70px;
    height: 3px;

    margin: 12px auto 0;

    background: #e0a800;
}

.qm-contact-intro p {
    max-width: 850px;

    margin: 20px auto 0;

    color: #555555;

    font-family: Arial, sans-serif;
    font-size: 18px;
    line-height: 1.8;

    text-align: center;
}


/* ==========================================================
   Contact Information
   ========================================================== */

.qm-contact-information {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;

    width: 100%;

    margin-bottom: 40px;
}


/* ==========================================================
   Contact Box
   ========================================================== */

.qm-contact-box {
    padding: 30px 25px;

    background: #ffffff;

    border: 1px solid #dddddd;
    border-top: 4px solid #000e36;

    border-radius: 6px;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);

    box-sizing: border-box;

    text-align: center;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.qm-contact-box:hover {
    transform: translateY(-3px);

    border-top-color: #e0a800;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.10);
}


/* ==========================================================
   Contact Icon
   ========================================================== */

.qm-contact-icon {
    width: 65px;
    height: 65px;

    margin: 0 auto 18px;

    display: flex;

    align-items: center;
    justify-content: center;

    background: #000e36;

    color: #e0a800;

    border-radius: 50%;

    font-size: 27px;
}


/* ==========================================================
   Contact Box Heading
   ========================================================== */

.qm-contact-box h2 {
    margin: 0 0 12px;

    color: #000e36;

    font-family: Arial, sans-serif;
    font-size: 23px;
    font-weight: 700;

    line-height: 1.4;
}


/* ==========================================================
   Contact Box Paragraph
   ========================================================== */

.qm-contact-box p {
    min-height: 82px;

    margin: 0 0 20px;

    color: #555555;

    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;

    text-align: center;
}


/* ==========================================================
   Contact Button
   ========================================================== */

.qm-contact-button {
    display: inline-block;

    padding: 10px 22px;

    background: #000e36;

    color: #ffffff;

    border: 1px solid #000e36;
    border-radius: 4px;

    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.qm-contact-button:hover {
    background: #e0a800;

    color: #000e36;

    border-color: #e0a800;
}


/* ==========================================================
   Contact Message
   ========================================================== */

.qm-contact-message {
    width: 100%;

    margin-bottom: 35px;
    padding: 30px 35px;

    background: #f7f7f7;

    border-left: 5px solid #e0a800;

    box-sizing: border-box;
}

.qm-contact-message h2 {
    margin: 0 0 15px;

    color: #000e36;

    font-family: Arial, sans-serif;
    font-size: 27px;
    font-weight: 700;

    line-height: 1.5;
}

.qm-contact-message p {
    margin: 0 0 15px;

    color: #444444;

    font-family: Arial, sans-serif;
    font-size: 17px;
    line-height: 1.8;

    text-align: justify;
}

.qm-contact-message p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   WhatsApp Section
   ========================================================== */

.qm-contact-whatsapp {
    width: 100%;

    padding: 35px;

    background: #000e36;

    border-radius: 6px;

    box-sizing: border-box;

    text-align: center;
}

.qm-contact-whatsapp h2 {
    margin: 0 0 12px;

    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;

    line-height: 1.5;
}

.qm-contact-whatsapp p {
    max-width: 750px;

    margin: 0 auto 22px;

    color: #ffffff;

    font-family: Arial, sans-serif;
    font-size: 17px;
    line-height: 1.8;
}

.qm-contact-whatsapp-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 12px 25px;

    background: #e0a800;

    color: #000e36;

    border: 1px solid #e0a800;
    border-radius: 4px;

    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;

    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.qm-contact-whatsapp-button:hover {
    background: #ffffff;

    color: #000e36;

    border-color: #ffffff;
}


/* ==========================================================
   Tablet
   ========================================================== */

@media (max-width: 900px) {

    .qm-contact-container {
        width: 92%;
    }

    .qm-contact-information {
        grid-template-columns: 1fr 1fr;
    }

    .qm-contact-box:last-child {
        grid-column: 1 / -1;
        max-width: 500px;
        width: 100%;
        margin: 0 auto;
    }

}


/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 600px) {

    .qm-contact-container {
        width: 94%;

        padding-top: 30px;
        padding-bottom: 40px;
    }

    .qm-contact-intro h1 {
        font-size: 28px;
    }

    .qm-contact-intro p {
        font-size: 16px;
        line-height: 1.8;
    }

    .qm-contact-information {
        grid-template-columns: 1fr;

        gap: 20px;
    }

    .qm-contact-box:last-child {
        grid-column: auto;

        max-width: none;
    }

    .qm-contact-box {
        padding: 25px 20px;
    }

    .qm-contact-box p {
        min-height: auto;
    }

    .qm-contact-message {
        padding: 25px 20px;
    }

    .qm-contact-message h2 {
        font-size: 23px;
    }

    .qm-contact-message p {
        font-size: 16px;
        line-height: 1.8;
    }

    .qm-contact-whatsapp {
        padding: 28px 20px;
    }

    .qm-contact-whatsapp h2 {
        font-size: 24px;
    }

    .qm-contact-whatsapp p {
        font-size: 16px;
    }

    .qm-contact-whatsapp-button {
        width: 100%;
        box-sizing: border-box;
    }

}
/* ==========================================================
   QanoonMarkaz Contact Page
   Additional Sections
   ========================================================== */


/* ==========================================================
   Section Heading
   ========================================================== */

.qm-contact-section-heading {
    text-align: center;
    margin-bottom: 35px;
}

.qm-contact-section-heading h2 {
    margin: 0 0 10px;
    color: #000e36;
    font-size: 30px;
    font-weight: 700;
}

.qm-contact-section-heading p {
    max-width: 750px;
    margin: 0 auto;
    color: #666;
    font-size: 16px;
    line-height: 1.7;
}


/* ==========================================================
   Our Team
   ========================================================== */

.qm-contact-team {
    margin-top: 60px;
    padding: 50px 0;
}

.qm-contact-team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.qm-contact-team-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qm-contact-team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.10);
}

.qm-contact-team-image {
    width: 100%;
    height: 230px;
    overflow: hidden;
    background: #f4f4f4;
}

.qm-contact-team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qm-contact-team-content {
    padding: 22px 20px 25px;
}

.qm-contact-team-content h3 {
    margin: 0 0 7px;
    color: #000e36;
    font-size: 21px;
}

.qm-contact-team-content span {
    display: block;
    margin-bottom: 12px;
    color: #e0a800;
    font-size: 14px;
    font-weight: 600;
}

.qm-contact-team-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
}


/* ==========================================================
   Contact Form
   ========================================================== */

.qm-contact-form-section {
    margin-top: 30px;
    padding: 55px 0;
    background: #f7f8fa;
}

.qm-contact-form-wrapper {
    max-width: 850px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}


/* ==========================================================
   Office
   ========================================================== */

.qm-contact-office {
    padding: 60px 0;
}

.qm-contact-office-grid {
    display: grid;
    grid-template-columns: 35% 65%;
    gap: 25px;
    align-items: stretch;
}

.qm-contact-office-address {
    padding: 35px;
    background: #000e36;
    color: #fff;
    border-radius: 8px;
}

.qm-contact-office-icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    background: #e0a800;
    color: #000e36;
    border-radius: 50%;
    font-size: 23px;
}

.qm-contact-office-address h3 {
    margin: 0 0 15px;
    color: #fff;
    font-size: 24px;
}

.qm-contact-office-address p {
    margin: 0 0 25px;
    color: #fff;
    line-height: 1.8;
}

.qm-contact-office-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 15px;
    color: #fff;
    font-size: 15px;
}

.qm-contact-office-detail i {
    width: 20px;
    color: #e0a800;
    text-align: center;
}

.qm-contact-office-map {
    min-height: 400px;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.qm-contact-office-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: 0;
}


/* ==========================================================
   Related Sections
   ========================================================== */

.qm-contact-related {
    padding: 60px 0;
    background: #f7f8fa;
}

.qm-contact-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.qm-contact-related-card {
    padding: 35px 25px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.qm-contact-related-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
}

.qm-contact-related-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: #000e36;
    color: #e0a800;
    border-radius: 50%;
    font-size: 26px;
}

.qm-contact-related-card h3 {
    margin: 0 0 12px;
    color: #000e36;
    font-size: 21px;
}

.qm-contact-related-card p {
    margin: 0 0 20px;
    color: #666;
    line-height: 1.7;
    font-size: 14px;
}

.qm-contact-related-card a {
    display: inline-block;
    padding: 10px 20px;
    background: #000e36;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.qm-contact-related-card a:hover {
    background: #e0a800;
    color: #000e36;
}


/* ==========================================================
   Our Services
   ========================================================== */

.qm-contact-services {
    padding: 60px 0;
}

.qm-contact-services-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
}

.qm-contact-service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 130px;
    padding: 20px 12px;
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 7px;
    color: #000e36;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.qm-contact-service-card i {
    margin-bottom: 12px;
    color: #e0a800;
    font-size: 28px;
}

.qm-contact-service-card span {
    font-size: 15px;
    font-weight: 600;
}

.qm-contact-service-card:hover {
    background: #000e36;
    border-color: #000e36;
    color: #fff;
    transform: translateY(-4px);
}

.qm-contact-service-card:hover i {
    color: #e0a800;
}


/* ==========================================================
   Policies
   ========================================================== */

.qm-contact-policies {
    padding: 55px 0;
    background: #f7f8fa;
}

.qm-contact-policy-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.qm-contact-policy-links a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 22px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #000e36;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.qm-contact-policy-links a i {
    color: #e0a800;
}

.qm-contact-policy-links a:hover {
    background: #000e36;
    border-color: #000e36;
    color: #fff;
}


/* ==========================================================
   Other Channels
   ========================================================== */

.qm-contact-channels {
    padding: 60px 0 20px;
}

.qm-contact-channel-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.qm-contact-channel-links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 135px;
    justify-content: center;
    padding: 13px 20px;
    background: #000e36;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.qm-contact-channel-links a i {
    color: #e0a800;
    font-size: 17px;
}

.qm-contact-channel-links a:hover {
    background: #e0a800;
    color: #000e36;
}

.qm-contact-channel-links a:hover i {
    color: #000e36;
}


/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 992px) {

    .qm-contact-team-grid,
    .qm-contact-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .qm-contact-services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .qm-contact-office-grid {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 768px) {

    .qm-contact-team-grid,
    .qm-contact-related-grid {
        grid-template-columns: 1fr;
    }

    .qm-contact-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .qm-contact-form-wrapper {
        padding: 20px;
    }

    .qm-contact-section-heading h2 {
        font-size: 25px;
    }

}


@media (max-width: 480px) {

    .qm-contact-services-grid {
        grid-template-columns: 1fr;
    }

    .qm-contact-policy-links,
    .qm-contact-channel-links {
        flex-direction: column;
        align-items: stretch;
    }

    .qm-contact-policy-links a,
    .qm-contact-channel-links a {
        justify-content: center;
    }

}
/* ==========================================================
   QanoonMarkaz Contact Form
   Native PHP Contact Form
   ========================================================== */

.qm-contact-form-section {
    margin-top: 60px;
    padding: 55px 0;
}


/* ==========================================================
   Form Container
   ========================================================== */

.qm-contact-form {
    max-width: 900px;
    margin: 0 auto;
    padding: 35px;
    background: #ffffff;
    border: 1px solid #e2e2e2;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
}


/* ==========================================================
   Form Rows
   ========================================================== */

.qm-contact-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 20px;
}


/* ==========================================================
   Form Fields
   ========================================================== */

.qm-contact-form-field {
    width: 100%;
}

.qm-contact-form-full {
    margin-bottom: 20px;
}


.qm-contact-form-field label {
    display: block;
    margin-bottom: 8px;
    color: #000e36;
    font-size: 15px;
    font-weight: 600;
}


.qm-contact-form-field label span {
    color: #e0a800;
}


/* ==========================================================
   Inputs
   ========================================================== */

.qm-contact-form-field input[type="text"],
.qm-contact-form-field input[type="email"],
.qm-contact-form-field input[type="tel"],
.qm-contact-form-field select,
.qm-contact-form-field textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #d7d7d7;
    border-radius: 5px;
    background: #ffffff;
    color: #333333;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.5;
    box-sizing: border-box;
    transition: border-color 0.25s ease,
                box-shadow 0.25s ease;
}


/* ==========================================================
   Textarea
   ========================================================== */

.qm-contact-form-field textarea {
    min-height: 160px;
    resize: vertical;
}


/* ==========================================================
   Placeholder
   ========================================================== */

.qm-contact-form-field input::placeholder,
.qm-contact-form-field textarea::placeholder {
    color: #999999;
}


/* ==========================================================
   Focus
   ========================================================== */

.qm-contact-form-field input:focus,
.qm-contact-form-field select:focus,
.qm-contact-form-field textarea:focus {
    border-color: #000e36;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 14, 54, 0.08);
}


/* ==========================================================
   Consent
   ========================================================== */

.qm-contact-form-consent {
    margin-top: 10px;
    margin-bottom: 25px;
}


.qm-contact-form-consent label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #555555;
    font-size: 13px;
    line-height: 1.6;
    cursor: pointer;
}


.qm-contact-form-consent input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #000e36;
}


/* ==========================================================
   Submit Button
   ========================================================== */

.qm-contact-form-submit {
    text-align: center;
}


.qm-contact-form-submit button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-width: 180px;
    padding: 13px 28px;
    border: 0;
    border-radius: 5px;
    background: #000e36;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.25s ease,
                color 0.25s ease,
                transform 0.25s ease;
}


.qm-contact-form-submit button i {
    color: #e0a800;
}


.qm-contact-form-submit button:hover {
    background: #e0a800;
    color: #000e36;
    transform: translateY(-2px);
}


.qm-contact-form-submit button:hover i {
    color: #000e36;
}


/* ==========================================================
   Validation / Error States
   ========================================================== */

.qm-contact-form-field input:invalid:not(:placeholder-shown),
.qm-contact-form-field textarea:invalid:not(:placeholder-shown),
.qm-contact-form-field select:invalid {
    border-color: #d7d7d7;
}


/* ==========================================================
   Tablet
   ========================================================== */

@media (max-width: 768px) {

    .qm-contact-form-section {
        padding: 40px 15px;
    }

    .qm-contact-form {
        padding: 25px;
    }

    .qm-contact-form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    .qm-contact-form-row .qm-contact-form-field {
        margin-bottom: 20px;
    }

}


/* ==========================================================
   Mobile
   ========================================================== */

@media (max-width: 480px) {

    .qm-contact-form-section {
        padding: 35px 12px;
    }

    .qm-contact-form {
        padding: 20px 16px;
        border-radius: 6px;
    }

    .qm-contact-form-field label {
        font-size: 14px;
    }

    .qm-contact-form-field input[type="text"],
    .qm-contact-form-field input[type="email"],
    .qm-contact-form-field input[type="tel"],
    .qm-contact-form-field select,
    .qm-contact-form-field textarea {
        padding: 12px;
        font-size: 15px;
    }

    .qm-contact-form-submit button {
        width: 100%;
    }

}

/* ==========================================================
   Contact Form Status Messages
   ========================================================== */

.qm-contact-form-success,
.qm-contact-form-error {
    margin-bottom: 25px;
    padding: 18px 20px;
    border-radius: 6px;
    line-height: 1.6;
}

.qm-contact-form-success {
    border-left: 4px solid #e0a800;
    background: #f5f8f3;
    color: #000e36;
}

.qm-contact-form-success i {
    margin-right: 8px;
    color: #e0a800;
}

.qm-contact-form-success strong {
    font-size: 16px;
}

.qm-contact-form-success p {
    margin: 8px 0 0;
    color: #555;
    font-size: 14px;
}

.qm-contact-form-error {
    border-left: 4px solid #000e36;
    background: #f7f7f7;
    color: #000e36;
    font-size: 14px;
}

.qm-contact-form-error i {
    margin-right: 8px;
    color: #e0a800;
}