:root {
  --page-bg: #f7f7f7;
  --text: #25343a;
  --muted: #6a7782;
  --faint: #a9aeb2;
  --field: #f1f2f2;
  --accent: #ff5a48;
  --button: #ffd5c9;
  --button-active: #ff725f;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
}

button,
input {
  font: inherit;
}

.phone-screen {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
}

.status-bar {
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 24px;
  color: #050505;
  font-family: Arial, sans-serif;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0;
}

.status-icons {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 800;
}

.silent-icon {
  position: relative;
  width: 15px;
  height: 15px;
  display: inline-block;
  transform: rotate(-42deg);
}

.silent-icon::before,
.silent-icon::after {
  content: "";
  position: absolute;
  background: #050505;
}

.silent-icon::before {
  left: 3px;
  top: 2px;
  width: 8px;
  height: 14px;
  border-radius: 2px;
}

.silent-icon::after {
  left: -2px;
  top: 8px;
  width: 22px;
  height: 3px;
  border-radius: 999px;
}

.signal-icon {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}

.signal-icon i {
  width: 4px;
  border-radius: 2px;
  background: #050505;
}

.signal-icon i:nth-child(1) { height: 6px; }
.signal-icon i:nth-child(2) { height: 9px; }
.signal-icon i:nth-child(3) { height: 12px; }
.signal-icon i:nth-child(4) { height: 16px; }

.lte-text {
  line-height: 1;
}

.battery-pill {
  min-width: 30px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #a7a8ad;
  color: #ffffff;
  font-size: 14px;
  line-height: 1;
}

.screen-header {
  min-height: 42px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.icon-button {
  position: relative;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.arrow-shaft {
  position: absolute;
  top: 14px;
  left: 5px;
  width: 22px;
  height: 2.5px;
  border-radius: 999px;
  background: var(--text);
}

.arrow-shaft::before,
.arrow-shaft::after {
  content: "";
  position: absolute;
  left: 0;
  width: 12px;
  height: 2.5px;
  border-radius: 999px;
  background: var(--text);
  transform-origin: left center;
}

.arrow-shaft::before {
  transform: rotate(-43deg);
}

.arrow-shaft::after {
  transform: rotate(43deg);
}

.brand-mark {
  color: var(--text);
  font-size: 25px;
  font-weight: 800;
  line-height: 1;
}

.intro-copy {
  margin-top: 22px;
  text-align: center;
}

.intro-copy h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.25;
}

.intro-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 400;
}

.status-message {
  margin: 22px 0 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff0ec;
  color: var(--accent);
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
}

.phone-form {
  margin-top: 42px;
}

.status-message:not([hidden]) + .phone-form {
  margin-top: 12px;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: #243840;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.phone-row {
  min-height: 54px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 13px;
  background: var(--field);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.step-row {
  margin-top: 11px;
}

.step-row[hidden] {
  display: none;
}

.phone-form.has-error .phone-row {
  box-shadow: 0 0 0 2px rgba(255, 90, 72, 0.35);
}

.phone-form.is-focused .phone-row {
  background: #eeeeee;
  box-shadow: 0 0 0 2px rgba(37, 52, 58, 0.08);
}

.floating-field {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.floating-label {
  position: absolute;
  inset-inline-start: 0;
  color: #c4c5c5;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.phone-row.is-raised .floating-label {
  opacity: 0;
}

.phone-input {
  width: 100%;
  height: 34px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
}

.phone-input::placeholder {
  color: transparent;
}

.example-text {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.3;
}

.hint-row {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 11px;
  align-items: flex-start;
}

.hint-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.hint-row p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.3;
}

.bottom-area {
  margin-top: auto;
  padding-top: 28px;
}

.helper-copy {
  margin-bottom: 20px;
  text-align: center;
}

.ghost-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.helper-copy p {
  max-width: 360px;
  margin: 6px auto 0;
  color: #2f3d45;
  font-size: 15px;
  line-height: 1.35;
}

.primary-button {
  position: relative;
  width: 100%;
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 0;
  border-radius: 24px;
  background: var(--button-active);
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.primary-button:disabled {
  background: var(--button);
  color: rgba(255, 255, 255, 0.78);
  cursor: not-allowed;
}

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

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

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

.error-modal[hidden] {
  display: none;
}

.error-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.error-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 27, 0.45);
}

.error-modal__card {
  position: relative;
  width: min(100%, 420px);
  padding: 28px 24px 24px;
  border-radius: 22px;
  background: #ffffff;
  color: var(--text);
  text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.error-modal__title {
  margin: 0;
  color: var(--accent);
  font-size: 24px;
  font-weight: 800;
}

.error-modal__text {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
}

.error-modal__button {
  width: 100%;
  min-height: 56px;
  margin-top: 24px;
  border: 0;
  border-radius: 24px;
  background: var(--button-active);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

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

@media (max-width: 430px) {
  .phone-screen {
    padding: 20px 20px 24px;
  }

  .status-bar {
    padding: 0 22px;
    font-size: 21px;
  }

  .screen-header {
    margin-top: 16px;
  }

  .intro-copy {
    margin-top: 22px;
  }

  .intro-copy p {
    font-size: 16px;
  }

  .phone-form {
    margin-top: 42px;
  }

  .helper-copy p {
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .phone-screen {
    padding-inline: 18px;
  }

  .status-bar {
    padding-inline: 24px;
  }

  .intro-copy p,
  .hint-row p,
  .helper-copy p {
    font-size: 14px;
  }

  .ghost-link {
    font-size: 15px;
  }
}
