* { box-sizing: border-box; }

body {
  margin: 0;
  background: #f5f5f3;
  font-family: Helvetica, Arial, sans-serif;
  color: #111111;
}

.page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 3rem 1.25rem;
}

.card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  padding: 1.75rem 2rem 2.5rem;
}

.lang-row {
  position: relative;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2.5rem;
}

.lang-btn {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 4px 2px 2px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 1px;
  color: #9b9b9b;
}

.lang-btn .icon { width: 14px; height: 14px; color: #9b9b9b; }

.lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 6px;
  background: #ffffff;
  border: 1px solid #e5e5e3;
  z-index: 10;
  min-width: 120px;
}

.lang-menu.hidden { display: none; }

.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  color: #111111;
}

.lang-menu button:hover { background: #f5f5f3; }

.brand {
  text-align: center;
  margin: 1.5rem 0 3rem;
}

.brand img {
  height: 25px;
  width: auto;
  max-width: 100%;
}

.field { margin-bottom: 1.5rem; }

.row {
  display: grid;
  gap: 16px;
  align-items: end;
}

.row-name-gender { grid-template-columns: 1fr auto; }
.row-phone { grid-template-columns: auto 1fr; gap: 8px; }
.row-phone .field-line:last-child { border-bottom: 1px solid #cccccc; }
.row-birth { grid-template-columns: 1.2fr 1fr 1fr; }
.row-address { grid-template-columns: 1fr 1fr; margin-bottom: 12px; }

label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #6a6a6a;
  text-transform: uppercase;
  margin-bottom: 6px;
}

label .hint {
  text-transform: none;
  letter-spacing: 0.5px;
  color: #9b9b9b;
  font-size: 11px;
}

label[data-i18n="label_email"] {
  text-transform: none;
}

html[lang="en"] label,
html[lang="es"] label {
  text-transform: none;
  letter-spacing: 0;
}

html[lang="en"] label .hint,
html[lang="es"] label .hint {
  letter-spacing: 0;
}

.field-name .field-line { width: 90%; }

.field-line {
  border-bottom: 1px solid #cccccc;
  padding: 10px 2px 3px;
}

.field-line input,
.field-line select {
  width: 100%;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
  font-size: 12px;
  color: #111111;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

.field-line input::placeholder { color: #9b9b9b; }

.country-code-line {
  border-bottom: none;
  display: flex;
  align-items: baseline;
  gap: 0.3em;
  padding-bottom: 0;
}

.country-code-line .prefix {
  font-size: 12px;
  color: #9b9b9b;
}

.country-code-line input {
  width: 4ch;
  flex: none;
  text-align: center;
}

.select-line {
  position: relative;
}

.select-line select {
  padding-right: 24px;
  color: #9b9b9b;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.select-line select:invalid { color: #9b9b9b; }
.select-line select:valid { color: #111111; }

.select-line::after {
  content: '';
  position: absolute;
  right: 2px;
  bottom: 7px;
  width: 8px;
  height: 8px;
  border-right: 1.4px solid #9b9b9b;
  border-bottom: 1.4px solid #9b9b9b;
  transform: rotate(45deg);
  pointer-events: none;
}

.pills {
  display: flex;
  gap: 6px;
}

.pill {
  font-family: inherit;
  font-size: 12px;
  padding: 4px 12px;
  border: 1px solid #dddddd;
  background: #ffffff;
  color: #9b9b9b;
  cursor: pointer;
  white-space: nowrap;
}

.pill.active {
  border-color: #111111;
  color: #111111;
}

.address-block {
  margin-top: 16px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 2rem;
  cursor: pointer;
  text-transform: none;
}

.consent input {
  width: 14px;
  height: 14px;
  margin: 2px 0 0;
  flex-shrink: 0;
  accent-color: #111111;
}

.consent span,
.consent a {
  font-size: 12px;
  color: #6a6a6a;
  line-height: 1.6;
}

.consent a {
  color: #111111;
  text-decoration: underline;
}

.submit-btn {
  display: block;
  width: 100%;
  background: #111111;
  color: #ffffff;
  border: none;
  text-align: center;
  padding: 14px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
}

.submit-btn:disabled { opacity: 0.5; cursor: default; }

.form-error {
  color: #b23b3b;
  font-size: 12px;
  margin-top: 12px;
  text-align: center;
}

.hidden { display: none !important; }

.success-panel {
  text-align: center;
  padding: 3rem 0;
}

.success-check {
  width: 45px;
  height: 45px;
  margin: 0 auto 1.5rem;
  display: block;
}

.success-panel p {
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #111111;
  line-height: 1.7;
}
