<style>
        /* --- Font Definitions (Replace with your actual font sources) --- */
        @font-face {
            font-family: 'B Titr';
            src: url('/fonts/b-titr.woff2') format('woff2'), url('/fonts/b-titr.woff') format('woff'); /* Example local path */
            font-weight: normal;
            font-style: normal;
        }
        @font-face {
            font-family: 'IranSans';
            src: url('/fonts/iransans-bold.woff2') format('woff2'), url('/fonts/iransans-bold.woff') format('woff'); /* Example local path */
            font-weight: bold;
            font-style: normal;
        }
        @font-face {
            font-family: 'IranSans';
            src: url('/fonts/iransans-medium.woff2') format('woff2'), url('/fonts/iransans-medium.woff') format('woff'); /* Example local path */
            font-weight: normal; /* Medium weight */
            font-style: normal;
        }

        /* --- Base Styles --- */
        body {
            background-color: #f8f9fa;
            font-family: 'IranSans', 'Tahoma', sans-serif; /* Default font */
            margin: 0;
            padding: 0;
            background-color: #f4f4f4;
            color: #333;
            display: flex;
            flex-direction: column;
            min-height: 100vh; /* Ensure body takes at least full viewport height */
        }

        /* --- Header Styles --- */
        .header {
            background-color: #4CAF50; /* سبز */
            color: white;
            padding: 20px 0;
            text-align: center;
            font-size: 2.5em; /* Large size */
            font-family: 'IranSans', 'Tahoma', sans-serif; /* Apply IranSans Bold font */
            font-weight: bold; /* Set font-weight to bold for IranSans Bold */
            width: 96%; /* 96% width */
            box-sizing: border-box; /* Include padding and border in the element's total width and height */
            box-shadow: 0 2px 5px rgba(0,0,0,0.2);
            margin-top: 10px; /* Add some margin from the top */
            margin-left: auto; /* Center the header */
            margin-right: auto;
        }

        /* --- Menu Styles --- */
        .menu {
            background-color: #367c39; /* Darker green */
            overflow: hidden;
            text-align: center;
            padding: 10px 0;
            width: 96%; /* 96% width */
            box-sizing: border-box;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            margin-left: auto; /* Center the menu */
            margin-right: auto;
        }
        .menu a {
            display: inline-block;
            color: white;
            text-align: center;
            padding: 14px 20px;
            text-decoration: none;
            font-size: 1.1em;
            font-family: 'IranSans', 'Tahoma', sans-serif; /* IranSans Bold */
            font-weight: bold;
            transition: background-color 0.3s ease;
        }
        .menu a:hover {
            background-color: #e0e0e0; /* Light grey on hover */
            color: #333;
        }

        /* --- Container for Side-by-Side Boxes --- */
        .content-container {
            display: flex;
            flex-direction: row-reverse; /* Place items from right to left */
            justify-content: space-between; /* Distribute space between boxes */
            width: 96%; /* Match the width of header and menu */
            margin: 20px auto; /* Center the container */
            box-sizing: border-box;
            flex-wrap: wrap; /* Allow wrapping on smaller screens */
            gap: 2%; /* Increased gap between items when they wrap or are side-by-side */
        }

        /* --- General Box Styles --- */
        .content-box-item {
            background-color: white;
            padding: 25px;
            box-sizing: border-box;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            font-family: 'IranSans', 'Tahoma', sans-serif; /* Default font */
        }

        /* --- Specific Box Styles --- */
        .content-box-item.first {
            width: 48%; /* Increased width */
            order: 1; /* Ensure it's on the right */
        }

        .content-box-item.second {
            width: 50%;
            order: 2; /* Ensure it's on the left of the first box in row-reverse */
        }

       .content-box-item.third {
            width: 100%;
            order: 1; /* Ensure it's on the left of the first box in row-reverse */
        }
        .tab-content h1 {
            color: #367c39;
            margin-bottom: 20px;
            font-family: 'IranSans', 'Tahoma', sans-serif; /* Ensure heading also uses IranSans */
            font-weight: bold;
        }
        .tab-content p, .tab-content a {
            font-size: 1.05em;
            line-height: 1.6;
        }
        .tab-content a {
            color: #4CAF50;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        .tab-content a:hover {
            color: #367c39;
            text-decoration: underline;
        }

       /* --- Styles for the second box (Features) --- */
.content-box-item.second {
    width: 50%;
    order: 2;
    /* Additions for height limit and scroll */
    max-height: 600px; /* Set a maximum height */
    overflow-y: auto; /* Add vertical scrollbar if content exceeds max-height */
    /* Existing styles */
    background-color: white;
    padding: 25px;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    font-family: 'IranSans', 'Tahoma', sans-serif;
}

.content-box-item.second ul {
    list-style-type: disc; /* Use disc for list items */
    padding-right: 25px; /* Indent list items */
    margin-top: 15px;
}
.content-box-item.second li {
    margin-bottom: 10px; /* Space between list items */
    font-size: 1.05em;
    line-height: 1.6;
}


        /* --- Horizontal Rule Style --- */ 
        hr {
            border: 0;
            height: 1px;
            background-color: #eee; /* Light grey line */
            margin: 20px 0; /* Space above and below the line */
        }

        /* --- Footer Styles --- */
        .footer {
            background-color: #333; /* Dark background */
            color: white;
            text-align: center;
            padding: 20px 0;
            margin-top: auto; /* Pushes footer to the bottom */
            width: 100%; /* Full width */
            font-size: 0.9em;
            font-family: 'IranSans', 'Tahoma', sans-serif;
        }

        /* --- Responsive adjustments --- */
        @media (max-width: 768px) {
            .header {
                font-size: 1.8em;
                padding: 15px 0;
            }
            .menu a {
                padding: 10px 15px;
                font-size: 1em;
            }
            .content-container {
                flex-direction: column; /* Stack boxes vertically */
                align-items: center; /* Center stacked items */
                gap: 20px; /* Add vertical gap when stacked */
            }
            .content-box-item.first,
            .content-box-item.second {
                width: 96%; /* Full width on small screens */
                order: unset; /* Remove order */
            }
            .footer {
                position: relative; /* Reset position for clarity, not strictly needed but good practice */
                bottom: 0;
                width: 100%; /* Ensure footer takes full width */
            }
        }
        



/* --- Form Container Styles --- */
.form-container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 12px; /* گوشه‌های گردتر */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); /* سایه عمیق‌تر */
    width: 100%;
    max-width: 480px; /* حداکثر عرض فرم */
    text-align: right; /* **اینجا text-align: right اضافه شد** */
    border: 1px solid #e0e0e0;
    margin-top: 50px; /* فاصله از بالای صفحه */
}

.form-container h2 {
    margin-top: 0;
    margin-bottom: 30px;
    color: #2c3e50; /* رنگ سرمه‌ای تیره برای عنوان */
    font-size: 1.8em;
    text-align: center; /* عنوان همچنان وسط */
}

/* --- Form Group and Input Styles --- */
.form-group {
    margin-bottom: 25px; /* فاصله بیشتر بین گروه‌ها */
    /* text-align: right; /* این خط را حذف می‌کنیم، چون text-align روی والد اعمال می‌شود */
    display: flex; /* استفاده از فلکس‌باکس برای کنترل چیدمان */
    flex-direction: column; /* عناصر به صورت ستونی زیر هم باشند */
    /* align-items: flex-end; /* این خط را حذف می‌کنیم */
}

.form-group label {
    display: block; /* لیبل به عنوان یک بلاک نمایش داده شود */
    margin-bottom: 10px;
    font-weight: bold;
    color: #555;
    font-size: 0.95em;
    width: auto; /* عرض لیبل به اندازه متن باشد */
    margin-left: auto; /* **این باعث می‌شود لیبل به سمت راست برود** */
    margin-right: 0;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 40%; /* عرض تکست باکس 40% */
    padding: 12px 18px;
    border: 1px solid #ccc;
    border-radius: 8px; /* گوشه‌های گرد برای فیلدهای ورودی */
    box-sizing: border-box; /* برای محاسبه درست عرض */
    font-family: 'Vazirmatn', 'Tahoma', sans-serif; /* استفاده از فونت */
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    display: block;

    margin-left: auto; /* **این باعث می‌شود اینپوت به سمت راست برود** */
    margin-right: 0;
}

.form-group input:focus {
    border-color: #4a90e2; /* رنگ آبی ملایم هنگام فوکوس */
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2); /* افکت سایه ملایم */
    outline: none; /* حذف خط دور پیش‌فرض */
}

/* --- Submit Button Styles --- */
button[type="submit"] {
    background-color: #4a90e2; /* رنگ آبی برای دکمه */
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 8px; /* گوشه‌های گرد برای دکمه */
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;

    width: 40%; /* عرض دکمه 40% */
    margin-left: 0; /* **این باعث می‌شود دکمه به سمت راست برود** */
    margin-right: 0;
   
    font-size: 1.2em; /* med size */
    font-family: 'IranSans', 'Tahoma', sans-serif; /* Apply IranSans
    box-sizing: border-box;
}

button[type="submit"]:hover {
    background-color: #357abd; /* رنگ آبی تیره‌تر هنگام هاور */
    transform: translateY(-2px); /* افکت کمی برجسته شدن */
}

button[type="submit"]:active {
    transform: translateY(0); /* بازگشت به حالت عادی هنگام کلیک */
}

/* --- Responsive Styles --- */
@media (max-width: 600px) {
    body {
        align-items: flex-start; /* چسباندن فرم به بالای صفحه در موبایل */
    }
    .form-container {
        padding: 25px 30px; /* کاهش padding در صفحات کوچک */
        margin: 15px;
        margin-top: 30px; /* فاصله کمتر از بالا در موبایل */
        text-align: right; /* در موبایل هم راست‌چین بودن را اعمال می‌کنیم */
    }

    .form-container h2 {
        font-size: 1.5em;
        margin-bottom: 25px;
    }

    .form-group {
        margin-bottom: 20px;
        /* **در صفحات کوچک، alignment را روی flex-end نگه می‌داریم** */
        /* align-items: flex-end; /* حذف شده */
    }

    .form-group label {
         margin-left: auto; /* اطمینان از راست بودن لیبل در موبایل */
         margin-right: 0;
    }

    .form-group input[type="text"],
    .form-group input[type="tel"] {
        width: 90%; /* در صفحات کوچک عرض بیشتری به ورودی‌ها بدهید */
        padding: 10px 15px;
        font-size: 0.95em;
        margin-left: auto; /* **در موبایل، margin-left: auto را برای راست‌چین شدن نگه می‌داریم** */
        margin-right: 0;
    }

    button[type="submit"] {
        padding: 10px;
        font-size: 1em;
        width: 100%; /* در موبایل، دکمه عرض کامل داشته باشد */
        margin-left: auto; /* **در موبایل، margin-left: auto را برای راست‌چین شدن نگه می‌داریم** */
        margin-right: 0;
    }
        
    </style>