:root {
  --primary: #0077cc;
  --primary-dark: #005fa3;
  --bg: #f4f6f9;
  --text: #333;
  --ok: #1f8f3a;
  --warn: #b7791f;
  --err: #c0392b;
}

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

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 50px auto;
  padding: 20px;
  background: white;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  border-radius: 10px;
}

.logos {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 0 0 20px 0;
  padding: 0 16px;
}

.logo {
  max-width: 200px;
  height: auto;
}

h1 {
  text-align: center;
  color: var(--primary);
  font-size: 2rem;
  margin: 0 0 20px 0;
}

textarea {
  width: 100%;
  height: 280px;
  padding: 15px;
  margin-bottom: 14px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  resize: none;
  transition: border-color 0.3s ease;
}

textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 5px rgba(0, 119, 204, 0.2);
}

.row {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  gap: 6px;
}

select {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  min-width: 220px;
}

.label.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  user-select: none;
}

button {
  display: block;
  width: 100%;
  padding: 15px;
  background: var(--primary);
  color: white;
  font-size: 18px;
  font-weight: bold;
  text-transform: uppercase;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.1s ease;
}

button:hover { background: var(--primary-dark); }
button:active { transform: scale(0.98); }
button:disabled { opacity: 0.6; cursor: not-allowed; }

.pill {
  margin-top: 14px;
  display: inline-block;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid #e5e7eb;
  color: #444;
  background: #fff;
}

.pill.ok { border-color: rgba(31,143,58,0.3); color: var(--ok); }
.pill.warn { border-color: rgba(183,121,31,0.3); color: var(--warn); }
.pill.err { border-color: rgba(192,57,43,0.3); color: var(--err); }

.result {
  margin-top: 20px;
  padding: 20px;
  background-color: #e9f7fe;
  border-left: 5px solid var(--primary);
  border-radius: 8px;
  font-size: 16px;
  color: var(--text);
  line-height: 1.4;
}

.result h2 { margin-top: 0; }

.meta {
  margin-top: 10px;
  font-size: 13px;
  opacity: 0.85;
}

.error {
  margin-top: 20px;
  padding: 20px;
  background-color: #fdecea;
  border-left: 5px solid var(--err);
  border-radius: 8px;
  color: var(--err);
  font-size: 16px;
  line-height: 1.4;
}

.error h2 { margin-top: 0; }

.hidden { display: none; }

@media (max-width: 600px) {
  h1 { font-size: 1.5rem; }
  textarea { height: 160px; font-size: 14px; }
  button { font-size: 16px; padding: 12px; }
  select { min-width: 160px; }
}