:root {
    --bg: #f4f6f8;
    --card: #ffffff;
    --text: #171717;
    --muted: #6b7280;
    --primary: #111827;
    --accent: #2563eb;
    --success: #15803d;
    --danger: #b91c1c;
    --border: #d1d5db;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    direction: rtl;
}

.app {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    min-height: 100vh;
    padding: 14px;
}

.header {
    background: var(--primary);
    color: #fff;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 14px;
}

.header h1 { margin: 0 0 6px; font-size: 24px; }
.header p { margin: 0; opacity: .8; font-size: 14px; }

.card {
    background: var(--card);
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.menu-btn {
    display: block;
    text-decoration: none;
    color: #fff;
    background: var(--accent);
    border-radius: 14px;
    padding: 22px 16px;
    margin-bottom: 12px;
    font-size: 21px;
    font-weight: 700;
    text-align: center;
}

.menu-btn.secondary { background: #0f766e; }
.menu-btn.third { background: #7c3aed; }

label {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    font-weight: 700;
}

input[type="text"], input[type="number"] {
    width: 100%;
    min-height: 54px;
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 20px;
    background: #fff;
}

input:focus { outline: none; border-color: var(--accent); }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 54px;
    margin-top: 10px;
    font-size: 18px;
    font-weight: 700;
}
.checkbox-row input { width: 28px; height: 28px; }

.submit-btn, .back-btn {
    width: 100%;
    min-height: 58px;
    border: 0;
    border-radius: 12px;
    font-size: 21px;
    font-weight: 700;
    cursor: pointer;
}
.submit-btn { background: var(--success); color: white; margin-top: 14px; }
.back-btn { display:block; background:#e5e7eb; color:#111827; text-align:center; padding:16px; text-decoration:none; margin-top:10px; }

.message { padding: 12px; border-radius: 10px; margin-bottom: 12px; font-weight: 700; }
.message.success { background: #dcfce7; color: #166534; }
.message.error { background: #fee2e2; color: #991b1b; }

.summary { font-size: 14px; color: var(--muted); margin-top: 10px; }

@media (max-width: 360px) {
    .grid-2 { grid-template-columns: 1fr; }
    .menu-btn { font-size: 19px; }
}
