@charset "UTF-8";
.state-block {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 3rem 2.5rem;
  text-align: center;
}

.state-block.active {
  display: block;
}

.state-block .state-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.state-block .state-icon svg {
  width: 36px;
  height: 36px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.state-block h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.state-block p {
  color: var(--white-70);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  max-width: 450px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.state-login .state-icon {
  background: var(--red-15);
}

.state-login .state-icon svg {
  stroke: var(--red);
}

.state-done .state-icon {
  background: rgba(52, 211, 153, 0.15);
}

.state-done .state-icon svg {
  stroke: var(--success);
}

.wizard-container.active {
  display: block;
}

.wizard-progress {
  display: flex;
  align-items: center;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.progress-step .step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white-06);
  border: 2px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white-40);
  transition: all 0.3s;
}

.progress-step .step-label {
  font-size: 0.7rem;
  color: var(--white-40);
  margin-top: 0.4rem;
  text-align: center;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: color 0.3s;
}

.progress-step.active .step-num {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.progress-step.active .step-label {
  color: var(--white);
}

.progress-step.done .step-num {
  background: var(--success);
  border-color: var(--success);
  color: var(--white);
}

.progress-step.done .step-label {
  color: var(--success);
}

.progress-line {
  flex: 1;
  height: 2px;
  background: var(--card-border);
  margin: 0 0.25rem;
  align-self: flex-start;
  margin-top: 18px;
  min-width: 20px;
  transition: background 0.3s;
}

.progress-line.done {
  background: var(--success);
}

.wizard-viewport {
  overflow: hidden;
  position: relative;
}

.wizard-step {
  display: none;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 2.5rem;
}

.wizard-step.active {
  display: block;
  animation: slideIn 0.35s ease-out;
}

.wizard-step.slide-out-left {
  animation: slideOutLeft 0.35s ease-out forwards;
}

.wizard-step.slide-in-right {
  animation: slideInRight 0.35s ease-out forwards;
}

.wizard-step.slide-out-right {
  animation: slideOutRight 0.35s ease-out forwards;
}

.wizard-step.slide-in-left {
  animation: slideInLeft 0.35s ease-out forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideOutLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(-40px);
  }
}
@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes slideOutRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(40px);
  }
}
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.step-header {
  margin-bottom: 2rem;
}

.step-header .step-tag {
  display: inline-block;
  background: var(--red-15);
  color: var(--red);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
}

.step-header h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.step-header p {
  color: var(--white-70);
  font-size: 0.9rem;
  line-height: 1.5;
}

.step-error-banner {
  display: none;
  background: rgba(212, 46, 46, 0.15);
  border: 1px solid var(--red);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  color: #ff6b6b;
  font-size: 0.9rem;
  line-height: 1.4;
  animation: shakeIn 0.35s ease;
}

.step-error-banner.visible {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.step-error-banner .error-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  margin-top: 1px;
}

.step-error-banner .error-text {
  flex: 1;
}

@keyframes shakeIn {
  0% {
    transform: translateX(-8px);
    opacity: 0;
  }
  40% {
    transform: translateX(5px);
  }
  70% {
    transform: translateX(-3px);
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
.wizard-step .step-loading-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.7);
  z-index: 10;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
}

.wizard-step .step-loading-overlay.visible {
  display: flex;
}

.step-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.choice-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.choice-card {
  background: var(--white-06);
  border: 2px solid var(--card-border);
  border-radius: 8px;
  padding: 1.75rem;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
}

.choice-card:hover {
  border-color: var(--white-40);
  background: var(--white-10);
}

.choice-card.selected {
  border-color: var(--red);
  background: var(--red-15);
}

.choice-card .card-check {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
}

.choice-card.selected .card-check {
  background: var(--red);
  border-color: var(--red);
}

.choice-card.selected .card-check::after {
  content: "✓";
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
}

.choice-card .card-icon {
  width: 48px;
  height: 48px;
  background: var(--red-15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.choice-card .card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--red);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.choice-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.choice-card p {
  color: var(--white-40);
  font-size: 0.82rem;
  line-height: 1.4;
}

.choice-card .price {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--red);
}

.custom-radio {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.custom-radio input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
  margin: 0;
}

.custom-radio .radiomark {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--white-06);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  transition: all 0.2s;
}

.custom-radio .radiomark::after {
  content: "";
  position: absolute;
  display: none;
  top: 5px;
  left: 5px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
}

.custom-radio input:checked ~ .radiomark {
  background: var(--red);
  border-color: var(--red);
}

.custom-radio input:checked ~ .radiomark::after {
  display: block;
}

.custom-radio input:focus ~ .radiomark {
  box-shadow: 0 0 0 2px var(--red-15);
}

.custom-checkbox {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.custom-checkbox input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
  margin: 0;
}

.custom-checkbox .checkmark {
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--white-06);
  border: 1px solid var(--card-border);
  border-radius: 3px;
  transition: all 0.2s;
}

.custom-checkbox .checkmark::after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox input:checked ~ .checkmark {
  background: var(--red);
  border-color: var(--red);
}

.custom-checkbox input:checked ~ .checkmark::after {
  display: block;
}

.custom-checkbox input:focus ~ .checkmark {
  box-shadow: 0 0 0 2px var(--red-15);
}

.upload-single {
  border: 2px dashed var(--card-border);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
  background: var(--white-06);
}

.upload-single:hover, .upload-single.dragover {
  border-color: var(--red);
  background: var(--red-15);
}

.upload-single.has-file {
  border-color: var(--success);
  border-style: solid;
}

.upload-single input[type=file] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.upload-single .upload-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
}

.upload-single .upload-label svg {
  width: 24px;
  height: 24px;
  stroke: var(--white-40);
  fill: none;
  stroke-width: 2;
}

.upload-single .upload-label span {
  color: var(--white-70);
  font-size: 0.85rem;
}

.upload-single .upload-label strong {
  color: var(--red);
}

.upload-single .file-name-display {
  display: none;
  color: var(--success);
  font-size: 0.85rem;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.upload-single.has-file .upload-label {
  display: none;
}

.upload-single.has-file .file-name-display {
  display: flex;
}

.upload-with-pledge {
  margin-bottom: 1.25rem;
}

.upload-with-pledge .pledge-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: var(--radius);
  background: var(--white-06);
  border: 1px solid var(--card-border);
}

.upload-with-pledge .pledge-row label {
  font-size: 0.82rem;
  color: var(--white-70);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin: 0;
  cursor: pointer;
}

.terms-block {
  background: var(--white-06);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.terms-block h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.terms-block textarea {
  width: 100%;
  min-height: 80px;
  max-height: 120px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  background: var(--bg-dark);
  color: var(--white-70);
  resize: none;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}

.terms-block .radio-row {
  display: flex;
  gap: 2rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
  margin-bottom: 2rem;
}

.summary-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--white-06);
}

.summary-item .sum-label {
  font-size: 0.75rem;
  color: var(--white-40);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-display);
  margin-bottom: 0.2rem;
}

.summary-item .sum-value {
  font-size: 0.95rem;
  color: var(--white);
  font-weight: 500;
}

/* payment-buttons, summary-total now in urban-runners.css */
.result-block {
  text-align: center;
  padding: 3rem 2rem;
}

.result-block .result-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.result-block .result-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 2.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.result-block.success .result-icon {
  background: rgba(52, 211, 153, 0.15);
}

.result-block.success .result-icon svg {
  stroke: var(--success);
}

.result-block.error .result-icon {
  background: var(--red-15);
}

.result-block.error .result-icon svg {
  stroke: var(--error);
}

.result-block h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.result-block p {
  color: var(--white-70);
  font-size: 0.95rem;
  max-width: 450px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--card-border);
}

.step-nav .spacer {
  flex: 1;
}

.coupon-field {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.coupon-field input {
  flex: 1;
}

.coupon-field .btn-verify {
  height: 3rem;
  padding: 0 1.5rem;
  background: var(--white-06);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.coupon-field .btn-verify:hover {
  background: var(--white-10);
  border-color: var(--white-40);
}

.coupon-result {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  display: none;
}

.coupon-result.valid {
  color: var(--success);
  display: block;
}

.coupon-result.invalid {
  color: var(--error);
  display: block;
}

.size-selector {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.size-btn {
  width: 52px;
  height: 52px;
  border: 2px solid var(--card-border);
  border-radius: 8px;
  background: var(--white-06);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.size-btn:hover {
  border-color: var(--white-40);
}

.size-btn.selected {
  border-color: var(--red);
  background: var(--red-15);
  color: var(--red);
}

.contribution-field {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--white-06);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1.5rem;
}

.contribution-field .euro-sign {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white-40);
}

.contribution-field input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  box-shadow: none !important;
}

.contribution-field input::placeholder {
  color: var(--white-20);
}

@media (max-width: 768px) {
  .top-bar {
    display: none;
  }
  .site-header {
    padding: 0 1rem;
  }
  .site-header nav {
    display: none;
  }
  .hero-section {
    height: 260px;
  }
  .hero-overlay {
    padding: 1.5rem;
  }
  .hero-overlay h1 {
    font-size: 2.2rem;
  }
  .page-content {
    padding: 2rem 1rem;
  }
  .wizard-step {
    padding: 1.5rem;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .choice-cards {
    grid-template-columns: 1fr !important;
  }
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .step-header h3 {
    font-size: 1.4rem;
  }
  .wizard-progress {
    gap: 0;
  }
  .progress-step .step-label {
    font-size: 0.6rem;
  }
  .form-group input[type=date] {
    max-width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
  }
}
body {
  padding-bottom: 60px;
}

.no_choose_option .choice-cards .choice-card[data-value=no-maglia] {
  display: none;
}

/*# sourceMappingURL=tesseramento.css.map */
