:root {
    --bg-dark: #07142b;
    --bg-dark-2: #0c1d3c;
    --gold: #c79a4a;
    --gold-dark: #b68b40;
    --text-dark: #1d2430;
    --text-muted: #7d8595;
    --text-light: #eef3fb;
    --white: #ffffff;
    --offwhite: #f7f8fb;
    --section-gray: #f1f2f5;
    --line: rgba(0, 0, 0, 0.08);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    --radius: 20px;
    --container: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.logout-form {
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.admin-header-link,
.admin-logout-btn {
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

.admin-header-link {
    background: #eef2ff;
    color: #1d4ed8;
    border-color: #c7d2fe;
}

    .admin-header-link:hover {
        background: #dbeafe;
        color: #1e40af;
    }

.admin-logout-btn {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
    cursor: pointer;
}

    .admin-logout-btn:hover {
        background: #ffe4e6;
        color: #9f1239;
    }

@media (max-width: 768px) {
    .admin-header-link,
    .admin-logout-btn {
        height: 38px;
        padding: 0 12px;
        font-size: 0.88rem;
    }
}

body {
    margin: 0;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    font-family: "Inter", "Cairo", sans-serif;
    transition: background-color .25s ease, color .25s ease;
}

    body.rtl {
        font-family: "Cairo", "Inter", sans-serif;
    }

    body.modal-open {
        overflow: hidden;
    }

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
textarea,
select {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 1000;
    padding: 14px 0;
    transition: background .35s ease, box-shadow .35s ease, backdrop-filter .35s ease, border-color .35s ease, color .25s ease;
}

body.header-on-dark .site-header {
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

body.header-on-light .site-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    line-height: 1;
}

.brand-main {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gold);
    letter-spacing: -0.03em;
}

.brand-sub {
    margin-top: 4px;
    font-size: .62rem;
    letter-spacing: 0.14em;
    transition: color .25s ease;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 34px;
}

.nav-link {
    font-size: .95rem;
    font-weight: 500;
    transition: .25s ease;
}

    .nav-link:hover {
        color: var(--gold);
    }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switch,
.theme-toggle,
.nav-toggle {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    cursor: pointer;
    transition: .25s ease;
}

.lang-switch {
    font-weight: 600;
}

body.header-on-dark .nav-link {
    color: rgba(255, 255, 255, 0.88);
}

body.header-on-dark .brand-sub {
    color: rgba(255, 255, 255, 0.65);
}

body.header-on-dark .lang-switch,
body.header-on-dark .theme-toggle,
body.header-on-dark .nav-toggle {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

    body.header-on-dark .lang-switch:hover,
    body.header-on-dark .theme-toggle:hover,
    body.header-on-dark .nav-toggle:hover {
        background: rgba(255, 255, 255, 0.12);
    }

body.header-on-light .nav-link {
    color: #273142;
}

body.header-on-light .brand-sub {
    color: rgba(39, 49, 66, 0.55);
}

body.header-on-light .lang-switch,
body.header-on-light .theme-toggle,
body.header-on-light .nav-toggle {
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.04);
    color: #273142;
}

    body.header-on-light .lang-switch:hover,
    body.header-on-light .theme-toggle:hover,
    body.header-on-light .nav-toggle:hover {
        background: rgba(0, 0, 0, 0.08);
    }

.nav-toggle {
    display: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    transition: .25s ease;
}

.btn-gold {
    background: var(--gold);
    color: white;
    box-shadow: 0 12px 24px rgba(199, 154, 74, 0.25);
}

    .btn-gold:hover {
        background: var(--gold-dark);
        transform: translateY(-1px);
    }

.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.55);
    color: white;
    background: transparent;
}

    .btn-outline-light:hover {
        background: rgba(255,255,255,0.08);
    }

.btn-full {
    width: 100%;
}

/* Sections */
.section {
    padding: 110px 0;
}

.section-light {
    background: var(--section-gray);
}

.section-white {
    background: var(--white);
}

.section-heading {
    margin-bottom: 48px;
}

    .section-heading.center {
        text-align: center;
    }

    .section-heading h2 {
        margin: 0 0 10px;
        font-size: clamp(2rem, 4vw, 3.3rem);
        line-height: 1.1;
        color: var(--gold);
        font-weight: 800;
        letter-spacing: -0.03em;
    }

    .section-heading p {
        margin: 0;
        color: #8c93a2;
        font-size: 1.05rem;
    }

/* Footer */
.site-footer {
    background: #f8f8fa;
    padding-top: 72px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.8fr 0.8fr 0.8fr;
    gap: 48px;
    padding-bottom: 44px;
}

.footer-brand .brand-sub {
    color: rgba(30, 36, 48, 0.45);
}

.footer-text {
    color: #767d8d;
    max-width: 260px;
    margin-top: 18px;
}

.footer-title {
    margin: 0 0 18px;
    font-size: 1.1rem;
    color: #1f2430;
}

.footer-links,
.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

    .footer-links li,
    .footer-contact li {
        margin-bottom: 12px;
        color: #788092;
    }

    .footer-links a:hover {
        color: var(--gold);
    }

.social-links {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 18px;
}

    .social-links a {
        color: #6b7280;
        font-size: 1.2rem;
        transition: .25s ease;
    }

        .social-links a:hover {
            color: var(--gold);
        }

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.06);
    padding: 22px 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: #8c93a2;
    font-size: .95rem;
}

.footer-bottom-links {
    display: flex;
    gap: 22px;
}

    .footer-bottom-links a:hover {
        color: var(--gold);
    }

/* RTL */
body.rtl .nav-wrap,
body.rtl .footer-bottom,
body.rtl .footer-grid {
    direction: rtl;
}

body.rtl .main-nav {
    direction: rtl;
}

body.rtl .section-heading.center {
    text-align: center;
}

body.rtl .footer-links,
body.rtl .footer-contact,
body.rtl .footer-text {
    text-align: right;
}

/* Light mode */
body.light-mode {
    background: #ffffff;
    color: var(--text-dark);
}

/* Dark mode */
body.dark-mode {
    background: #07142b;
    color: #eef3fb;
}

    body.dark-mode .section-light {
        background: #0d1b35;
    }

    body.dark-mode .section-white {
        background: #09162c;
    }

    body.dark-mode .section-heading p,
    body.dark-mode .footer-text,
    body.dark-mode .footer-links li,
    body.dark-mode .footer-contact li,
    body.dark-mode .footer-bottom {
        color: rgba(230,236,247,0.72);
    }

    body.dark-mode .site-footer {
        background: #081327;
        border-top-color: rgba(255,255,255,0.06);
    }

    body.dark-mode .footer-title,
    body.dark-mode .footer-links a,
    body.dark-mode .footer-bottom-links a {
        color: #eef3fb;
    }

    body.dark-mode .footer-brand .brand-sub {
        color: rgba(255,255,255,0.45);
    }

    body.dark-mode .social-links a {
        color: rgba(255,255,255,0.75);
    }

        body.dark-mode .social-links a:hover {
            color: var(--gold);
        }

    body.dark-mode .footer-bottom {
        border-top-color: rgba(255,255,255,0.06);
    }

    body.dark-mode.header-on-dark .site-header {
        background: transparent;
        box-shadow: none;
    }

    body.dark-mode.header-on-light .site-header {
        background: rgba(5, 14, 30, 0.92);
        box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    }

    body.dark-mode.header-on-light .nav-link {
        color: #eef3fb;
    }

    body.dark-mode.header-on-light .brand-sub {
        color: rgba(255,255,255,0.55);
    }

    body.dark-mode.header-on-light .lang-switch,
    body.dark-mode.header-on-light .theme-toggle,
    body.dark-mode.header-on-light .nav-toggle {
        border: 1px solid rgba(255,255,255,0.14);
        background: rgba(255,255,255,0.05);
        color: #fff;
    }
/* ===== intl-tel-input final clean fix ===== */
.form-group select,
.contact-page-field select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

/* Dark mode selects — صفحة الـ contact فقط (مش المودال) */
body.dark-mode .contact-page-field select {
    background-color: #1b2a4a !important;
    color: #eef3fb !important;
    border-color: rgba(255,255,255,0.10) !important;
}

    body.dark-mode .contact-page-field select option {
        background-color: #162544 !important;
        color: #eef3fb !important;
    }

        body.dark-mode .contact-page-field select option[value=""] {
            color: rgba(238,243,251,0.82) !important;
        }

/* intl-tel-input */
.form-group .iti,
.contact-page-field .iti,
.modal-form-grid .iti,
.contact-form-grid .iti {
    width: 100%;
    position: relative;
}

    .form-group .iti input,
    .form-group .iti input[type="tel"],
    .contact-page-field .iti input,
    .contact-page-field .iti input[type="tel"],
    .modal-form-grid .iti input,
    .modal-form-grid .iti input[type="tel"],
    .contact-form-grid .iti input,
    .contact-form-grid .iti input[type="tel"],
    #phoneInput,
    #phoneInputHome,
    #phoneInputModal {
        width: 100% !important;
        box-sizing: border-box;
        direction: ltr !important;
        text-align: left !important;
        padding-left: 108px !important;
        padding-right: 14px !important;
        color: var(--text-dark) !important;
        background-color: #ffffff !important;
        border: 1px solid #d9dfe8 !important;
        border-radius: 12px !important;
    }

/* Dark mode phone inputs — صفحة الـ contact والـ home فقط (مش المودال) */
body.dark-mode .contact-page-field .iti input,
body.dark-mode .contact-page-field .iti input[type="tel"],
body.dark-mode #phoneInput,
body.dark-mode #phoneInputHome {
    color: #eef3fb !important;
    background-color: #1b2a4a !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
}

.iti--separate-dial-code .iti__selected-flag {
    background: transparent !important;
    padding-left: 12px !important;
    padding-right: 10px !important;
}

.iti__country-container {
    z-index: 20 !important;
}

.iti__selected-country,
.iti__selected-flag,
.iti__flag-container {
    cursor: pointer !important;
    pointer-events: auto !important;
}

.iti__selected-flag {
    z-index: 5;
}

.iti__flag-container {
    z-index: 6;
}

.iti__selected-dial-code {
    color: var(--text-dark) !important;
    opacity: 1 !important;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 4px;
    margin-right: 2px;
}

/* Dark mode — الـ selected dial code (صفحات dark فقط) */
body.dark-mode .iti__selected-dial-code {
    color: #eef3fb !important;
}

/* المودال دايماً dark text على white */
.contact-modal .iti__selected-dial-code,
body.dark-mode .contact-modal .iti__selected-dial-code {
    color: #1d2430 !important;
}

/* السهم الصغير بجانب العلم */
.iti__arrow {
    border-top-color: var(--text-dark) !important;
    margin-left: 4px;
}

body.dark-mode .iti__arrow {
    border-top-color: #eef3fb !important;
}

.contact-modal .iti__arrow,
body.dark-mode .contact-modal .iti__arrow {
    border-top-color: #4b5563 !important;
}

/* الـ flag container alignment */
.iti--separate-dial-code .iti__selected-flag {
    background: transparent !important;
    padding-left: 10px !important;
    padding-right: 8px !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.iti__arrow {
    border-top-color: var(--text-dark) !important;
}

body.dark-mode .iti__arrow {
    border-top-color: #eef3fb !important;
}

.iti__country-list {
    z-index: 999999 !important;
    background: #ffffff !important;
    color: #111827 !important;
    max-height: 260px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12) !important;
    border-radius: 12px !important;
    overflow-y: auto !important;
}

/* Light mode — نصوص الدروب داون */
.iti__country,
.iti__country-name,
.iti__dial-code {
    color: #111827 !important;
}

    .iti__country.iti__highlight,
    .iti__country:hover {
        background: #f3f4f6 !important;
    }

/* Dark mode — الدروب داون */
body.dark-mode .iti__country-list {
    background: #162544 !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35) !important;
}

    /* ✅ Fix: نصوص الدروب داون في الدارك مود */
    body.dark-mode .iti__country-list .iti__country,
    body.dark-mode .iti__country-list .iti__country-name,
    body.dark-mode .iti__country-list .iti__dial-code {
        color: #eef3fb !important;
    }

        body.dark-mode .iti__country-list .iti__country.iti__highlight,
        body.dark-mode .iti__country-list .iti__country:hover {
            background: #1e3a6e !important;
        }

    body.dark-mode .iti__country-list .iti__divider {
        border-bottom-color: rgba(255,255,255,0.10) !important;
    }

/* Modal dropdown — دايماً light (لأن المودال أبيض) */
.contact-modal .iti__country-list {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12) !important;
}

    .contact-modal .iti__country-list .iti__country,
    .contact-modal .iti__country-list .iti__country-name,
    .contact-modal .iti__country-list .iti__dial-code {
        color: #111827 !important;
    }

        .contact-modal .iti__country-list .iti__country.iti__highlight,
        .contact-modal .iti__country-list .iti__country:hover {
            background: #f3f4f6 !important;
        }

body.dark-mode .contact-modal .iti__country-list {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

    body.dark-mode .contact-modal .iti__country-list .iti__country,
    body.dark-mode .contact-modal .iti__country-list .iti__country-name,
    body.dark-mode .contact-modal .iti__country-list .iti__dial-code {
        color: #111827 !important;
    }

        body.dark-mode .contact-modal .iti__country-list .iti__country.iti__highlight,
        body.dark-mode .contact-modal .iti__country-list .iti__country:hover {
            background: #f3f4f6 !important;
        }

/* ===== SweetAlert2 — always above modal ===== */
.swal2-above-modal {
    z-index: 99999 !important;
}

/* ===== Contact Modal — Structure ===== */
.contact-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 3000;
}

    .contact-modal.show {
        display: flex;
    }

.contact-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 10, 24, 0.72);
    z-index: 1;
}

.contact-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(680px, 100%);
    overflow: visible; /* يسمح للـ iti dropdown تظهر برا الـ content */
    border-radius: 20px;
}

.contact-modal-content {
    position: relative;
    z-index: 3;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
    padding: 22px 24px 20px;
    /* حجم ثابت — بيسكرول بشكل خفي لو المحتوى زاد */
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    scrollbar-width: none;      /* Firefox */
    -ms-overflow-style: none;   /* IE / Edge */
}

.contact-modal-content::-webkit-scrollbar {
    display: none; /* Chrome / Safari */
}

.contact-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 4;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

body.rtl .contact-modal-close {
    right: auto;
    left: 14px;
}

.contact-form-grid,
.modal-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 14px;
}

/* ── form-group base — applies on every page so modal is always correct ── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    font-size: 0.83rem;
    font-weight: 600;
    color: #4a5262;
}

.form-group.full {
    grid-column: 1 / -1;
}

/* ===== Contact Modal - Always Light ===== */
.contact-modal-content {
    background: #ffffff !important;
    color: #1d2430 !important;
}

    .contact-modal-content .modal-dialog-title {
        color: var(--gold) !important;
        font-size: clamp(1.15rem, 2vw, 1.45rem);
        font-weight: 800;
        letter-spacing: -0.02em;
        margin-bottom: 4px;
    }

    .contact-modal-content > p:not(.modal-dialog-title) {
        color: #6b7485 !important;
        font-size: 0.85rem;
        margin-bottom: 14px;
        line-height: 1.5;
    }

/* Dark mode — المودال يفضل أبيض دايماً */
body.dark-mode .contact-modal-content {
    background: #ffffff !important;
    color: #1d2430 !important;
}

body.dark-mode .contact-modal-dialog {
    background: transparent;
}

/* Labels */
.contact-modal .form-group label {
    font-size: 0.80rem;
    font-weight: 600;
    color: #3d4758 !important;
}

body.dark-mode .contact-modal .form-group label {
    color: #3d4758 !important;
}

/* Inputs / Textarea / Select — always light regardless of page or dark mode */
body .contact-modal .form-group input,
body .contact-modal .form-group textarea,
body .contact-modal .form-group select {
    width: 100% !important;
    box-sizing: border-box !important;
    background: #f8fafc !important;
    border: 1px solid #d9dfe8 !important;
    color: #1e2430 !important;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 0.88rem;
}

body .contact-modal .form-group textarea {
    resize: none;
}

/* Placeholders */
body .contact-modal .form-group input::placeholder,
body .contact-modal .form-group textarea::placeholder {
    color: #9aa3b2 !important;
    opacity: 1;
}

/* Focus */
body .contact-modal .form-group input:focus,
body .contact-modal .form-group textarea:focus,
body .contact-modal .form-group select:focus {
    border-color: rgba(199,154,74,0.75) !important;
    box-shadow: 0 0 0 3px rgba(199,154,74,0.12) !important;
    background: #ffffff !important;
    outline: none;
}

/* Validation errors */
.contact-modal .field-validation-message,
.contact-modal .text-danger {
    color: #dc2626 !important;
    font-size: 0.82rem;
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

/* Validation input border */
.contact-modal .input-validation-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.10) !important;
}

/* Close button */
.contact-modal-close {
    color: #6b7280 !important;
    background: #f3f4f6 !important;
    border-radius: 50%;
    border: none;
    transition: background .2s ease, color .2s ease;
}

    .contact-modal-close:hover {
        background: #e5e7eb !important;
        color: #111827 !important;
    }

/* RTL close button */
body.rtl .contact-modal-close {
    right: auto !important;
    left: 14px !important;
}

/* Phone input inside modal — always light */
.contact-modal .iti__selected-dial-code {
    color: #1e2430 !important;
}

body.dark-mode .contact-modal .iti__selected-flag {
    background: transparent !important;
}

body.dark-mode .contact-modal .iti__arrow {
    border-top-color: #3d4758 !important;
}

/* ===== Modal Dark Mode Overrides — يتغلب على القواعد العامة ===== */

/* Phone input في المودال - دايماً فاتح */
body.dark-mode .contact-modal #phoneInputModal,
body.dark-mode .contact-modal .modal-form-grid .iti input,
body.dark-mode .contact-modal .modal-form-grid .iti input[type="tel"],
body.dark-mode .contact-modal .contact-form-grid .iti input,
body.dark-mode .contact-modal .contact-form-grid .iti input[type="tel"] {
    color: #1e2430 !important;
    background-color: #f8fafc !important;
    border: 1px solid #d9dfe8 !important;
}

body.dark-mode .contact-modal .iti__selected-dial-code {
    color: #1e2430 !important;
}

/* Select في المودال - دايماً فاتح */
body.dark-mode .contact-modal .form-group select {
    background-color: #f8fafc !important;
    color: #1e2430 !important;
    border-color: #d9dfe8 !important;
}

    body.dark-mode .contact-modal .form-group select option {
        background-color: #ffffff !important;
        color: #1e2430 !important;
    }

        body.dark-mode .contact-modal .form-group select option[value=""] {
            color: #9aa3b2 !important;
        }

/* Validation في المودال - ألوان فاتحة دايماً */
body.dark-mode .contact-modal .field-validation-message {
    color: #dc2626 !important;
}

body.dark-mode .contact-modal .validation-summary-box {
    border-color: #fecaca !important;
    background: linear-gradient(180deg, #fff5f5 0%, #fff1f2 100%) !important;
    color: #b91c1c !important;
}

body.dark-mode .contact-modal .input-validation-error,
body.dark-mode .contact-modal textarea.input-validation-error,
body.dark-mode .contact-modal select.input-validation-error {
    border-color: #ef4444 !important;
    background-color: #fffafb !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.10) !important;
}

/* Logos */
.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* spacing */
.brand-logo {
    margin-right: auto;
}

.main-nav {
    margin-left: 40px;
}

.nav-actions {
    margin-left: 16px;
}

body.rtl .brand-logo {
    margin-right: 0;
    margin-left: auto;
}

body.rtl .main-nav {
    margin-left: 0;
    margin-right: 40px;
}

body.rtl .nav-actions {
    margin-left: 0;
    margin-right: 16px;
}

main {
    padding-top: 0;
}

/* Responsive */
@media (max-width: 991px) {
    .nav-toggle {
        display: grid;
    }

    .main-nav {
        position: absolute;
        top: 88px;
        left: 24px;
        right: 24px;
        background: rgba(7, 20, 43, 0.97);
        border: 1px solid rgba(255,255,255,0.08);
        border-radius: 20px;
        padding: 18px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        box-shadow: var(--shadow);
        margin-left: 0;
    }

        .main-nav.show {
            display: flex;
        }

        .main-nav .nav-link {
            color: #eef3fb !important;
        }

    body.rtl .main-nav {
        align-items: flex-end;
        margin-right: 0;
    }

    .nav-actions {
        margin-left: 0;
    }

    body.rtl .nav-actions {
        margin-right: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .brand-logo-img {
        height: 42px;
    }
}

/* Validation UI */
.validation-summary-box {
    display: none;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #fecaca;
    background: linear-gradient(180deg, #fff5f5 0%, #fff1f2 100%);
    color: #b91c1c;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.6;
}

.validation-summary-errors.validation-summary-box {
    display: block;
}

.validation-summary-box ul {
    margin: 0;
    padding-inline-start: 18px;
}

.validation-summary-box li {
    margin: 0;
}

.field-validation-message {
    display: none;
    margin-top: 4px;
    color: #ef4444;
    font-size: 12px;
    font-weight: 400;
}

.field-validation-error.field-validation-message {
    display: block;
}

.field-validation-valid {
    display: none;
}

.input-validation-error,
textarea.input-validation-error,
select.input-validation-error {
    border-color: #ef4444 !important;
    background-color: #fffafb !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.10) !important;
}

.form-group input,
.form-group textarea,
.form-group select,
.contact-page-field input,
.contact-page-field textarea,
.contact-page-field select {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus,
    .contact-page-field input:focus,
    .contact-page-field textarea:focus,
    .contact-page-field select:focus {
        outline: none;
        border-color: rgba(199, 154, 74, 0.7);
        box-shadow: 0 0 0 3px rgba(199, 154, 74, 0.12);
    }

/* Dark mode validation */
body.dark-mode .validation-summary-box {
    border-color: rgba(248, 113, 113, 0.35);
    background: rgba(127, 29, 29, 0.20);
    color: #fecaca;
}

body.dark-mode .field-validation-message {
    color: #fecdd3;
}

body.dark-mode .input-validation-error,
body.dark-mode textarea.input-validation-error,
body.dark-mode select.input-validation-error {
    border-color: #fb7185 !important;
    background-color: rgba(127, 29, 29, 0.10) !important;
    box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.12) !important;
}

@media (max-width: 768px) {
    .form-group .iti input,
    .form-group .iti input[type="tel"],
    .contact-page-field .iti input,
    .contact-page-field .iti input[type="tel"],
    .modal-form-grid .iti input,
    .modal-form-grid .iti input[type="tel"],
    .contact-form-grid .iti input,
    .contact-form-grid .iti input[type="tel"],
    #phoneInput,
    #phoneInputHome,
    #phoneInputModal {
        padding-left: 110px !important;
        padding-right: 12px !important;
        min-height: 50px;
        font-size: 16px !important;
    }

    .container {
        width: min(var(--container), calc(100% - 32px));
    }

    .nav-actions .btn-gold {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-directi