/* =========================================================
   CONTACT PAGE
   ========================================================= */

.contact-page {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 35px 20px 60px;
    direction: rtl;
}


/* =========================================================
   HEADER
   ========================================================= */

.contact-header {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 30px;
    padding: 25px 28px;

    background: #ffffff;
    border: 1px solid #edf1f4;
    border-radius: 16px;

    box-shadow: 0 3px 12px rgba(30, 60, 90, 0.045);
}

.contact-header-icon {
    width: 58px;
    height: 58px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: #eef6ff;
    color: #2878c8;

    font-size: 25px;
}

.contact-header h1 {
    margin: 0 0 7px;

    font-size: 25px;
    font-weight: 800;

    color: #172b4d;
}

.contact-header p {
    margin: 0;

    font-size: 14px;
    line-height: 1.9;

    color: #718096;
}


/* =========================================================
   MAIN CONTAINER
   ========================================================= */

.contact-container {
    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 25px;

    align-items: start;
}


/* =========================================================
   CONTACT INFORMATION
   ========================================================= */

.contact-info {
    padding: 25px;

    background: #ffffff;

    border: 1px solid #edf1f4;
    border-radius: 16px;

    box-shadow: 0 3px 12px rgba(30, 60, 90, 0.04);
}

.section-title {
    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 23px;
}

.title-icon {
    width: 43px;
    height: 43px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #eef6ff;
    color: #2878c8;

    font-size: 19px;
}

.section-title h2 {
    margin: 0 0 4px;

    color: #172b4d;

    font-size: 18px;
    font-weight: 800;
}

.section-title p {
    margin: 0;

    color: #8a96a3;

    font-size: 12px;
}


/* =========================================================
   INFO CARDS
   ========================================================= */

.contact-info-card {
    display: flex;
    align-items: flex-start;

    gap: 14px;

    padding: 16px 0;

    border-bottom: 1px solid #f0f2f4;
}

.contact-info-card:last-of-type {
    border-bottom: none;
}

.info-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 11px;

    background: #f6f9fc;
    color: #2878c8;

    font-size: 17px;
}

.info-content {
    min-width: 0;
}

.info-content h3 {
    margin: 0 0 6px;

    font-size: 14px;
    font-weight: 800;

    color: #263b5a;
}

.info-content p {
    margin: 0;

    font-size: 12px;
    line-height: 1.9;

    color: #748091;
}

.info-content a {
    color: #2878c8;

    font-size: 13px;

    text-decoration: none;

    transition: color 0.2s ease;
}

.info-content a:hover {
    color: #155fa5;
}


/* =========================================================
   SUPPORT BOX
   ========================================================= */

.support-box {
    display: flex;
    align-items: center;

    gap: 13px;

    margin-top: 20px;
    padding: 16px;

    border-radius: 13px;

    background: #f7fbff;
    border: 1px solid #e7f1fb;
}

.support-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e8f3ff;
    color: #2878c8;

    font-size: 18px;
}

.support-box h3 {
    margin: 0 0 5px;

    color: #263b5a;

    font-size: 13px;
    font-weight: 800;
}

.support-box p {
    margin: 0;

    color: #748091;

    font-size: 11px;
    line-height: 1.8;
}


/* =========================================================
   FORM CARD
   ========================================================= */

.contact-form-card {
    padding: 27px;

    background: #ffffff;

    border: 1px solid #edf1f4;
    border-radius: 16px;

    box-shadow: 0 3px 12px rgba(30, 60, 90, 0.04);
}

.form-header {
    display: flex;
    align-items: center;

    gap: 13px;

    padding-bottom: 20px;

    margin-bottom: 22px;

    border-bottom: 1px solid #f0f2f4;
}

.form-header-icon {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 12px;

    background: #eef6ff;
    color: #2878c8;

    font-size: 18px;
}

.form-header h2 {
    margin: 0 0 5px;

    font-size: 18px;
    font-weight: 800;

    color: #172b4d;
}

.form-header p {
    margin: 0;

    font-size: 12px;

    color: #8a96a3;
}


/* =========================================================
   FORM
   ========================================================= */

.contact-form {
    width: 100%;
}

.form-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 17px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 12px;
    font-weight: 700;

    color: #394b63;
}

.form-group label span {
    color: #e05252;
}


/* =========================================================
   INPUTS
   ========================================================= */

.input-wrapper,
.textarea-wrapper {
    position: relative;
}

.input-wrapper i,
.textarea-wrapper i {
    position: absolute;

    right: 14px;
    top: 50%;

    transform: translateY(-50%);

    color: #9aa7b5;

    font-size: 15px;

    pointer-events: none;
}

.textarea-wrapper i {
    top: 19px;

    transform: none;
}

.contact-form input,
.contact-form textarea {
    width: 100%;

    box-sizing: border-box;

    border: 1px solid #e2e8ee;

    border-radius: 10px;

    background: #fbfcfd;

    color: #263b5a;

    font-family: inherit;

    font-size: 12px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.contact-form input {
    height: 46px;

    padding: 0 42px 0 14px;
}

.contact-form textarea {
    min-height: 150px;

    resize: vertical;

    line-height: 1.9;

    padding: 14px 42px 14px 14px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #adb7c2;
}

.contact-form input:focus,
.contact-form textarea:focus {
    background: #ffffff;

    border-color: #7db7e8;

    box-shadow: 0 0 0 3px rgba(40, 120, 200, 0.08);
}


/* =========================================================
   FORM MESSAGES
   ========================================================= */

.messages-container {
    margin-bottom: 20px;
}

.form-message {
    display: flex;
    align-items: center;

    gap: 9px;

    padding: 12px 14px;

    border-radius: 10px;

    font-size: 12px;
}

.form-message-success {
    color: #24734a;

    background: #edf9f2;

    border: 1px solid #d6f0df;
}

.form-message-error {
    color: #a43d3d;

    background: #fff1f1;

    border: 1px solid #f5dada;
}


/* =========================================================
   FORM FOOTER
   ========================================================= */

.form-footer {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    margin-top: 5px;
}

.form-footer p {
    display: flex;
    align-items: center;

    gap: 6px;

    margin: 0;

    color: #8995a2;

    font-size: 11px;
}

.form-footer p i {
    color: #45a36b;

    font-size: 14px;
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.submit-btn {
    min-width: 145px;

    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 0 20px;

    border: none;
    border-radius: 10px;

    background: #2878c8;

    color: #ffffff;

    font-family: inherit;
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.submit-btn:hover {
    background: #1769b6;

    transform: translateY(-1px);

    box-shadow: 0 5px 12px rgba(40, 120, 200, 0.18);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn i {
    font-size: 14px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-info {
        order: 2;
    }

    .contact-form-card {
        order: 1;
    }

}


@media (max-width: 650px) {

    .contact-page {
        padding: 20px 13px 40px;
    }

    .contact-header {
        padding: 20px;

        align-items: flex-start;
    }

    .contact-header-icon {
        width: 48px;
        height: 48px;

        font-size: 20px;
    }

    .contact-header h1 {
        font-size: 20px;
    }

    .contact-header p {
        font-size: 12px;
    }

    .contact-info,
    .contact-form-card {
        padding: 19px;
    }

    .form-row {
        grid-template-columns: 1fr;

        gap: 0;
    }

    .form-footer {
        align-items: stretch;

        flex-direction: column;
    }

    .form-footer p {
        justify-content: center;
    }

    .submit-btn {
        width: 100%;
    }

}