:root {
  --primary-color: #e60000;
  --secondary-color: #ffffff;
  --background-color: #f7f9fc;
  --border-color: #ddd;
  --text-color: #333;
  --highlight-color: #007acc;
  --info-background: #eef2f7;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

header {
  background: #000;
  text-align: center;
  padding: 20px 0;
}

header img {
  height: 50px;
}

.container {
  max-width: 800px;
  margin: 40px auto;
  background: var(--secondary-color);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

h1 {
  font-size: 32px;
  margin-bottom: 30px;
  text-align: center;
  color: var(--primary-color);
}

form {
  display: grid;
  gap: 24px;
}

label {
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

input, textarea, select {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--highlight-color);
  box-shadow: 0 0 10px rgba(0, 122, 204, 0.15);
  outline: none;
}

.form-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.form-row > div {
  flex: 1;
  min-width: 250px;
  display: flex;
  flex-direction: column;
}

.captcha-row, .checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}

#description {
  resize: vertical; 
}

.checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

button {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  padding: 16px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

button:hover {
  background: #cc0000;
  transform: translateY(-2px);
}

.note, .alternative {
  background: var(--info-background);
  border-left: 5px solid var(--primary-color);
  padding: 20px;
  border-radius: 8px;
  margin-top: 40px;
  font-size: 0.95rem;
}

.note a, .alternative a {
  color: var(--highlight-color);
  text-decoration: underline;
}

footer {
  text-align: center;
  font-size: 0.8rem;
  color: #888;
  margin-top: 60px;
  padding: 20px;
}

.captcha-row label {
  white-space: nowrap;
}

.captcha-row input[type="text"] {
  flex: 0 0 60px;
  width: 60px;
  max-width: 60px;
}

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }
  button {
    width: 100%;
  }
}
