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

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #171717;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
.btn {
  display: inline-block;
  cursor: pointer;
  border: 1px solid #d4d4d4;
  background: #fff;
  color: #000;
  border-radius: 0.75rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.25;
  transition: background 0.15s ease, color 0.15s ease;
}

button:disabled,
.btn:disabled {
  cursor: not-allowed;
  background: #e5e5e5;
  color: #737373;
}

button.selected,
.btn.selected {
  background: #000;
  color: #fff;
}

.btn-primary {
  background: #000;
  color: #fff;
  border-color: #000;
}

.btn-primary:disabled {
  background: #e5e5e5;
  color: #737373;
  border-color: #d4d4d4;
}

.page {
  min-height: 100vh;
  padding: 1.5rem;
}

.page-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-start {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 56rem;
}

.container-narrow {
  width: 100%;
  max-width: 36rem;
}

.card {
  border: 1px solid #d4d4d4;
  border-radius: 1rem;
  background: #fff;
  padding: 2rem;
}

.progress-card {
  padding: 1rem;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: #525252;
}

.progress-track {
  margin-top: 0.75rem;
  height: 0.5rem;
  width: 100%;
  border-radius: 999px;
  background: #e5e5e5;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #ed1c24, #92278f, #00aeef, #39b54a);
  transition: width 0.2s ease;
}

.title {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 600;
}

.subtitle {
  margin: 0.5rem 0 0;
  color: #525252;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.grid-sizes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-sizes {
    grid-template-columns: repeat(6, 1fr);
  }
}

.option-btn {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
}

.arch-btn {
  width: 100%;
  text-align: left;
  padding: 1rem;
}

.arch-image-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 0.5rem;
  border: 1px solid #d4d4d4;
  background: #fff;
}

.arch-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.arch-label {
  margin-top: 1rem;
  text-align: center;
  font-size: 1rem;
}

.actions {
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lang-group {
  display: inline-flex;
  border: 1px solid #d4d4d4;
  border-radius: 0.75rem;
  padding: 0.25rem;
  gap: 0.25rem;
}

.lang-btn {
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
}

.lang-btn.active {
  background: #000;
  color: #fff;
}

.home {
  position: relative;
  background-size: cover;
  background-position: center;
}

.home-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.home-content {
  position: relative;
}

.logo {
  height: 2.5rem;
  width: auto;
}

.home-cta {
  margin-top: 1.5rem;
}

.disclaimer {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: #737373;
  line-height: 1.5;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.hidden {
  display: none;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 32rem;
  border: 1px solid #d4d4d4;
  border-radius: 1rem;
  background: #fff;
  padding: 1.5rem;
}

.modal-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.modal-body {
  margin: 0.75rem 0 0;
  color: #404040;
  line-height: 1.6;
}

.modal-actions {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-end;
}

.result-code {
  margin: 0.5rem 0 0;
  font-size: 2.25rem;
  font-weight: 700;
}

.badge {
  border-radius: 999px;
  background: rgba(57, 181, 74, 0.2);
  color: #39b54a;
  padding: 0.25rem 1rem;
  font-size: 0.875rem;
}

.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-image-wrap {
  margin-top: 1.5rem;
  width: 100%;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid #d4d4d4;
  background: #fff;
}

.product-image-wrap img {
  display: block;
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
}

.loading-text {
  text-align: center;
  color: #525252;
  margin-bottom: 1rem;
}

.pulse {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.hidden {
  display: none !important;
}

.step-panel {
  display: none;
}

.step-panel.active {
  display: block;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.text-sm {
  font-size: 0.875rem;
}

.text-muted {
  color: #525252;
}
