/* ===========================
   CSS Reset & Base Styles
   =========================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; */
    background-color: #f8f9fa;
    color: #1f2937;
    line-height: 1.6;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
li, p {
    font-weight: 400;
}
/* ===========================
   Container & Layout
   =========================== */
.ta_contact_container {
    min-height: 100vh;
    padding: 2rem 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ta_contact_wrapper {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 2rem;
    margin: 0 auto;
}

/* ===========================
   Sidebar Styles
   =========================== */
.ta_contact_sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Info Cards (Email, Address, Working Hours) */
.ta_contact_info_card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ta_contact_info_card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.ta_contact_icon_wrapper {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ta_contact_icon_email {
    background: #EEF2FF;
}

.ta_contact_icon_location {
    background: #EEF2FF;
}

.ta_contact_icon_clock {
    background: #EEF2FF;
}

.ta_contact_icon {
    width: 24px;
    height: 24px;
    color: #6366F1;
}

.ta_contact_info_content {
    flex: 1;
}

.ta_contact_info_title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.25rem;
}

.ta_contact_info_text {
    font-size: 0.875rem;
    color: #464646;
    line-height: 1.5;
}

/* Highlight Cards (Quick Response, Quick Tip) */
.ta_contact_highlight_card {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.ta_contact_highlight_icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ta_contact_tip_icon {
    background: rgba(245, 158, 11, 0.1);
}

.ta_contact_tip_icon .ta_contact_icon {
    color: #f59e0b;
}

.ta_contact_highlight_content {
    flex: 1;
}

.ta_contact_highlight_title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
}

.ta_contact_highlight_text {
    font-size: 0.8125rem;
    color: #4b5563;
    line-height: 1.6;
}

.ta_contact_tip_list {
    list-style: none;
    font-size: 0.8125rem;
    color: #4b5563;
    line-height: 1.8;
}

.ta_contact_tip_list li {
    position: relative;
    padding-left: 1rem;
}

.ta_contact_tip_list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #6366F1;
    font-weight: bold;
}

/* ===========================
   Form Section Styles
   =========================== */
.ta_contact_form_section {
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ta_contact_form_header {
    margin-bottom: 2rem;
}

.ta_contact_form_title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.ta_contact_form_subtitle {
    font-size: 0.9375rem;
    color: #464646;
}

/* Form Styles */
.ta_contact_form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ta_contact_form_row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.ta_contact_form_group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ta_contact_label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.ta_contact_required {
    color: #ef4444;
}

.ta_contact_input_wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.ta_contact_input_icon {
    position: absolute;
    left: 1rem;
    width: 18px;
    height: 18px;
    color: #9ca3af;
    pointer-events: none;
}

.ta_contact_input {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    font-size: 0.9375rem;
    color: #111827;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.ta_contact_input::placeholder {
    color: #9ca3af;
}

.ta_contact_input:focus {
    outline: none;
    background: #ffffff;
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.ta_contact_form_group:not(.ta_contact_form_row .ta_contact_form_group) .ta_contact_input {
    padding-left: 1rem;
}

.ta_contact_textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    color: #111827;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    resize: vertical;
    min-height: 140px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.ta_contact_textarea::placeholder {
    color: #9ca3af;
}

.ta_contact_textarea:focus {
    outline: none;
    background: #ffffff;
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Submit Button */
.ta_contact_submit_btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #6366F1 0%, #4f46e5 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    font-family: inherit;
}

.ta_contact_submit_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
}

.ta_contact_submit_btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.ta_contact_btn_icon {
    width: 18px;
    height: 18px;
}

/* ===========================
   Responsive Design
   =========================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .ta_contact_wrapper {
        grid-template-columns: 320px 1fr;
        gap: 1.5rem;
    }

    .ta_contact_form_section {
        padding: 2rem;
    }

    .ta_contact_info_card,
    .ta_contact_highlight_card {
        padding: 1.25rem;
    }
}

/* Mobile (below 768px) */
@media (max-width: 768px) {
    .ta_contact_container {
        padding: 1.5rem 1rem;
    }

    .ta_contact_wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ta_contact_sidebar {
        order: 2;
    }

    .ta_contact_form_section {
        order: 1;
        padding: 1.5rem;
    }

    .ta_contact_form_title {
        font-size: 1.5rem;
    }

    .ta_contact_form_row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ta_contact_info_card,
    .ta_contact_highlight_card {
        padding: 1.25rem;
    }

    .ta_contact_submit_btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================
   RTL (Right-to-Left) Support
   =========================== */

/* RTL Layout Adjustments */
[lang="ar"] .ta_contact_wrapper {
    direction: rtl;
}

[lang="ar"] .ta_contact_info_card,
[lang="ar"] .ta_contact_highlight_card {
    text-align: right;
}

/* RTL Icon Positioning */
[lang="ar"] .ta_contact_input_icon {
    left: auto;
    right: 1rem;
}

[lang="ar"] .ta_contact_input {
    padding: 0.875rem 2.75rem 0.875rem 1rem;
}

[lang="ar"] .ta_contact_form_group:not(.ta_contact_form_row .ta_contact_form_group) .ta_contact_input {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* RTL List Styling */
[lang="ar"] .ta_contact_tip_list li {
    padding-left: 0;
    padding-right: 1rem;
}

[lang="ar"] .ta_contact_tip_list li::before {
    left: auto;
    right: 0;
}

/* RTL Button Icon Order */
[lang="ar"] .ta_contact_submit_btn {
    flex-direction: row-reverse;
}

/* RTL Text Alignment */
[lang="ar"] .ta_contact_form_header,
[lang="ar"] .ta_contact_label,
[lang="ar"] .ta_contact_input,
[lang="ar"] .ta_contact_textarea {
    text-align: right;
}

/* RTL Placeholder Text */
[lang="ar"] .ta_contact_input::placeholder,
[lang="ar"] .ta_contact_textarea::placeholder {
    text-align: right;
}


/* Small Mobile (below 480px) */
@media (max-width: 480px) {
    .ta_contact_container {
        padding: 1rem 0.75rem;
    }

    .ta_contact_form_section {
        padding: 1.25rem;
        border-radius: 12px;
    }

    .ta_contact_form_title {
        font-size: 1.375rem;
    }

    .ta_contact_form_subtitle {
        font-size: 0.875rem;
    }

    .ta_contact_info_card,
    .ta_contact_highlight_card {
        padding: 1rem;
    }

    .ta_contact_icon_wrapper {
        width: 40px;
        height: 40px;
    }

    .ta_contact_icon {
        width: 20px;
        height: 20px;
    }

    .ta_contact_input,
    .ta_contact_textarea {
        font-size: 0.875rem;
    }
}
