:root {
  --page-bg-start: #f8fbff;
  --page-bg-end: #e4eef7;
  --text-main: #163247;
  --text-muted: #688095;
  --line-soft: rgba(22, 50, 71, 0.08);
  --card-shadow: 0 28px 64px rgba(22, 50, 71, 0.12);
  --accent-red: #d14b4b;
  --accent-dark: #17324a;
  --accent-blue: #2f8fa7;
}

body {
  min-height: 100vh;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(209, 75, 75, 0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(47, 143, 167, 0.12), transparent 26%),
    linear-gradient(180deg, var(--page-bg-start) 0%, var(--page-bg-end) 100%);
}

.page-shell {
  min-height: 100vh;
}

.form-card,
.info-card {
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: var(--card-shadow);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-red);
}

.lead {
  font-size: 1.05rem;
}

.form-control,
.form-select {
  min-height: 3.8rem;
  border-radius: 1rem;
  border: 1px solid rgba(22, 50, 71, 0.12);
  box-shadow: none;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(47, 143, 167, 0.45);
  box-shadow: 0 0 0 0.28rem rgba(47, 143, 167, 0.16);
}

.country-autocomplete {
  position: relative;
}

.country-suggestions {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 30;
  display: grid;
  gap: 0.25rem;
  max-height: 16rem;
  padding: 0.45rem;
  overflow-y: auto;
  border: 1px solid rgba(22, 50, 71, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.98);
}

.country-suggestion {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border: 0;
  border-radius: 0.85rem;
  background: transparent;
  color: var(--text-main);
  text-align: left;
}

.country-suggestion small {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.country-suggestion:hover,
.country-suggestion.is-active {
  background: rgba(47, 143, 167, 0.1);
}

.btn-danger {
  background: linear-gradient(135deg, #cf4545, #e16262);
  border: 0;
}

.btn-danger:hover,
.btn-danger:focus {
  background: linear-gradient(135deg, #bd3e3e, #d65656);
}

.role-group {
  min-height: 100%;
  padding: 1rem 1rem 0.85rem;
  border: 1px solid rgba(22, 50, 71, 0.12);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
}

.role-group.is-invalid {
  border-color: var(--bs-danger);
}

.role-group-label {
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
}

.role-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.role-option {
  position: relative;
  margin: 0;
  cursor: pointer;
}

.role-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 8.5rem;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(22, 50, 71, 0.12);
  border-radius: 999px;
  background: rgba(248, 251, 255, 0.86);
  color: var(--text-main);
  font-weight: 600;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.role-option:hover .role-chip,
.role-checkbox:focus-visible + .role-chip {
  border-color: rgba(47, 143, 167, 0.32);
  transform: translateY(-1px);
}

.role-checkbox:checked + .role-chip {
  border-color: rgba(209, 75, 75, 0.3);
  background: rgba(209, 75, 75, 0.12);
  color: #a12f2f;
  box-shadow: 0 12px 24px rgba(209, 75, 75, 0.12);
}

.device-card {
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at top left, rgba(209, 75, 75, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 252, 0.95));
}

.download-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.download-icon-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text-main);
}

.download-icon-shell {
  width: 5.5rem;
  height: 5.5rem;
  display: grid;
  place-items: center;
  border-radius: 1.5rem;
  border: 1px solid rgba(22, 50, 71, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 34px rgba(22, 50, 71, 0.1);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.download-icon-shell svg {
  width: 2.5rem;
  height: 2.5rem;
  fill: currentColor;
}

.download-icon-vcard {
  color: var(--accent-dark);
}

.download-icon-link:hover .download-icon-shell,
.download-icon-link:focus-visible .download-icon-shell {
  transform: translateY(-2px);
  border-color: rgba(209, 75, 75, 0.18);
  box-shadow: 0 22px 40px rgba(22, 50, 71, 0.14);
}

.download-caption {
  margin-top: 1rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 991.98px) {
  .download-icon-shell {
    width: 5rem;
    height: 5rem;
  }
}