:root {
  --tw-blue: #0356cc;
  --tw-blue-dark: #023f99;
  --tw-text: #14181f;
  --tw-muted: #5b6472;
  --tw-bg: #f5f7fa;
  --tw-border: #dbe1ea;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--tw-bg);
  color: var(--tw-text);
}

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 32px 16px 24px;
}

.page.center-view {
  justify-content: center;
}

.card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--tw-border);
  padding: 28px 24px;
  box-shadow: 0 4px 20px rgba(3, 86, 204, 0.06);
}

.brand-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tw-muted);
  margin-bottom: 6px;
}

.brand-logo {
  display: block;
  height: 29px;
  width: auto;
  margin-bottom: 22px;
}

h1 {
  font-size: 22px;
  line-height: 1.35;
  margin: 0 0 8px;
}

.trust-line {
  color: var(--tw-muted);
  font-size: 13px;
  font-style: italic;
  line-height: 1.4;
  margin: 0 0 14px;
}

p.lead {
  color: var(--tw-muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 24px;
}

.incentive-box {
  background: rgba(3, 86, 204, 0.06);
  border: 1px solid rgba(3, 86, 204, 0.12);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 24px;
}

.incentive-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--tw-text);
  margin: 0 0 4px;
}

.incentive-text {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--tw-muted);
  margin: 0;
}

.incentive-text strong {
  color: var(--tw-blue);
  font-weight: 700;
}

.field {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--tw-text);
}

.optional-tag {
  font-weight: 400;
  color: var(--tw-muted);
  font-size: 12px;
}

.contact-methods .field {
  margin-bottom: 16px;
}

.contact-methods .hint {
  margin: -4px 0 4px;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea {
  width: 100%;
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--tw-border);
  border-radius: 10px;
  background: #fff;
  color: var(--tw-text);
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--tw-blue);
  box-shadow: 0 0 0 3px rgba(3, 86, 204, 0.12);
}

textarea {
  resize: vertical;
}

.optional-details {
  margin-bottom: 16px;
  border: none;
}

.optional-details summary {
  list-style: none;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tw-blue);
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  user-select: none;
}

.optional-details summary::-webkit-details-marker {
  display: none;
}

.optional-details summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(3, 86, 204, 0.1);
  color: var(--tw-blue);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.optional-details[open] summary::before {
  content: "–";
}

.optional-details summary:hover {
  color: var(--tw-blue-dark);
}

.optional-fields {
  padding-top: 14px;
}

.optional-fields .field:last-child {
  margin-bottom: 0;
}

.checkbox-field {
  margin-top: 20px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--tw-muted);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  accent-color: var(--tw-blue);
  flex-shrink: 0;
}

.error {
  display: block;
  color: #c62828;
  font-size: 12.5px;
  margin-top: 5px;
  min-height: 0;
}

.hint {
  color: var(--tw-muted);
  font-size: 12.5px;
  margin: -8px 0 16px;
}

.hint.error {
  color: #c62828;
}

.form-error {
  background: #fdecea;
  border: 1px solid #f3c2bd;
  color: #c62828;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  margin-bottom: 16px;
}

.btn-primary {
  width: 100%;
  min-height: 52px;
  padding: 15px 16px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--tw-blue);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-primary:hover {
  background: var(--tw-blue-dark);
}

.btn-primary:active {
  background: var(--tw-blue-dark);
  transform: scale(0.98);
}

.btn-primary:disabled {
  background: #9db6de;
  cursor: not-allowed;
  transform: none;
}

.link-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  color: var(--tw-muted);
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: var(--tw-border);
  cursor: pointer;
  padding: 14px 4px 0;
  font-family: inherit;
}

.link-btn:hover {
  color: var(--tw-blue);
}

.success-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--tw-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.site-footer {
  width: 100%;
  max-width: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 0 8px;
  font-size: 11.5px;
  color: var(--tw-muted);
  text-align: center;
}

.site-footer .footer-links {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-footer a {
  color: var(--tw-muted);
  text-decoration: underline;
  text-decoration-color: var(--tw-border);
}

.site-footer a:hover {
  color: var(--tw-blue);
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.benefit-list li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--tw-text);
  padding-left: 22px;
  position: relative;
}

.benefit-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--tw-blue);
  font-weight: 700;
}

#error-view a {
  color: var(--tw-blue);
}
