/* ==========================================================================
   VAL DI FIEMME 26/27 - COMPONENT STYLES
   ========================================================================== */

/* Registration Card Container */
.wizard-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}

/* Stepper Progress Bar */
.stepper-header {
  padding: 24px 32px 20px;
  background: rgba(10, 16, 30, 0.4);
  border-bottom: 1px solid var(--border-subtle);
}

.stepper-progress-track {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.stepper-line-bg {
  position: absolute;
  top: 18px;
  left: 36px;
  right: 36px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  z-index: 1;
}

.stepper-line-fill {
  position: absolute;
  top: 18px;
  left: 36px;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), var(--indigo));
  transition: width var(--transition-smooth);
  z-index: 2;
  box-shadow: 0 0 10px var(--primary-glow);
}

.step-node {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  outline: none;
}

.step-node-bubble {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-surface-light);
  border: 2px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  transition: all var(--transition-bounce);
}

.step-node.active .step-node-bubble {
  background: var(--primary);
  border-color: #fff;
  color: #060913;
  box-shadow: 0 0 18px var(--primary-glow);
  transform: scale(1.12);
}

.step-node.completed .step-node-bubble {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #fff;
}

.step-node-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-dim);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.step-node.active .step-node-label {
  color: var(--primary-light);
}

.step-node.completed .step-node-label {
  color: var(--text-muted);
}

/* Wizard Form Step Bodies */
.wizard-step-body {
  display: none;
  padding: 36px 36px 40px;
  animation: stepFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-step-body.active {
  display: block;
}

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-title-area {
  margin-bottom: 28px;
}

.step-number-tag {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 4px;
}

.step-main-heading {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.step-subtext {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Form Groups & Grid Layouts */
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.form-grid-1 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.form-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.label-dual {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.label-secondary {
  color: var(--text-dim);
  font-weight: 500;
}

.required-dot {
  color: var(--rose);
  font-weight: 700;
  margin-left: 2px;
}

/* Modern Input Controls */
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  color: var(--text-dim);
  font-size: 1.1rem;
  pointer-events: none;
  transition: color var(--transition-fast);
}

.form-input {
  width: 100%;
  padding: 13px 16px 13px 44px;
  background: rgba(10, 16, 30, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-input.no-icon {
  padding-left: 16px;
}

.form-input::placeholder {
  color: var(--text-dim);
}

.form-input:focus {
  background: rgba(15, 23, 42, 0.9);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
  color: var(--primary);
}

.input-feedback {
  font-size: 0.76rem;
  min-height: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-dim);
}

.input-feedback.error {
  color: var(--rose);
}

.input-feedback.success {
  color: var(--emerald);
}

/* Spol / Sesso Selector Chips */
.choice-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.choice-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: rgba(12, 19, 36, 0.6);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.choice-card:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.choice-card.selected {
  background: rgba(56, 189, 248, 0.14);
  border-color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
}

.choice-card-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.choice-card-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
}

/* Majica / Maglietta (T-Shirt Size Selector) */
.tshirt-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.tshirt-size-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 14px 8px;
  border-radius: var(--radius-md);
  background: rgba(12, 19, 36, 0.6);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tshirt-size-btn:hover {
  background: var(--bg-glass-hover);
  transform: translateY(-2px);
}

.tshirt-size-btn.selected {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(99, 102, 241, 0.25));
  border-color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
  transform: translateY(-2px);
}

.tshirt-size-label {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.tshirt-size-hint {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.tshirt-size-btn.selected .tshirt-size-hint {
  color: var(--primary-light);
}

/* Role / Novinar Cards */
.role-cards-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.role-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(12, 19, 36, 0.6);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.role-card:hover {
  background: var(--bg-glass-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.role-card.selected {
  background: rgba(99, 102, 241, 0.12);
  border-color: var(--indigo);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.25);
}

.role-badge-letter {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.role-card.selected .role-badge-letter {
  background: linear-gradient(135deg, var(--primary), var(--indigo));
  color: #fff;
}

.role-card-content {
  flex-grow: 1;
}

.role-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.role-card-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Hotel & Skipass Big Choice Tiles */
.big-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.big-choice-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(12, 19, 36, 0.6);
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.big-choice-tile:hover {
  background: var(--bg-glass-hover);
}

.big-choice-tile.selected {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--primary);
  box-shadow: 0 0 16px var(--primary-glow);
}

.big-choice-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.big-choice-icon {
  font-size: 1.3rem;
}

.big-choice-text {
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}

.choice-radio-indicator {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.big-choice-tile.selected .choice-radio-indicator {
  border-color: var(--primary);
}

.big-choice-tile.selected .choice-radio-indicator::after {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

/* Conditional Skipass Expandable Container */
.skipass-details-container {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease,
              transform 0.3s ease;
  margin-top: 0;
}

.skipass-details-container.open {
  max-height: 720px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 20px;
}

.skipass-inner-card {
  background: linear-gradient(135deg, rgba(20, 32, 58, 0.7), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.skipass-badge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.skipass-badge-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-light);
}

.skipass-tag {
  font-size: 0.72rem;
  background: rgba(56, 189, 248, 0.2);
  color: var(--primary-light);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Days Slider & Quick Chips */
.days-chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.day-chip {
  flex: 1;
  min-width: 44px;
  padding: 10px 6px;
  border-radius: var(--radius-md);
  background: rgba(10, 16, 30, 0.7);
  border: 1px solid var(--border-glass);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: all var(--transition-fast);
}

.day-chip:hover {
  background: rgba(255, 255, 255, 0.08);
}

.day-chip.selected {
  background: var(--primary);
  color: #060913;
  border-color: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  transform: translateY(-2px);
}

.day-chip-sub {
  font-size: 0.65rem;
  opacity: 0.75;
}

/* Step 4 Review Card */
.review-summary-box {
  background: rgba(12, 19, 36, 0.7);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.review-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.review-row:last-child {
  border-bottom: none;
}

.review-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.review-val {
  font-weight: 700;
  font-size: 0.92rem;
  color: #fff;
  text-align: right;
}

.review-val-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

/* Stepper Bottom Actions */
.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 36px;
  background: rgba(10, 16, 30, 0.5);
  border-top: 1px solid var(--border-subtle);
}

.btn-secondary {
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.btn-secondary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-primary {
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--primary), #0284c7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #060913;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 18px var(--primary-glow);
  transition: all var(--transition-bounce);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.45);
  background: linear-gradient(135deg, #7dd3fc, var(--primary));
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-submit {
  background: linear-gradient(135deg, var(--emerald), #059669);
  color: #fff;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
}

.btn-submit:hover {
  background: linear-gradient(135deg, #34d399, var(--emerald));
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

/* Modal Overlay & Card */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.open .modal-box {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Mobile Responsive */
@media (max-width: 700px) {
  .stepper-header {
    padding: 18px 16px;
  }
  .step-node-label {
    display: none;
  }
  .wizard-step-body {
    padding: 24px 18px;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .tshirt-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .big-choice-grid {
    grid-template-columns: 1fr;
  }
  .wizard-footer {
    padding: 16px 18px;
  }
}
