:root {
  color-scheme: light;
  font-family: "Segoe UI", Arial, sans-serif;
  color: #1c2434;
  background: #f1f4f9;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: min(100%, 560px);
  padding: 36px;
  border: 1px solid #e0e6ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 50px #1b315014;
}

.eyebrow {
  margin: 0 0 8px;
  color: #3867d6;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.7rem, 5vw, 2.1rem);
}

.intro {
  margin: 12px 0 28px;
  color: #596579;
  line-height: 1.55;
}

form {
  display: grid;
  gap: 12px;
}

label {
  font-weight: 650;
}

input[type="tel"] {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #b9c4d5;
  border-radius: 8px;
  font: inherit;
}

input:focus-visible,
button:focus-visible {
  outline: 3px solid #88a9ff;
  outline-offset: 2px;
}

small {
  margin-top: -6px;
  color: #68758a;
  line-height: 1.45;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 10px 0 2px;
  font-weight: 500;
  line-height: 1.45;
}

.consent input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: 0 0 auto;
}

.warning {
  margin: 0;
  padding: 12px 14px;
  border-left: 4px solid #d69116;
  border-radius: 4px;
  background: #fff7e7;
  color: #62430d;
  font-size: 0.92rem;
  line-height: 1.5;
}

button {
  margin-top: 6px;
  padding: 13px 16px;
  border: 0;
  border-radius: 8px;
  background: #315fcb;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover:not(:disabled) {
  background: #244ca9;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

#activation-result-section {
  margin-top: 20px;
}

#activation-result-section[hidden] {
  display: none;
}

.activation {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #e0e6ef;
}

.activation > p {
  color: #596579;
  line-height: 1.55;
}

#result-section[hidden] {
  display: none;
}

h2 {
  margin: 0;
  font-size: 1.15rem;
}

pre {
  max-height: 320px;
  overflow: auto;
  padding: 14px;
  border-radius: 8px;
  background: #f3f5f8;
  color: #273247;
  font-size: 0.83rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

@media (max-width: 480px) {
  body {
    padding: 14px;
  }

  .card {
    padding: 24px 20px;
  }
}
