/* General Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9;
  margin: 0;
  padding: 20px;
}

.container {
  max-width: 900px;
  margin: auto;
  background-color: white;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

header h1 {
  font-size: 1.8rem;
  color: #333;
}

header h2 {
  font-size: 1.5rem;
  color: #555;
}

header p {
  font-size: 0.9rem;
  color: #666;
}

/* Language Toggle Buttons */
.language-toggle {
  text-align: center;
  margin-bottom: 20px;
}

.language-toggle button {
  margin: 0 10px;
  padding: 10px 15px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  background-color: #007bff;
  color: white;
  cursor: pointer;
}

.language-toggle button.active {
  font-weight: bold;
  background-color: #0056b3;
}

/* Fieldsets Row for Work and Residence */
.fieldsets-row {
  display: flex;
  gap: 20px;
}

.fieldsets-row fieldset {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px;
}

fieldset legend {
  font-weight: bold;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Field Row */
.field-row {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.field {
  flex: 1;
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
  color: #333;
}

input,
textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  color: #333;
  background-color: #fff;
}

textarea {
  resize: vertical;
}

/* Button Styles */
button {
  display: block;
  width: 100%;
  padding: 10px 15px;
  font-size: 1.2rem;
  border: none;
  border-radius: 5px;
  background-color: #28a745;
  color: white;
  cursor: pointer;
  margin-top: 20px;
}

button:hover {
  background-color: #218838;
}

/* RTL Support for Arabic Form */
form[dir="rtl"] {
  text-align: right;
  direction: rtl;
}

form[dir="rtl"] label {
  text-align: right;
}

form[dir="rtl"] input,
form[dir="rtl"] textarea {
  text-align: right;
}

/* Responsive Design */
@media (max-width: 768px) {
  .field-row {
    flex-direction: column;
  }

  .fieldsets-row {
    flex-direction: column;
  }
}

.office-use-only {
  border: 5px solid #666;
  background-color: #ccc;
}

.office-use-only input {
  background-color: #f9f9f9;
}

fieldset {
  padding: 20px;
  margin: 20px;
}

fieldset legend {
  padding: 5px;
}
