/* Container Styling */
.maintenance-form-cotnaienr {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Form Styling */
.maintenanceRequest {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Field Group */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Individual Field Items */
.field-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Labels */
.field-item label {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.field-item label em {
  font-style: normal;
  margin-left: 2px;
}

/* Input Fields */
.field-item input[type="text"],
.field-item input[type="email"],
.field-item select,
.field-item textarea {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field-item input[type="text"]:focus,
.field-item input[type="email"]:focus,
.field-item select:focus,
.field-item textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Select Dropdown */
.field-item select {
  cursor: pointer;
  background-color: #ffffff;
}

/* Textarea */
.field-item textarea {
  min-height: 100px;
  resize: vertical;
}

/* Submit Button */
.submit-btn {
  border: 2px solid #003262 !important;
  text-transform: uppercase !important;
  min-width: 100px;
  cursor: pointer;
  display: inline-block;
  margin: 0;
  padding: 10px;
  border-radius: 2px;
  line-height: 1.45em;
  text-align: center;
  transition: .2s ease;
  text-decoration: none;
  box-shadow: 0 1px 4px 0 rgba(0,0,0,.6);
  font-size: 14px;
  font-family: inherit;
  background-color: #ffffff;
  color: #003262;
}

.submit-btn:hover {
  background-color: #f5f5f5;
}

/* reCAPTCHA Container */
.g-recaptcha {
  margin: 1rem 0;
}

/* Messages */
#errorMessage,
#successMessage {
  padding: 0.75rem;
  border-radius: 4px;
  margin-top: 1rem;
  font-weight: 500;
}

#errorMessage {
  background-color: #fee2e2;
  color: #991b1b;
  display: none;
}

#errorMessage:not(:empty) {
  display: block;
}

#successMessage {
  background-color: #d1fae5;
  color: #065f46;
  display: none;
}

#successMessage:not(:empty) {
  display: block;
}

/* Responsive Design */
@media (max-width: 640px) {
  .maintenance-form-cotnaienr {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .field-item input[type="text"],
  .field-item input[type="email"],
  .field-item select,
  .field-item textarea {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}