.form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.9);
}

.input,
.textarea {
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.75);
  color: #f8fafc;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  font-family: inherit;
}

.textarea {
  resize: vertical;
  min-height: 120px;
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(148, 163, 184, 0.5);
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.input:disabled,
.textarea:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.fileInputWrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.fileInputHidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fileButton {
  flex-shrink: 0;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(30, 41, 59, 0.8);
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.fileButton:hover:not(:disabled) {
  background: rgba(51, 65, 85, 0.9);
  border-color: rgba(148, 163, 184, 0.7);
}

.fileButton:focus {
  outline: none;
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.fileButton:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.fileName {
  color: rgba(148, 163, 184, 0.8);
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hint {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.7);
  margin-top: 0.25rem;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.turnstile {
  margin-top: 0.5rem;
}

.submit {
  align-self: flex-start;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.submit:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -18px rgba(14, 165, 233, 0.9);
}

.submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.feedback {
  font-size: 0.9rem;
  margin: 0;
  min-height: 1.4em;
}

.success {
  color: #34d399;
}

.error {
  color: #f87171;
}
