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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.5;
}

.container {
  max-width: 640px;
  margin: 0 auto;
  padding: 16px;
}

header {
  text-align: center;
  margin-bottom: 24px;
}

.header-img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

h1 {
  font-size: 1.5rem;
  color: #1a365d;
}

.subtitle {
  color: #666;
  font-size: 0.9rem;
}

fieldset {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  background: #fff;
}

legend {
  font-weight: 600;
  color: #2d3748;
  padding: 0 8px;
  font-size: 1.05rem;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 4px;
  color: #4a5568;
}

.field.required > label::after {
  content: ' *';
  color: #e53e3e;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #4299e1;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.15);
}

input.error, select.error {
  border-color: #e53e3e;
}

small {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  color: #718096;
}

.checkbox-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.checkbox-group label {
  font-size: 0.88rem;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.hidden { display: none !important; }

.actions {
  text-align: center;
  margin: 24px 0;
}

button[type="submit"] {
  background: #2b6cb0;
  color: #fff;
  border: none;
  padding: 14px 40px;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

button[type="submit"]:hover { background: #2c5282; }
button[type="submit"]:disabled {
  background: #a0aec0;
  cursor: not-allowed;
}

.status {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.status.success {
  background: #c6f6d5;
  color: #22543d;
}

.status.error {
  background: #fed7d7;
  color: #742a2a;
}

.status.loading {
  background: #bee3f8;
  color: #2a4365;
}

input[type="file"] {
  padding: 8px;
  font-size: 0.9rem;
}
