/* WIZARD SPECIFIC STYLES */

.wizard-section {
  position: relative;
  z-index: 10;
}

.wizard-progress {
  margin-bottom: 2rem;
  width: 100%;
}

.progress-bar {
  display: flex;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.progress-bar::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255,255,255,0.1);
  transform: translateY(-50%);
  z-index: 1;
  border-radius: 2px;
}

.progress-step {
  position: relative;
  z-index: 2;
  background: var(--nav-bg);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.progress-step.active {
  border-color: var(--primary-color);
  color: var(--primary-color);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.progress-step.completed {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.wizard-card {
  padding: 2.5rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
}

.wizard-step {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

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

.step-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Form Groups & Inputs */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: var(--text-dark);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.inline-input {
  display: inline-block;
  width: auto;
  padding: 0.5rem;
}

.mt-4 { margin-top: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* Radio Cards (Step 1) */
.radio-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}

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

.radio-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.card-content {
  background: rgba(255,255,255,0.03);
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
}

.radio-card input:checked + .card-content,
.checkbox-card input:checked + .card-content {
  border-color: var(--primary-color);
  background: rgba(37, 99, 235, 0.1);
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
}

.card-content .icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.card-content h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.card-content p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

/* Checkbox Grid (Step 2) */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

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

.checkbox-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-card .card-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.checkbox-card .card-content h3 {
  font-size: 1.1rem;
  margin: 0;
}

/* Standard Radio/Checkbox Groups */
.radio-group, .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.row-group {
  flex-direction: row;
  gap: 1.5rem;
}

.row-group-wrap {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.radio-label, .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

.flex-align-center {
  display: flex;
  align-items: center;
}

/* Info Boxes */
.info-box {
  padding: 1rem;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.05);
  border-left: 4px solid var(--text-muted);
  font-size: 0.95rem;
}

.warning-box {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.accent-box {
  border-left-color: var(--primary-color);
  background: rgba(37, 99, 235, 0.1);
}

.wizard-banner {
  padding: 1rem;
  border-radius: 0.5rem;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 500;
  animation: fadeIn 0.3s;
}

.hidden {
  display: none !important;
}

/* Case Drawing Section */
.case-size-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 1rem;
  padding: 1.5rem;
}

@media (max-width: 768px) {
  .case-size-split {
    grid-template-columns: 1fr;
  }
  .row-group {
    flex-direction: column;
    gap: 0.75rem;
  }
}

.svg-drawing-container {
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: rgba(255,255,255,0.02);
}

.svg-drawing-container svg {
  max-width: 100%;
  max-height: 100%;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.placeholder-text {
  color: var(--text-muted);
  font-style: italic;
}

/* Navigation Controls */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Validation styles */
input:invalid.touched, select:invalid.touched {
  border-color: #ef4444;
}

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

/* Image Checkbox Grid */
.image-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.image-checkbox-card {
  cursor: pointer;
  display: block;
}

.image-checkbox-card input {
  display: none;
}

.image-checkbox-card .card-inner {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.1);
  height: 140px;
  transition: all 0.3s ease;
  background: rgba(0,0,0,0.5);
}

.image-checkbox-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.3s ease;
  opacity: 0.5;
}

.image-checkbox-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  text-align: center;
  transition: all 0.3s ease;
}

.image-checkbox-card .overlay h4 {
  margin: 0;
  font-size: 0.95rem;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.image-checkbox-card:hover .card-inner {
  border-color: rgba(255,255,255,0.3);
}

.image-checkbox-card:hover img {
  opacity: 0.7;
  transform: scale(1.05);
}

.image-checkbox-card input:checked + .card-inner {
  border-color: var(--primary-color);
  box-shadow: 0 0 15px rgba(37, 99, 235, 0.4);
}

.image-checkbox-card input:checked + .card-inner img {
  opacity: 1;
}

.image-checkbox-card input:checked + .card-inner .overlay {
  background: linear-gradient(to top, rgba(37, 99, 235, 0.8), rgba(0,0,0,0.3));
}
