:root {
  --bg: #f6f8fa;
  --card: #ffffff;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --muted: #6b7280;
  --error: #b91c1c;
  --success: #065f46;
  --radius: 12px;
  --max-width: 900px;
  --transition: all 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, Arial, sans-serif;
  line-height: 1.5;
  background: var(--bg);
  color: #111827;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1rem;
}

.container {
  width: 100%;
  max-width: var(--max-width);
}

.hero {
  text-align: center;
  margin-bottom: 2rem;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.25rem);
}

.hero p {
  margin: 0.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.1rem);
}

.form-card {
  background: var(--card);
  padding: 1.75rem;
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

label {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
  font-weight: 500;
}

.required {
  color: var(--error);
}

input[type="text"],
input[type="email"],
textarea {
  padding: 0.75rem;
  border: 1px solid #e6edf8;
  border-radius: 8px;
  font-size: 1rem;
  transition: var(--transition);
  width: 100%;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.actions {
  text-align: right;
  margin-top: 1rem;
}

button {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

button:hover {
  background: var(--accent-hover);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.loading-spinner {
  width: 1.25rem;
  height: 1.25rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.error {
  color: var(--error);
  font-size: 0.8125rem;
  min-height: 1.25rem;
  display: block;
  margin-top: 0.25rem;
}

.success {
  color: var(--success);
  margin-top: 1rem;
  font-weight: 600;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .form-card {
    padding: 1.25rem;
  }
  
  button {
    width: 100%;
    justify-content: center;
  }
}