/* Minimal styling — focus is the output, not the form. */
* { box-sizing: border-box; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  background: #fafafa;
  color: #1a1a1a;
  line-height: 1.5;
}

header, footer {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px;
}

header h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-weight: 700;
  color: #000;
}

.subtitle {
  margin: 0;
  color: #666;
  font-size: 14px;
  max-width: 640px;
}

main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 32px;
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
}

@media (max-width: 768px) {
  main { grid-template-columns: 1fr; }
}

.form-panel, .preview-panel {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 24px;
}

label {
  display: block;
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
}

.optional {
  color: #999;
  font-weight: 400;
  font-size: 12px;
}

input[type="text"], input[type="tel"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.15s;
}

input:focus {
  outline: none;
  border-color: #E91A8D;
  box-shadow: 0 0 0 3px rgba(233, 26, 141, 0.1);
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 24px;
}

button {
  flex: 1;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

button:hover {
  border-color: #999;
}

button.primary {
  background: #E91A8D;
  border-color: #E91A8D;
  color: #fff;
}

button.primary:hover {
  background: #c41277;
  border-color: #c41277;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status {
  margin: 12px 0 0;
  min-height: 18px;
  font-size: 13px;
  color: #4a8f4a;
  font-weight: 500;
}

.status.error { color: #c33; }

.preview-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 16px;
}

.preview {
  background: #f5f5f5;
  padding: 24px;
  border-radius: 6px;
  min-height: 200px;
  overflow-x: auto;
  position: relative;
}

.preview--sample {
  opacity: 0.7;
}

.preview--sample::after {
  content: "Sample data — fill the form to generate yours";
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #999;
  background: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

footer p {
  margin: 0;
  color: #999;
  font-size: 12px;
}

footer a {
  color: #666;
}
