/* 🎨 فونت و راست‌چین */
body {
    font-family: "B Nazanin", Tahoma, Arial, sans-serif;
    direction: rtl;
    background: #f4f6f9;
    margin: 0;
    padding: 0;
    color: #333;
}

/* 📦 کانتینر عمومی */
.container {
    max-width: 800px;
    margin: 30px auto;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* 📝 تیترها */
h1, h2, h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.4;
}
p {
    line-height: 1.8;
    font-size: 16px;
    margin-bottom: 20px;
}

/* 🖊️ فرم‌ها */
label {
    display: block;
    margin: 12px 0 6px;
    font-weight: bold;
}
input[type="text"],
input[type="number"],
input[type="password"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    box-sizing: border-box;
}
textarea {
    min-height: 90px;
    resize: vertical;
}

/* 🔘 دکمه‌ها */
button, .btn, a.button-link {
    display: inline-block;
    background: #3498db;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
    text-align: center;
}
button:hover, .btn:hover, a.button-link:hover {
    background: #2980b9;
}

/* 🌐 صفحات خاص */
.landing, .thankyou {
    text-align: center;
    padding: 40px 20px;
}
.landing h1, .thankyou h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2c3e50;
}

/* 📊 جدول‌ها */
.styled-table {
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 15px;
    width: 100%;
    border: 1px solid #ddd;
}
.styled-table th {
    background-color: #3498db;
    color: #fff;
    text-align: center;
    padding: 10px;
}
.styled-table td {
    padding: 10px;
    border: 1px solid #ddd;
}
.styled-table tr:nth-child(even) {
    background-color: #f9f9f9;
}
.styled-table tr:nth-child(odd) {
    background-color: #ffffff;
}

/* 📱 ریسپانسیو */
@media (max-width: 768px) {
    .container {
        margin: 15px;
        padding: 15px;
    }
    h1, h2, h3 {
        font-size: 20px;
    }
    button, .btn, a.button-link {
        width: 100%;
        font-size: 15px;
        padding: 12px;
    }
    .styled-table th, .styled-table td {
        font-size: 13px;
        padding: 8px;
    }
    /* جدول‌ها اسکرول‌پذیر شوند */
    .styled-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}
