*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top left, #e0f2fe, #f9fafb);
  color: #111827;
}

.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 16px 40px;
}

h1 {
  font-family: 'Cal Sans', system-ui, sans-serif;
  font-size: 2.3rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #0f172a;
}

.section {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 20px 28px;
  margin-bottom: 24px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
}

.section h2 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 1.4rem;
  color: #111827;
}

form {
  margin-top: 16px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  flex: 1;
  min-width: 230px;
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  flex: 1 0 100%;
}

label {
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: #374151;
}

input[type="text"],
input[type="email"],
input[type="url"],
select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  background: #f9fafb;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
  background: #ffffff;
}

.inline-group {
  display: flex;
  gap: 8px;
}

.inline-group select {
  max-width: 50%;
}

.inline-group input[type="text"] {
  flex: 1;
}

.error {
  margin-top: 4px;
  font-size: 0.8rem;
  color: #b91c1c;
}

.alert {
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.alert-success {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.alert-error ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.form-actions {
  text-align: center;
  margin-top: 12px;
}

.btn-primary {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.35);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 35px rgba(37, 99, 235, 0.45);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Mobile */
@media (max-width: 768px) {
  .container {
    margin: 16px auto 32px;
    padding: 0 12px 32px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .section {
    padding: 18px 14px 22px;
  }

  .form-row {
    flex-direction: column;
  }

  .inline-group {
    flex-direction: column;
  }

  .inline-group select {
    max-width: 100%;
  }
}
