*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  color: #333;
}

.container {
  width: 100%;
  max-width: 520px;
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 0.4rem;
}

.subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.4rem;
}

input[type='text'],
input[type='email'],
textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #111827;
  background: #f9fafb;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

input[type='text']:focus,
input[type='email']:focus,
textarea:focus {
  border-color: #f6821f;
  box-shadow: 0 0 0 3px rgba(246, 130, 31, 0.15);
  background: #fff;
}

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

button[type='submit'] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: #f6821f;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 0.5rem;
}

button[type='submit']:hover:not(:disabled) {
  background: #e5701a;
}

button[type='submit']:active:not(:disabled) {
  transform: scale(0.98);
}

button[type='submit']:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Cloudflare-brand orange accent */
button[type='submit'] {
  background: linear-gradient(90deg, #f6821f 0%, #fbad41 100%);
}

button[type='submit']:hover:not(:disabled) {
  background: linear-gradient(90deg, #e5701a 0%, #f6821f 100%);
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.result {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1.25rem;
}

.result.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.result.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.hidden {
  display: none;
}

@media (max-width: 480px) {
  .card {
    padding: 1.75rem 1.25rem;
  }
}
