:root {
  /* Define colors for easy change */
  --primary-color: #174e1c; /* upafa london green */
  --primary-hover: #2c4d2e; /* darker green for hover */
  --background-light: #e8f6f0; /* Light green background */
  --text-dark: #374f42; /* Dark Slate Text */
  --shadow-color: rgba(15, 76, 40, 0.2); /* Shadow matching primary color */
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--background-light);
  margin: 0;
  padding: 0;
  color: var(--text-dark);
  line-height: 1.8;
  direction: rtl;
  text-align: right;
}

/* --- Header Styling for Formality and Color --- */
.header {
  background-color: var(--primary-color);
  color: white;
  padding: 25px 0;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header h1 {
  margin-bottom: 5px;
  font-size: 2.2em;
}

.header p {
  font-size: 1.1em;
  opacity: 0.9;
}

.container {
  background: white;
  max-width: 800px;
  margin: 30px auto 50px auto;
  padding: 30px 40px;
  border-radius: 15px;
  box-shadow: 0 8px 25px var(--shadow-color);
  border-top: 5px solid var(--primary-color);
}

h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 25px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

label {
  display: block;
  margin-top: 18px;
  font-weight: bold;
  color: var(--text-dark);
}

input, textarea, select {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid #c5c5c5;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--shadow-color);
  outline: none;
}

button {
  display: block;
  width: 100%;
  margin-top: 30px;
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 17px;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: background-color 0.3s, transform 0.1s;
}

button:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* Submission success page styling */
.container hr {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid #eee;
}

.container p {
  padding: 5px 0;
}

.container strong {
  color: var(--primary-color);
  font-weight: bold;
}

.form-title {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  color: #333;
  font-size: 26px;
  font-weight: bold;
}

.back-arrow {
  color: #2e7d32;
  font-size: 48px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.2s ease;
}

.back-arrow:hover {
  color: #1b5e20;
  transform: translateX(-4px);
}
