@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap");

:root {
  --bg: #e8eaee;
  --bg-accent: radial-gradient(120% 80% at 10% 0%, #dfe7f5 0%, transparent 55%),
    radial-gradient(90% 70% at 100% 10%, #f3e7d8 0%, transparent 50%),
    #e8eaee;
  --card: #ffffff;
  --ink: #1a1d23;
  --muted: #5c6570;
  --line: #d5dae1;
  --field: #f7f8fa;
  --brand: #e85d04;
  --brand-ink: #fff;
  --ok: #1b7f4c;
  --warn: #b45309;
  --danger: #c0392b;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(26, 29, 35, 0.08);
  font-family: "DM Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg-accent);
  color: var(--ink);
}

body {
  display: grid;
  place-items: start center;
  padding: 40px 16px 64px;
}

.page {
  width: min(560px, 100%);
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px 28px;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.card-head {
  text-align: center;
  margin-bottom: 28px;
}

.logo {
  display: block;
  width: min(280px, 72vw);
  height: auto;
  max-height: 120px;
  object-fit: contain;
  margin: 0 auto 18px;
}

h1 {
  margin: 0 0 8px;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
}

.lede {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.98rem;
}

/* Off-screen honeypot — not display:none so naive bots still fill it. */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.field>span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3d4652;
}

.field em {
  font-style: normal;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

.hint {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--field);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}

input:focus,
select:focus {
  outline: none;
  border-color: #f4a261;
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.15);
  background: #fff;
}

.subdomain {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--field);
}

.subdomain input {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.subdomain .suffix {
  display: grid;
  place-items: center;
  padding: 0 14px;
  background: #eef1f5;
  color: #4b5563;
  font-weight: 600;
  border-left: 1px solid var(--line);
  white-space: nowrap;
}

.subdomain:focus-within {
  border-color: #f4a261;
  box-shadow: 0 0 0 3px rgba(232, 93, 4, 0.15);
  background: #fff;
}

.address {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px 2px;
  margin: 8px 0 18px;
  background: #fbfbfc;
}

.address legend {
  padding: 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3d4652;
}

.row {
  display: flex;
  gap: 12px;
}

.grow {
  flex: 1;
}

.nr {
  width: 88px;
  flex: 0 0 88px;
}

.zip {
  width: 110px;
  flex: 0 0 110px;
}

.vat-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.strength {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 4px;
}

.strength i {
  display: block;
  height: 5px;
  border-radius: 99px;
  background: #d9dee6;
}

.strength[data-level="1"] i:nth-child(-n+1) {
  background: #e74c3c;
}

.strength[data-level="2"] i:nth-child(-n+2) {
  background: #e67e22;
}

.strength[data-level="3"] i:nth-child(-n+3) {
  background: #f1c40f;
}

.strength[data-level="4"] i:nth-child(-n+4) {
  background: #27ae60;
}

.btn {
  appearance: none;
  border: 0;
  border-radius: 12px;
  padding: 13px 18px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.btn.primary {
  width: 100%;
  background: linear-gradient(135deg, #e85d04, #f48c06);
  color: var(--brand-ink);
  box-shadow: 0 10px 24px rgba(232, 93, 4, 0.25);
  margin-top: 8px;
}

.btn.primary:hover {
  filter: brightness(1.03);
}

.btn.primary:disabled {
  opacity: 0.65;
  cursor: wait;
  filter: none;
}

.btn.secondary {
  background: #eef1f5;
  color: #334155;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 18px 0 0;
}

.foot a {
  color: var(--brand);
  font-weight: 600;
}

.alert {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 0.92rem;
  line-height: 1.4;
}

.alert.error {
  background: #fdecea;
  color: var(--danger);
  border: 1px solid #f5c6cb;
}

.alert.ok {
  background: #eaf7f0;
  color: var(--ok);
  border: 1px solid #b7e4c7;
}

.success {
  text-align: center;
}

.success .url {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 20px 0 24px;
  word-break: break-all;
}

.success .url a {
  color: var(--brand);
}

.hint.ok {
  color: var(--ok);
}

.hint.bad {
  color: var(--danger);
}

.hint.warn {
  color: var(--warn);
}

@media (max-width: 520px) {
  .card {
    padding: 28px 18px 22px;
  }

  .row {
    flex-direction: column;
  }

  .nr,
  .zip {
    width: 100%;
    flex: 1;
  }

  .vat-row {
    grid-template-columns: 1fr;
  }
}