/* Modal styling */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Darker dimmed background */
  justify-content: center;
  align-items: center;
  overflow-y: auto; /* Enable scrolling if content overflows */
}

.modal-content {
  background-color: #fff;
  padding: 30px; /* Reduced padding for compact design */
  border-radius: 15px;
  width: 100%;
  max-width: 500px; /* Slightly smaller width */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: fadeIn 0.5s ease-in-out;
}

.modal-title {
  font-size: 24px; /* Smaller title */
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
  color: #333;
}

.modal-subtitle {
  font-size: 14px; /* Smaller subtitle */
  color: #666;
  text-align: center;
  margin-bottom: 20px;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
color: #C58F00; /* Match theme color */
}

/* Form styling */
.form-row {
  display: flex; /* Use Flexbox for side-by-side layout */
  gap: 15px; /* Space between fields */
  margin-bottom: 20px; /* Space between rows */
}

.form-group {
  flex: 1; /* Equal width for all fields in a row */
  position: relative;
}

.half-width {
  width: 100%; /* Ensure fields take up full width within their container */
}

.form-group label {
  font-size: 14px; /* Smaller label size */
  font-weight: bold;
  color: #555;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.form-group i {
  margin-right: 10px;
  color: #2F5535; /* Theme color for icons */
}

.form-group input {
  width: 100%;
  padding: 10px; /* Reduced padding for compact design */
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px; /* Smaller font size */
  transition: border-color 0.3s ease;
}

.form-group input:focus {
  border-color: #2F5535; /* Highlight on focus */
  outline: none;
}

.btn-submit {
  width: 100%;
  padding: 10px; /* Reduced padding for compact design */
  background-color: #2F5535;
  color: white;
  font-size: 16px; /* Smaller font size */
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit:hover {
  background-color: #C58F00 /* Darker shade of theme color */
}

.confirmation-message {
  text-align: center;
  font-size: 16px; /* Smaller font size */
  color: #2F5535; /* Green color for success message */
  font-weight: bold;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.confirmation-message i {
  font-size: 20px; /* Smaller icon size */
}
.processing-message {
  text-align: center;
  margin-top: 20px;
  font-size: 16px;
  color: #333;
  display: none; /* Hidden by default */
}
.processing-message i {
  font-size: 24px;
  margin-right: 10px;
  color: #2F5535; /* Match theme color */
}