:root {
  --nero: #011218;
  --blu_dark: #031F30;
  --blu: #052C43;
  --azzuro: #479FD3;
  --verde: #32D583;
  --rosso: #DC3545;
  --as-teal: #01D8C0;
  --as-teal-hover: #008576;
  --as-maize: #FEC84B;
  --ink: #1a56db;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --surface: rgba(255, 255, 255, .03);
  --surface-2: rgba(255, 255, 255, .06);
  --text-dim: rgba(255, 255, 255, .72);
  --text-faint: rgba(255, 255, 255, .45);
  --r-md: 12px;
  --r-lg: 16px;
  --fd: 'Fira Sans', system-ui, -apple-system, sans-serif;
  --fu: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Base styles for flusso card */
.flusso-card-wrap {
  background: var(--nero);
  color: #fff;
  min-height: calc(100vh - 120px);
  padding: 40px 0 80px;
  font-family: var(--fu);
}

.flusso-step1-body {
  background: var(--nero) !important;
  color: #ffffff !important;
  font-family: var(--fu) !important;
  margin: 0;
  min-height: 100vh;
}

/* Step 0 - Buy Card Landing */
.s0top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.s0top h2 {
  font-family: var(--fd);
  font-weight: 800;
  font-size: 34px;
  margin: 0;
  letter-spacing: -.01em;
  color: #fff;
  line-height: 1.15;
}

.s0top p {
  color: var(--text-dim);
  font-size: 16px;
  margin: 10px 0 0;
  max-width: 600px;
  line-height: 1.5;
}

.modetoggle {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  flex: none;
}

.modetoggle button {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 13px;
  color: var(--text-dim);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: all .15s ease;
}

.modetoggle button.on {
  background: var(--as-teal);
  color: #00201d;
}

.prodbox {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  background: var(--blu_dark);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}

.prodleft {
  padding: 36px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  border-right: 1px solid var(--border);
}

.prodright {
  padding: 36px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.cardvis {
  width: 100%;
  aspect-ratio: 1.586 / 1;
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: conic-gradient(from 30deg,#e85d3b,#f5a623,#32d583,#479fd3,#7b5cff,#dc3545,#e85d3b);
  box-shadow: 0 24px 48px -14px rgba(0, 0, 0, .7);
  transition: background 0.3s ease;
}

.cardvis .lg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--fd);
  font-weight: 800;
  font-size: 34px;
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .45);
}

.cardvis .id {
  position: absolute;
  left: 16px;
  bottom: 14px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(1, 16, 25, .55);
  padding: 5px 12px;
  border-radius: 8px;
  backdrop-filter: blur(4px);
}

.fantasie {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.fantasie .fl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .06em;
}

.fantasie .row {
  display: flex;
  gap: 12px;
  margin: 0;
}

.fnt {
  width: 74px;
  height: 48px;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15);
  transition: transform .15s ease, border-color .15s ease;
}

.fnt:hover {
  transform: translateY(-2px);
}

.fnt.sel {
  border-color: var(--as-teal);
  box-shadow: 0 0 0 2px rgba(1, 216, 192, 0.4);
}

.s0price {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.s0price b {
  font-family: var(--fd);
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  color: #fff;
}

.s0price span {
  font-size: 15px;
  color: var(--text-faint);
}

.benes {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.bene {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15.5px;
  color: var(--text-dim);
  line-height: 1.5;
}

.bene svg {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--as-teal);
  margin-top: 2px;
}

.bene b {
  color: #fff;
  font-weight: 600;
}

.btn-primary-teal {
  width: 100%;
  height: 52px;
  border-radius: 999px;
  border: none;
  background: var(--as-teal);
  color: #00201d;
  font-family: var(--fd);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all .15s ease;
}

.btn-primary-teal:hover {
  background: var(--as-teal-hover);
  color: #fff;
  transform: translateY(-1px);
}

/* Step 1 - Form and Checkout layout */
.step-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.flowhead {
  padding: 16px 0 10px;
}

.flowhead h1 {
  font-family: var(--fd);
  font-weight: 800;
  font-size: 32px;
  margin: 0;
  letter-spacing: -.02em;
  color: #fff;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--fd);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
  margin: 6px 0 14px;
  text-decoration: none;
}

.back-link:hover {
  color: #fff;
}

.stepbar-wrap {
  max-width: 440px;
  margin: 14px auto 32px;
  text-align: center;
}

.stepbar-wrap .lab {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.4px;
  color: #fff;
  margin-bottom: 10px;
}

.stepbar-wrap .track {
  height: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}

.stepbar-wrap .fill {
  height: 100%;
  background: var(--as-teal);
  border-radius: 999px;
  transition: width .3s ease;
}

.card-form-box {
  background: var(--blu_dark);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  margin-bottom: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .25);
}

.giftsec-tl {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--as-teal);
  margin-bottom: 6px;
}

.psub {
  font-size: 13.5px;
  color: var(--text-dim);
  margin: 0 0 20px;
  line-height: 1.5;
}

.oauth-row {
  display: flex;
  gap: 12px;
  margin-bottom: 6px;
}

.oauth-row button,
.oauth-row a {
  flex: 1;
  height: 46px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: #fff;
  font-family: var(--fd);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  transition: border-color .15s ease;
}

.oauth-row button:hover,
.oauth-row a:hover {
  border-color: var(--as-teal);
}

.oauth-row svg {
  width: 20px;
  height: 20px;
}

.orsep {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}

.orsep::before,
.orsep::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.orsep span {
  font-size: 11.5px;
  color: var(--text-faint);
}

.two-col-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  margin-bottom: 14px;
}

.form-field .lbl {
  display: block;
  font-size: 12px;
  color: var(--text-faint);
  margin: 0 0 6px;
  font-weight: 500;
}

.inp {
  width: 100%;
  height: 46px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--border-strong);
  background: var(--nero);
  color: #fff;
  padding: 0 15px;
  font-family: inherit;
  font-size: 14.5px;
  outline: none;
  transition: border-color .15s ease;
}

.inp:focus {
  border-color: var(--as-teal);
}

.inp::placeholder {
  color: var(--text-faint);
}

textarea.inp {
  height: auto;
  padding: 12px 15px;
  resize: vertical;
}

.loginline {
  font-size: 12.5px;
  color: var(--text-dim);
  margin: 4px 0 0;
}

.loginline a {
  color: var(--azzuro);
  font-weight: 600;
  text-decoration: none;
}

.loginline a:hover {
  text-decoration: underline;
}

.hr-sep {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.voucher-wrap {
  display: flex;
  gap: 10px;
  margin: 6px 0 4px;
}

.voucher-wrap .inp {
  flex: 1;
}

.voucher-wrap button {
  padding: 0 20px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: #fff;
  font-family: var(--fd);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all .15s ease;
}

.voucher-wrap button:hover {
  border-color: var(--as-teal);
  background: var(--as-teal);
  color: #00201d;
}

.chk {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 16px 0 10px;
  cursor: pointer;
}

.chk input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 5px;
  border: 1.5px solid var(--border-strong);
  background: var(--nero);
  margin-top: 1px;
  cursor: pointer;
  position: relative;
  flex: none;
}

.chk input:checked {
  background: var(--as-teal);
  border-color: var(--as-teal);
}

.chk input:checked::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid #00201d;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.privline {
  font-size: 11.5px;
  color: var(--text-faint);
  line-height: 1.55;
  margin: 10px 0 0;
}

.privline a {
  color: var(--azzuro);
  text-decoration: none;
}

.privline a:hover {
  text-decoration: underline;
}

/* Aside Cart / Riepilogo */
.cart-aside-box {
  background: var(--blu_dark);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}

.cart-aside-box h3 {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 18px;
  margin: 0 0 16px;
  color: #fff;
}

.cart-aside-box .prod {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.cart-aside-box .prod .pi {
  width: 60px;
  height: 38px;
  border-radius: 8px;
  flex: none;
  background: conic-gradient(from 30deg,#e85d3b,#f5a623,#32d583,#479fd3,#7b5cff,#dc3545,#e85d3b);
  border: 1px solid var(--border-strong);
}

.cart-aside-box .prod .pt {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 15px;
  display: block;
  color: #fff;
}

.cart-aside-box .prod .ps {
  font-size: 12px;
  color: var(--text-faint);
}

.cart-aside-box .lines {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-aside-box .ln {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  margin-bottom: 10px;
  color: var(--text-dim);
}

.cart-aside-box .ln:last-child {
  margin-bottom: 0;
}

.cart-aside-box .ln .p {
  font-family: var(--fd);
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
}

.cart-aside-box .ln.disc {
  color: var(--verde);
}

.cart-aside-box .ln.disc .p {
  color: var(--verde);
}

.cart-aside-box .tot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 16px;
}

.cart-aside-box .tot .l {
  font-family: var(--fd);
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}

.cart-aside-box .tot .v {
  font-family: var(--fd);
  font-weight: 800;
  font-size: 24px;
  color: var(--as-teal);
}

.secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-faint);
  margin-top: 14px;
}

.secure-note svg {
  width: 15px;
  height: 15px;
  color: var(--verde);
}

/* Responsive */
@media (max-width: 860px) {
  .prodbox {
    grid-template-columns: 1fr;
  }
  .prodleft {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .s0top {
    flex-direction: column;
  }
  .s0top h2 {
    font-size: 28px;
  }
  .two-col-fields {
    grid-template-columns: 1fr;
  }
}

input[type="date"].inp {
  color-scheme: dark;
}

.form-err {
  color: var(--rosso);
  font-size: 12px;
  display: none;
  margin-top: 5px;
  font-weight: 500;
}

