/* Import Arabic Font */
body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f3f4f6;
    margin: 0;
    padding: 20px;
    direction: rtl; /* Crucial for Arabic */
    text-align: right;
    color: #333;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-top: 5px solid #2ecc71; /* Green accent */
}

header {
    text-align: center;
    margin-bottom: 25px;
}

h1 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

p.hint {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-top: -5px;
    margin-bottom: 10px;
}

fieldset {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #fff;
}

legend {
    font-weight: bold;
    color: #2ecc71;
    padding: 0 10px;
    font-size: 1.1rem;
}

label {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 500;
}

input[type="text"],
input[type="number"],
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-family: 'Tajawal', sans-serif; /* Keep font in inputs */
    font-size: 16px;
    box-sizing: border-box;
}

input:focus, select:focus {
    border-color: #2ecc71;
    outline: none;
}

/* Radio and Checkbox Styling */
.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column; /* Stack vertically on mobile */
    gap: 10px;
    margin-top: 10px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 6px;
}

.radio-group label, .checkbox-group label {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

input[type="radio"], input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #2ecc71;
}

/* Layout helpers */
.row {
    display: flex;
    gap: 10px;
}
.col {
    flex: 1;
}

/* Hidden elements */
.hidden {
    display: none;
}

/* Sub-sections indent */
.sub-section {
    background-color: #f0fff4;
    padding: 10px;
    border-right: 3px solid #2ecc71;
    margin-top: 10px;
    border-radius: 4px;
}
.sub-label {
    color: #27ae60;
    font-weight: bold;
}

.btn-submit {
    width: 100%;
    padding: 15px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-family: 'Tajawal', sans-serif;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
}

.btn-submit:hover {
    background-color: #219150;
}

/* ... (Keep all your existing CSS) ... */

/* Footer Styling */
.footer-copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
    font-size: 0.9rem;
    color: #7f8c8d;
    font-weight: bold;
    font-family: 'Tajawal', sans-serif;
    padding-bottom: 20px;
}

