/* Base & Theme Palette */
:root {
  --bg-gradient: linear-gradient(135deg, #2b080c 0%, #4a0e17 50%, #1a0407 100%);
  --gold-primary: #d4af37;
  --gold-hover: #f3e5ab;
  --card-bg: rgba(61, 13, 19, 0.85);
  --text-main: #fcf8f2;
  --text-muted: #d8c3b2;
  --border-color: rgba(212, 175, 55, 0.3);
  --error-red: #ff5252;
  --success-green: #2e7d32;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background: var(--bg-gradient);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow-x: hidden;
}

.background-decor {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: radial-gradient(rgba(212, 175, 55, 0.15) 1px, transparent 0);
  background-size: 30px 30px;
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 740px;
  z-index: 1;
}

.header {
  text-align: center;
  margin-bottom: 25px;
}

.logo-badge {
  display: inline-block;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.header h1 {
  font-family: var(--font-heading);
  color: var(--gold-primary);
  font-size: 2.2rem;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Stepper Indicator */
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 25px;
  background: rgba(0,0,0,0.3);
  padding: 15px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.step {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.step.active {
  opacity: 1;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.85rem;
  color: var(--gold-primary);
}

.step.active .step-num {
  background: var(--gold-primary);
  color: #000;
}

.step-text {
  font-size: 0.85rem;
  font-weight: 600;
}

.step-line {
  flex: 1;
  height: 2px;
  background: rgba(212, 175, 55, 0.2);
  margin: 0 10px;
}

/* Card & Form elements */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.wizard-step h2 {
  font-family: var(--font-heading);
  color: var(--gold-primary);
  font-size: 1.4rem;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.field-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s;
}

input:focus, textarea:focus {
  border-color: var(--gold-primary);
}

.input-with-btn {
  display: flex;
  gap: 10px;
}

.input-with-btn input {
  flex: 1;
}

/* Category cards */
.category-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.category-card {
  position: relative;
  cursor: pointer;
}

.category-card input {
  position: absolute;
  opacity: 0;
}

.category-card .card-content {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 15px 10px;
  text-align: center;
  transition: all 0.2s;
}

.category-card input:checked + .card-content {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

.cat-title {
  display: block;
  font-weight: 700;
  color: var(--gold-primary);
  font-size: 1.05rem;
}

.cat-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Dropzone */
.dropzone {
  border: 2px dashed var(--gold-primary);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  background: rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background 0.2s;
  margin-bottom: 15px;
}

.dropzone:hover {
  background: rgba(212, 175, 55, 0.05);
}

.upload-icon {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.highlight {
  color: var(--gold-primary);
  text-decoration: underline;
}

.file-limits {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Preview Grid for Multi-photo (Max 2) */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
}

.preview-card {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  position: relative;
}

.preview-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}

.preview-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-remove {
  background: rgba(255,82,82,0.2);
  border: 1px solid var(--error-red);
  color: var(--error-red);
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: bold;
}

/* Requisiti Tecnici Box */
.tech-requirements-box {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(212, 175, 55, 0.25);
  padding: 15px;
  border-radius: 10px;
  margin-top: 15px;
}

.tech-requirements-box h4 {
  color: var(--gold-primary);
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.tech-requirements-box ul {
  padding-left: 20px;
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.tech-requirements-box li {
  margin-bottom: 5px;
}

.tech-requirements-box strong {
  color: #fff;
}

/* Buttons & Alerts */
.btn {
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--gold-primary);
  color: #000;
}

.btn-primary:hover:not(:disabled) {
  background: var(--gold-hover);
}

.btn-secondary {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid var(--border-color);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-success {
  background: #2e7d32;
  color: #fff;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

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

.wizard-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

.alert {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  margin-top: 8px;
}

.alert-danger {
  background: rgba(255, 82, 82, 0.2);
  border: 1px solid var(--error-red);
  color: #ff9e9e;
}

/* Rules box */
.rules-box {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-color);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.88rem;
}

.rules-box h3 {
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.rules-box ul {
  padding-left: 20px;
}

.rules-box li {
  margin-bottom: 8px;
  line-height: 1.4;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  cursor: pointer;
  line-height: 1.3;
}

.checkbox-label input {
  margin-top: 3px;
  accent-color: var(--gold-primary);
}

/* Receipt */
.success-screen {
  text-align: center;
}

.success-icon {
  font-size: 3.5rem;
  margin-bottom: 10px;
}

.receipt-card {
  background: rgba(0,0,0,0.4);
  border: 1px dashed var(--gold-primary);
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
  text-align: left;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
}

.badge {
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: bold;
}

.badge-success {
  background: #2e7d32;
  color: #fff;
}

@media (max-width: 600px) {
  .category-options {
    grid-template-columns: 1fr;
  }
  .preview-grid {
    grid-template-columns: 1fr;
  }
  .stepper {
    padding: 10px;
  }
  .step-text {
    display: none;
  }
}

.preview-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  padding: 12px;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
}
