*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #080739;
  --blue: #3c5599;
  --cyan: #5ac1da;
  --accent: #e622a5;
  --text: #1b2a4a;
  --muted: #64748b;
  --bg: #f5f7fa;
  --card: #ffffff;
  --border: #d9e2ec;
  --color-error: #c62828;
}

body {
  font-family: 'Sora', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 500px at 0% 0%, rgba(90, 193, 218, 0.14), transparent 60%),
    radial-gradient(800px 400px at 100% 0%, rgba(60, 85, 153, 0.1), transparent 55%),
    var(--bg);
  min-height: 100vh;
  padding: 24px 14px 100px;
  line-height: 1.6;
}

.page-wrap {
  max-width: 760px;
  margin: 0 auto;
  min-height: calc(100vh - 124px);
  display: flex;
  align-items: center;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(8, 7, 57, 0.1);
  overflow: hidden;
  width: 100%;
}

.card-error {
  border-color: #fecaca;
}

.card-header {
  padding: 26px 24px 18px;
  text-align: center;
  border-bottom: 1px solid #e8eef5;
}

.logo-link {
  display: inline-block;
  margin-bottom: 12px;
}

.logo {
  width: 220px;
  max-width: 80vw;
  height: auto;
  display: block;
}

.service-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(90, 193, 218, 0.15);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.card-body {
  padding: 22px 24px 28px;
  text-align: center;
}

.progress-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
}

.pstep {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}

.pstep + .pstep::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin-right: 6px;
}

.pstep-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef2f7;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}

.pstep.active {
  color: var(--navy);
}

.pstep.active .pstep-dot {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
}

.pstep.done {
  color: var(--blue);
}

.pstep.done .pstep-dot {
  background: rgba(90, 193, 218, 0.22);
  color: var(--blue);
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid rgba(60, 85, 153, 0.15);
  border-top-color: var(--blue);
  border-radius: 50%;
  margin: 0 auto 1rem;
  animation: spin 0.9s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation: none;
    border-top-color: var(--blue);
    opacity: 0.85;
  }
}

.reassurance {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 1.25rem;
}

.reassurance-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--blue);
  background: rgba(90, 193, 218, 0.12);
  border: 1px solid rgba(90, 193, 218, 0.35);
  padding: 6px 12px;
  border-radius: 999px;
}

h1 {
  font-size: 1.32rem;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.35;
}

.subtitle,
.card-body > p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.form-group {
  text-align: left;
  margin-bottom: 1.25rem;
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--navy);
}

input[type="email"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="email"]:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(90, 193, 218, 0.25);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s, opacity 0.18s;
}

.btn:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  color: #fff !important;
  box-shadow: 0 8px 26px rgba(60, 85, 153, 0.34);
}

.btn-success {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  color: #fff !important;
  box-shadow: 0 8px 26px rgba(60, 85, 153, 0.34);
}

.btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--border);
  box-shadow: none;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.icon-success { color: var(--cyan); }
.icon-pending { color: var(--blue); }
.icon-help { color: var(--accent); }

.status-heading {
  color: var(--navy);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.service-description {
  max-width: 580px;
  margin: 0 auto 1rem;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: none;
  text-align: left;
}

.alert-error {
  background: #fef2f2;
  color: var(--color-error);
  border: 1px solid #fecaca;
}

.alert.visible {
  display: block;
}

.contact-info {
  background: #f8faff;
  border: 1px solid #c7d5f8;
  border-radius: 12px;
  padding: 14px;
  margin: 1rem 0;
  text-align: left;
}

.contact-info p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
}

.contact-info a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}

.contact-info a:hover {
  text-decoration: underline;
}

.contact-hint {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

.card-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid #c7d5f8;
  border-radius: 12px;
  background: #f8faff;
  text-align: left;
  margin-bottom: 1rem;
}

.notice-icon {
  font-size: 1.2rem;
  line-height: 1;
  margin-top: 2px;
  flex-shrink: 0;
}

.notice p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}

.how {
  padding: 16px 14px;
  border: 1px solid #e4eaf2;
  border-radius: 14px;
  background: #fff;
  text-align: left;
}

.how h2 {
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 12px;
}

.steps {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(60, 85, 153, 0.12);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
}

.step p {
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.55;
  padding-top: 3px;
}

.cta-wrap {
  display: grid;
  gap: 10px;
  justify-items: center;
  margin: 1rem 0;
}

.points {
  display: grid;
  gap: 8px;
  font-size: 0.82rem;
  color: #475569;
  margin-top: 1rem;
  text-align: left;
}

.point {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  flex-shrink: 0;
}

.help-link {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 1rem;
}

.help-link a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.help-link a:hover {
  text-decoration: underline;
}

.company-choice {
  display: grid;
  gap: 14px;
  text-align: left;
  margin-top: 0.5rem;
}

.company-choice[hidden] {
  display: none !important;
}

.company-choice-intro {
  color: #475569;
  font-size: 0.95rem;
}

.company-list {
  display: grid;
  gap: 10px;
}

.company-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  background: #f8fafc;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.company-option:hover {
  border-color: var(--blue);
}

.company-option:has(input:checked) {
  border-color: var(--blue);
  background: rgba(60, 85, 153, 0.08);
}

.company-option input {
  margin-top: 4px;
  accent-color: var(--blue);
}

.company-option-text {
  display: grid;
  gap: 2px;
}

.company-option-text strong {
  color: var(--navy);
  font-size: 0.95rem;
}

.company-option-meta {
  color: var(--muted);
  font-size: 0.82rem;
}

.already-installed {
  display: grid;
  gap: 16px;
  text-align: left;
}

.already-installed[hidden] {
  display: none !important;
}

.help-block {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8faff;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
  color: #475569;
}

.help-block-title {
  margin: 0;
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
}

.help-block a:not(.btn) {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.help-block a:not(.btn):hover {
  text-decoration: underline;
}

.help-block .btn,
.help-block a.btn {
  margin-top: 8px;
  justify-self: stretch;
  width: 100%;
  color: #fff !important;
  text-decoration: none !important;
}

.help-block .btn:hover,
.help-block a.btn:hover {
  color: #fff !important;
  text-decoration: none !important;
  opacity: 0.92;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  text-align: center;
  background: var(--bg);
  border-top: 1px solid #e2e8f0;
  padding: 10px 14px;
  color: #94a3b8;
  font-size: 0.74rem;
  line-height: 1.5;
  z-index: 10;
}

.site-footer a {
  color: #1b2a4a;
  text-decoration: none;
  font-weight: 700;
}

.site-footer-legal a {
  color: #94a3b8;
  font-weight: 600;
}

.site-footer-legal a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  h1 { font-size: 1.18rem; }
  .card { border-radius: 14px; }
  .card-body { padding: 18px 16px 24px; }
}
