:root {
  --primary-color: #0056b3;
  --secondary-color: #003366;
  --accent-color: #ff6600;
  --light-color: #f8f9fa;
  --dark-color: #343a40;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Arial", sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

header {
  background-color: var(--secondary-color);
  color: white;
  padding: 20px 0;
  text-align: center;
  border-radius: 5px 5px 0 0;
  margin-bottom: 30px;
  position: relative;
}

.logo {
  max-width: 150px;
  margin-bottom: 15px;
}

h1 {
  font-size: 24px;
  margin-bottom: 10px;
}

.lang-switcher {
  position: absolute;
  top: 20px;
  right: 20px;
}

.lang-btn {
  background: none;
  border: 1px solid white;
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  margin: 0 5px;
}

.lang-btn.active {
  background-color: white;
  color: var(--secondary-color);
}

.form-container {
  background-color: white;
  padding: 30px;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  position: relative;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--secondary-color);
}

input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(0, 86, 179, 0.3);
}

.row {
  display: flex;
  gap: 15px;
}

.col {
  flex: 1;
}

.weight-input {
  display: flex;
}

.weight-input input {
  flex: 1;
  border-radius: 4px 0 0 4px;
}

.weight-input select {
  width: 100px;
  border-radius: 0 4px 4px 0;
  border-left: none;
}

button {
  background-color: var(--accent-color);
  color: white;
  border: none;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: block;
  width: 100%;
  font-weight: bold;
}

button:hover {
  background-color: #e65c00;
}

.success-message {
  display: none;
  background-color: #d4edda;
  color: #155724;
  padding: 15px;
  border-radius: 4px;
  margin-top: 20px;
  text-align: center;
}

.new-request-btn {
  display: none;
  background-color: var(--primary-color);
  margin-top: 20px;
  width: auto;
  padding: 10px 20px;
}

.new-request-btn:hover {
  background-color: #004494;
}

footer {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  color: #666;
  font-size: 14px;
}

@media (max-width: 600px) {
  .row {
    flex-direction: column;
  }

  .lang-switcher {
    position: static;
    text-align: center;
    margin-bottom: 15px;
  }
}

/* RTL/LTR direction handling */
[dir="rtl"] {
  text-align: right;
}

[dir="ltr"] {
  text-align: left;
}
