@font-face {
    font-family: 'MontserratArabic';
    src: url('Montserrat-Arabic-Regular.woff2') format('woff2'),
         url('Montserrat-Arabic-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'MontserratArabic';
    src: url('Montserrat-Arabic-Bold.woff2') format('woff2'),
         url('Montserrat-Arabic-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f7f4ee;
    color: #1f1f1f;
}

html[dir="rtl"] body,
html[dir="rtl"] input,
html[dir="rtl"] select,
html[dir="rtl"] button,
html[dir="rtl"] h1,
html[dir="rtl"] p,
html[dir="rtl"] li,
html[dir="rtl"] a {
    font-family: 'MontserratArabic', Arial, sans-serif !important;
}

.page {
    min-height: 100vh;
    padding: 24px 20px 40px;
    display: flex;
    align-items: center;
}

.container {
    max-width: 1100px;
    margin: auto;
    width: 100%;
}

/* Header ثابت */
.header-row {
    position: relative;
    height: 110px;
    margin-bottom: 20px;
}

.header-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.header-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

/* مهم: زر اللغة يفضل يمين في العربي والإنجليزي */
html[dir="rtl"] .header-right {
    right: 0;
    left: auto;
}

.header-left {
    display: none;
}

/* زر اللغة */
.lang-switch {
    text-decoration: none;
    font-size: 12px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #d8c6a5;
    color: #1f1f1f;
    font-weight: 700;
    transition: 0.25s ease;
    white-space: nowrap;
}

.lang-switch:hover {
    background: #1f1f1f;
    color: #ffffff;
}

/* خلفية اللوجو */
.logo-box {
    background: #000000;
    padding: 12px 16px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22);
}

.logo {
    width: 78px !important;
    max-width: 78px !important;
    height: auto !important;
    display: block;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 46px;
    align-items: center;
}

.cover-box {
    text-align: center;
}

.guide-cover {
    width: 100%;
    max-width: 430px;
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}

.content-box {
    background: #ffffff;
    padding: 38px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.eyebrow {
    font-size: 12px;
    color: #9c7a3c;
    font-weight: 700;
    margin-bottom: 12px;
}

h1 {
    font-size: 36px;
    line-height: 1.18;
    margin-bottom: 16px;
}

.subtitle {
    font-size: 16px;
    line-height: 1.75;
    color: #555;
    margin-bottom: 22px;
}

.points {
    margin: 0 0 26px 20px;
    color: #333;
}

html[dir="rtl"] .points {
    margin: 0 20px 26px 0;
    text-align: right;
}

.points li {
    margin-bottom: 9px;
}

.form {
    display: grid;
    gap: 13px;
}

input,
select {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 14px;
    background: #ffffff;
}

html[dir="rtl"] input:not([type="tel"]) {
    text-align: right;
    direction: rtl;
}

.phone-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    direction: ltr;
}

.phone-row input {
    text-align: left !important;
    direction: ltr !important;
}

button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 12px;
    background: #1f1f1f;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

button:hover {
    background: #9c7a3c;
}

.note {
    margin-top: 13px;
    font-size: 12px;
    color: #777;
    line-height: 1.5;
}

.error {
    background: #ffe5e5;
    color: #a40000;
    padding: 11px;
    border-radius: 10px;
    font-size: 13px;
}

@media (max-width: 850px) {
    .page {
        padding: 20px 16px 32px;
    }

    .header-row {
        height: 98px;
        margin-bottom: 18px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .content-box {
        padding: 28px;
    }

    h1 {
        font-size: 28px;
    }

    .guide-cover {
        max-width: 350px;
    }

    .logo-box {
        padding: 10px 14px;
        border-radius: 12px;
    }

    .logo {
        width: 70px !important;
        max-width: 70px !important;
    }

    .phone-row {
        grid-template-columns: 115px 1fr;
    }

    .lang-switch {
        font-size: 11px;
        padding: 6px 12px;
    }
}