:root {
  --rnc-red: #e1251b;
  --rnc-red-dark: #b81d14;
  --text: #2b2b2b;
  --text-muted: #4a4a4a;
  --label: #3a3a3a;
  --input-border: #cfd4d9;
  --input-border-focus: #8a9099;
  --input-bg: #ffffff;
  --placeholder: #9aa0a6;
  --bg: #f4f5f7;
  --required: #e1251b;
  --error: #c0392b;
  --success: #2e7d32;
  --radius: 4px;
  --gap: 14px;
  --font: "Open Sans", "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  display: flex;
  justify-content: center;
  padding: 32px 16px;
  min-height: 100vh;
}

.form-card {
  width: 100%;
  max-width: 560px;
  background: #ffffff;
  padding: 28px 32px 36px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.form-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.logo {
  height: 56px;
  width: auto;
  flex-shrink: 0;
}

.titles h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.2px;
  line-height: 1.15;
}

.subtitle {
  margin: 4px 0 0;
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 400;
}

.field-group {
  border: 0;
  padding: 0;
  margin: 0 0 18px;
}

legend,
.field-group > label {
  display: block;
  font-size: 15px;
  color: var(--label);
  font-weight: 500;
  margin-bottom: 8px;
  padding: 0;
}

.required {
  color: var(--required);
  margin-left: 2px;
}

.row {
  display: block;
  margin-bottom: var(--gap);
}

.row:last-child { margin-bottom: 0; }

.row.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  padding: 10px 12px;
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

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

input::placeholder,
textarea::placeholder {
  color: var(--placeholder);
}

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%23555' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--input-border-focus);
  box-shadow: 0 0 0 3px rgba(138, 144, 153, 0.18);
}

input:invalid.touched,
select:invalid.touched,
textarea:invalid.touched {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

#turnstile-widget {
  margin-top: 4px;
}

.actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--rnc-red);
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  border: 0;
  border-radius: var(--radius);
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.btn-submit:hover { background: var(--rnc-red-dark); }
.btn-submit:active { transform: translateY(1px); }
.btn-submit:disabled {
  background: #c5c8cc;
  cursor: not-allowed;
}

.btn-arrow {
  font-size: 18px;
  line-height: 1;
  transform: translateY(-1px);
}

.form-status {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  min-height: 1.4em;
}

.form-status.error { color: var(--error); }
.form-status.success { color: var(--success); }

@media (max-width: 480px) {
  .form-card { padding: 22px 18px 28px; }
  .form-header { gap: 12px; }
  .logo { height: 44px; }
  .titles h1 { font-size: 20px; }
  .row.two-col { grid-template-columns: 1fr; }
}
