body {
    font-family: 'Cairo', sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: 100vh;
    direction: rtl; /* Ensure right-to-left layout */
}

.container {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 900px;
    text-align: right; /* Align text to the right for Arabic */
    margin-top: 20px;
}

h1 {
    margin-bottom: 20px;
    font-size: 24px;
    text-align: center;
}

h2 {
    margin-top: 20px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    text-align: right; /* Align text to the right for Arabic */
}

td {
    padding: 10px;
    border: 1px solid #ddd;
    vertical-align: top;
}

.question-text {
    width: 70%;
    font-size: 16px;
}

.question-title {
    font-size: 18px;
    font-weight: bold;
}

.score-label {
    width: 30%;
    font-size: 16px;
}

textarea {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.btn {
    background: #007bff;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    text-align: center;
    cursor: pointer;
    width: 100%;
    max-width: 200px; /* Same max-width as HF index */
    margin: 20px auto; /* Center the button */
    font-size: 16px; /* Adjust font size if necessary */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: add a shadow for a better look */
    transition: background-color 0.3s ease; /* Smooth transition effect */
}

.btn:hover {
    background: #0056b3;
}

.btn-container {
    text-align: center;
    margin-top: 20px; /* Add some margin to separate it from the elements above */
}


.text-center {
    text-align: center;
}

.center-btn {
    display: block;
    margin: 0 auto;
}

.designer {
    color: gray;
    font-size: smaller;
    text-align: center;
    margin-top: -10px; /* Adjust this value as needed to reduce space */
}



.instructions {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f2f2f2;
    border-radius: 8px;
    line-height: 1.6;
}

.instructions h2 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.form-container label {
    display: block;
    margin-bottom: 10px;
    text-align: right; /* Keep the labels aligned to the right */
    width: 100%;
}

.form-container input,
.form-container select {
    width: 100%;
    max-width: 300px; /* Control the width of the inputs */
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.instructions p {
    margin-bottom: 10px;
}
