/* Form elements – contact page */

/* Forms */
form {
  display: grid;
  gap: 0.85rem;
}

label {
  font-size: 0.85rem;
  font-weight: 500;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  border-radius: 0.5rem;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #0c4466;
  outline-offset: 1px;
  border-color: #0c4466;
  box-shadow: 0 0 0 3px rgba(12, 68, 102, 0.1);
}

.field-row {
  display: grid;
  gap: 0.75rem;
}

/* Success and Error Messages */
.success-message {
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  border: 1px solid #c3e6cb;
}

.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1.5rem;
  border: 1px solid #f5c6cb;
}

/* Form Validation States */
input.error,
textarea.error,
select.error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* Enhanced select styling */
select {
  background: white;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
