:root {
  --accent: #1ca9e4;
  --accent-dark: #139fda;
  --text: #111317;
  --muted: #67727a;
  --placeholder: #b8bdbf;
  --panel: #f3f5f8;
  --bg: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  font-family: "Noto Sans Georgian", sans-serif;
  color: var(--text);
}

body {
  min-height: 100vh;
}

.screen {
  width: 100%;
  max-width: 768px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 24px 28px;
  display: flex;
  flex-direction: column;
}

.content {
  padding-top: 34px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

h1 {
  margin: 0 0 26px;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 0.98;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.subtitle {
  margin: 0;
  font-size: clamp(0.92rem, 1.8vw, 0.2rem);
  line-height: 1.34;
  font-weight: 700;
  color: var(--muted);
}

.subtitle a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 800;
}

.status-message {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff1f1;
  color: #c23434;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 800;
}

.phone-form {
  margin-top: 72px;
  display: grid;
  grid-template-columns: 30% 70%;
  gap: 16px;
  align-items: stretch;
}

.form-note {
  margin: 24px 0 0;
  max-width: 36rem;
  font-size: 14.9px;
  line-height: 1.45;
  font-weight: 700;
  color: var(--muted);
}

.country-box {
  min-height: 72px;
  padding: 0 18px;
  border-radius: 18px;
  background: var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.flag {
  position: relative;
  width: 54px;
  height: 38px;
  flex: 0 0 auto;
}

.flag-cross {
  position: absolute;
  background: #ff2f2f;
  border-radius: 1px;
}

.flag-cross.vertical {
  top: 1px;
  left: 24px;
  width: 6px;
  height: 36px;
}

.flag-cross.horizontal {
  top: 16px;
  left: 4px;
  width: 46px;
  height: 6px;
}

.flag-star {
  position: absolute;
  width: 8px;
  height: 8px;
}

.flag-star::before,
.flag-star::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  background: #ff2f2f;
  border-radius: 1px;
}

.flag-star::before {
  width: 8px;
  height: 2px;
  top: 3px;
}

.flag-star::after {
  width: 2px;
  height: 8px;
  left: 3px;
}

.star-1 {
  left: 7px;
  top: 6px;
}

.star-2 {
  left: 7px;
  bottom: 6px;
}

.star-3 {
  right: 7px;
  top: 6px;
}

.star-4 {
  right: 7px;
  bottom: 6px;
}

.country-code {
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
  font-weight: 700;
  color: #4f5961;
  letter-spacing: -0.03em;
}

.phone-input {
  width: 90%;
  min-height: 72px;
  padding: 0 28px;
  border-radius: 18px;
  border: 4px solid var(--accent);
  outline: none;
  font: inherit;
  font-size: clamp(1.4rem, 2.8vw, 1.5rem);
  line-height: 1;
  font-weight: 700;
  color: #000000;
  background: #fff;
}

.phone-input::placeholder {
  color: var(--placeholder);
}

.phone-input.is-invalid {
  border-color: #d13a3a;
  background: #fff4f4;
}

.continue-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  width: 100%;
  min-height: 60px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #f8fbfd;
  font-family: inherit;
  font-size: clamp(1.15rem, 3vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(28, 169, 228, 0.2);
}

.continue-button:disabled {
  cursor: wait;
  opacity: 0.75;
}

.button-spinner {
  display: none;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.continue-button.is-loading .button-label {
  display: none;
}

.continue-button.is-loading .button-spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 680px) {
  .screen {
    padding: 18px 18px 24px;
  }

  .content {
    padding-top: 22px;
  }

  .phone-form {
    margin-top: 56px;
    gap: 16px;
  }

  .country-box,
  .phone-input {
    min-height: 64px;
  }

  .continue-button {
    min-height: 58px;
    margin-top: auto;
  }
}
