:root {
  --blue: #2563eb;
  --red: #ef4444;
  --yellow: #facc15;
  --green: #22c55e;
  --dark: #111827;
  --light: #f9fafb;
  --text: #1f2937;
  --muted: #4b5563;
  --border: #e5e7eb;
}

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

body {
  font-family: Arial, sans-serif;
  background: #f4f7fb;
  color: var(--text);
  line-height: 1.6;
}

body::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(
    90deg,
    var(--blue) 0%,
    var(--blue) 25%,
    var(--red) 25%,
    var(--red) 50%,
    var(--yellow) 50%,
    var(--yellow) 75%,
    var(--green) 75%,
    var(--green) 100%
  );
}

.hero {
  background: linear-gradient(135deg, var(--dark), var(--blue));
  color: white;
  padding: 70px 10%;
}

.tagline {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 14px;
  color: #bfdbfe;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 44px;
  margin-bottom: 15px;
}

.hero h1::after {
  content: "";
  display: block;
  width: 180px;
  height: 6px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--blue),
    var(--red),
    var(--yellow),
    var(--green)
  );
}

.hero-text {
  max-width: 850px;
  font-size: 18px;
  color: #e5e7eb;
}

.container {
  width: 90%;
  max-width: 1250px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 25px;
}

.card {
  background: white;
  padding: 28px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(229, 231, 235, 0.8);
}

.card h2 {
  margin-bottom: 10px;
  color: var(--dark);
}

.card p {
  margin-bottom: 18px;
  color: var(--muted);
}

label {
  display: block;
  margin-top: 18px;
  margin-bottom: 6px;
  font-weight: bold;
  color: #374151;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  font-family: Arial, sans-serif;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

button {
  margin-top: 22px;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
}

.output-card {
  border-top: 6px solid var(--blue);
}

.output-box {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  margin-top: 16px;
}

.output-box h3 {
  margin-bottom: 8px;
  color: var(--dark);
}

.output-box p {
  color: #374151;
  margin-bottom: 0;
  white-space: pre-line;
}

.output-box.blue {
  border-left: 5px solid var(--blue);
}

.output-box.red {
  border-left: 5px solid var(--red);
}

.output-box.yellow {
  border-left: 5px solid var(--yellow);
}

.output-box.green {
  border-left: 5px solid var(--green);
}

footer {
  text-align: center;
  padding: 25px;
  color: #6b7280;
  font-size: 14px;
}

@media (max-width: 950px) {
  .container {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero {
    padding: 50px 7%;
  }
}
