:root {
  color-scheme: light;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: #1c1917;
  background: #fbfaf9;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  background: #fbfaf9;
}

.virty-frame {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow: hidden;
}

.virty-card {
  width: min(420px, 100%);
  flex: none;
  transform-origin: top center;
  padding: 16px 20px 14px;
  background: #fbfaf9;
  border: 1px solid #e7e2dc;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(22, 83, 45, 0.06);
}

.virty-logo {
  display: block;
  width: 168px;
  height: auto;
  margin: 0 0 10px;
}

h1 {
  margin: 0;
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.virty-lead {
  margin: 6px 0 12px;
  color: #57534e;
  font-size: 0.84rem;
  line-height: 1.35;
}

form {
  display: grid;
  gap: 8px;
}

label {
  display: grid;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.virty-optional {
  font-weight: 500;
  letter-spacing: 0;
  color: #78716c;
}

input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #e4dfd8;
  border-radius: 10px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: inherit;
  background: #fff;
}

input::placeholder {
  color: #a8a29e;
  font-weight: 450;
}

input:focus {
  outline: 2px solid #16a34a;
  outline-offset: 1px;
  border-color: #16a34a;
}

button {
  height: 40px;
  margin-top: 2px;
  border: 0;
  border-radius: 10px;
  background: #16a34a;
  color: #fbfaf9;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
}

button:hover {
  background: #15803d;
}

button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.virty-error {
  margin: 0;
  color: #b91c1c;
  font-size: 0.75rem;
  line-height: 1.3;
}

.virty-thanks {
  margin: 4px 0 8px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.virty-trap {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

.virty-consent {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  align-items: start;
  margin-top: 0;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.3;
  color: #57534e;
}

.virty-consent input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: #16a34a;
}

.virty-consent a {
  color: #15803d;
  font-weight: 650;
}
