.step2,
.step3,
.step4,
.step5 {
  display: none;
}

.startPage {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.shirtPreview {
  position: absolute;
  left: 0;
  top: 50%;

  transform: translate(-30%, -50%);
  height: 100vh;
}

.shirtImageWhite,
.shirtImageBlack {
  height: 100%;
  width: auto;
  transition: opacity 300ms ease;
}

.shirtImageWhite {
  display: block;
  opacity: 1;
}

.shirtImageWhite.hidden {
  opacity: 0;
}

.shirtImageBlack {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.shirtImageBlack.visible {
  opacity: 1;
}

.shirtPreviewText {
  position: absolute;
  left: 60%;
  top: 35%;
  transform: translateX(-50%);

  width: 32%;
  z-index: 10;

  color: #000000;
  font-family: Arial, sans-serif;
  font-size: 1.9vh;
  font-weight: 700;
  text-align: center;
  line-height: 1.1;

  pointer-events: none;
  transition: var(--transition-opacity);
}

.previewQrShirt {
  position: absolute;

  left: 65%;
  top: 67%;

  width: 7%;
  height: auto;

  transform: translate(-50%, -50%) rotate(6deg);

  z-index: 11;
  pointer-events: none;
}


.paySide {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateY(-50%);

  width: 40%;
}

.amountSection {
  flex: 1;
}

.amountSection input {
  width: 100%;
  height: var(--input-height);
  box-sizing: border-box;
}

.extraInfo {
  text-align: center;
  margin-top: var(--space-md);
  font-size: 14px;
  color: var(--color-text-muted);
}

.amountRow {
  display: flex;
  align-items: flex-start;
  width: min(560px, 100%);
  gap: var(--space-sm);
}

.amountRow input {
  flex: 1;
  border: var(--border-width) solid var(--color-text-light);
  background: transparent;
  color: var(--color-text-light);
  font-size: 28px;
  padding: 0 var(--space-lg);
  outline: none;
  border-radius: var(--border-radius);
  text-align: right;
  transition: var(--transition);
}

.amountRow input:hover,
.amountRow input:focus {
  border-color: var(--color-accent);
}

.currency {
  height: var(--input-height);
  display: flex;
  margin-left: var(--space-sm);
  margin-right: var(--space-lg);
  align-items: center;
  justify-content: center;

  font-size: 28px;
  font-weight: bold;
}

.amountForm p {
  margin-top: var(--space-md);
  font-size: 14px;
  opacity: 0.7;
}

.colorOptions,
.sizeOptions {
  display: flex;
  justify-content: center;
}

.colorOptions input[type="radio"],
.sizeOptions input[type="radio"] {
  display: none;
}

.colorOptions label,
.sizeOptions label {
  font-size: 26px;
  height: var(--input-height);
  padding: var(--button-padding);

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: var(--border-radius);
  border: var(--border-width) solid var(--color-text-light);

  background: transparent;
  color: var(--color-text-light);

  cursor: pointer;
  transition: var(--transition);
}

.colorOptions label:hover,
.sizeOptions label:hover {
  border-color: var(--color-accent);
}

.colorOptions input[type="radio"]:checked + label,
.sizeOptions input[type="radio"]:checked + label {
  background: var(--color-text-light);
  color: var(--color-bg-dark);
}

.colorOptions input[type="radio"]:checked + label:hover,
.sizeOptions input[type="radio"]:checked + label:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.colorOptions {
  gap: var(--space-2xl);
}

.sizeOptions {
  gap: var(--space-sm);
}

.addressFields {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  width: min(560px, 100%);
}

.addressFields input,
.addressFields select {
  height: var(--input-height);
  border: var(--border-width) solid var(--color-text-light);
  border-radius: var(--border-radius);
  color: var(--color-text-light);
  font-size: 22px;
  padding: 0 var(--space-lg);
  box-sizing: border-box;
  background: transparent;
}

.addressFields input:focus,
.addressFields select:focus,
.addressFields input:hover,
.addressFields select:hover {
  border-color: var(--color-accent);
  outline: none;
}

.addressFields select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  scrollbar-width: none;
}

.addressFields select::-webkit-scrollbar {
  display: none;
}

.addressFields select option:checked {
  background: var(--color-accent);
}

.addressFields select option {
  color: var(--color-text-light);
  background: var(--color-bg-dark-alt);
}

.countryRow {
  display: flex;
  gap: var(--space-lg);
  align-items: center;
  width: min(450px, 100%);
}

.countryRow select {
  flex: none;
  width: min(450px, 100%);
  height: 64px;
}

.countryRow button {
  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;
}

.buttonText,
.throbber {
  grid-area: 1 / 1;
}

.buttonText {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.throbber {
  position: absolute;

  width: 22px;
  height: 22px;

  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;

  opacity: 0;
  animation: spin 0.8s linear infinite;
  transition: opacity 0.2s ease;
}

button.loading {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg-dark);
}

button.loading .buttonText {
  opacity: 0;
}

button.loading .throbber {
  opacity: 1;
}

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

.addressFields {
  width: min(450px, 100%);
}

.step5 .extraInfo {
  margin-top: calc(var(--space-md) * -0.25);
}

.step1,
.step2,
.step3,
.step4,
.step5 {
  opacity: 1;
  transition: opacity 0.3s ease;
}

.stepFadeOut {
  opacity: 0;
}

@media (max-width: 1100px) {
  :root {
    --input-height: 48px;
    --button-padding: 0 24px;
  }

  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .startPage {
    height: 100vh;
    position: relative;
  }

  .paySide {
    position: absolute;
    top: 50%;
    bottom: 0;
    left: 50%;
    width: calc(100% - 40px);
    max-width: 420px;
    max-height: 55%;
    overflow-y: auto;

    transform: translateX(-50%);
  }

  .paySide h1 {
    margin: 0 0 20px 0;
  }

  .amountRow {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-md);
  }

  .amountRow input {
    font-size: 16px;
  }

  .currency {
    display: none;
  }

  .amountRow button {
    font-size: 16px;
    height: 48px;
    padding: 0 20px;
    flex-shrink: 0;
  }

  .extraInfo {
    font-size: 12px;
    margin-top: 8px;
  }

  .colorOptions,
  .sizeOptions {
    flex-wrap: wrap;
  }

  .colorOptions label,
  .sizeOptions label {
    font-size: 16px;
    height: 48px;
    padding: 0 20px;
  }

  .colorOptions {
    gap: 16px;
  }

  .sizeOptions {
    gap: 6px;
  }

  .addressFields {
    width: 100%;
  }

  .addressFields input,
  .addressFields select {
    font-size: 16px;
    height: 48px;
    padding: 0 16px;
  }

  .countryRow {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }

  .countryRow select {
    width: 100%;
    height: 48px;
  }

  .countryRow button {
    font-size: 14px;
    height: 48px;
    padding: 0 20px;
    width: 100%;
    margin-bottom: 20px;
  }

  .shirtPreview {
    position: absolute;
    left: 50%;
    top: 3%;
    bottom: auto;

    height: 65vh;

    transform: translateX(-50%) scale(0.65);
    transform-origin: top center;
  }

  .shirtPreviewText {
    font-size: 1.5vh;
  }

  .footer {
    position: static;

    right: auto;
    bottom: auto;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    width: 100%;
    box-sizing: border-box;

    margin-top: 0;
    padding: 8px 16px;
  }
} 