/* ===========================
   ORDER WIZARD STYLESHEET
   Sri Valli Collections
   =========================== */

/* --- Order Page Base --- */
.order-page {
  min-height: 100vh;
  background: var(--surface);
  padding-top: 80px;
}

/* ================================
   ORDER HEADER
   ================================ */
.order-header {
  background: linear-gradient(135deg, var(--primary-dark), #2a1020);
  border-bottom: 1px solid var(--glass-border);
  padding: 2.5rem 2rem;
  text-align: center;
}

.order-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.4rem;
}

.order-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ================================
   PROGRESS BAR
   ================================ */
.progress-wrap {
  padding: 2rem 2rem 0;
  max-width: 900px;
  margin: 0 auto;
}

.progress-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin-bottom: 0.5rem;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: rgba(255,255,255,0.08);
  z-index: 0;
}

.progress-fill {
  position: absolute;
  top: 18px;
  left: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  z-index: 1;
  transition: width 0.5s ease;
}

.prog-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
}

.prog-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  transition: all 0.4s ease;
}

.prog-step.active .prog-dot {
  border-color: var(--gold);
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--surface);
  box-shadow: 0 0 16px var(--gold-glow);
}

.prog-step.done .prog-dot {
  border-color: var(--gold);
  background: var(--gold-dark);
  color: var(--surface);
}

.prog-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 500;
}

.prog-step.active .prog-label { color: var(--gold); }
.prog-step.done .prog-label { color: rgba(255,255,255,0.6); }

/* ================================
   WIZARD CONTAINER
   ================================ */
.wizard-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
}

.wizard-step {
  display: none;
  animation: step-fade 0.5s ease;
}

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

@keyframes step-fade {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.step-title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 0.4rem;
}

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

/* ================================
   STEP 1: WORK TYPE CARDS
   ================================ */
.work-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.work-type-card {
  background: var(--glass);
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.work-type-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.06), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.work-type-card:hover::after { opacity: 1; }
.work-type-card:hover {
  border-color: rgba(201, 168, 76, 0.4);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 32px var(--primary-glow);
}

.work-type-card.selected {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(123, 31, 75, 0.25), rgba(201, 168, 76, 0.08));
  box-shadow: 0 0 0 1px var(--gold), 0 8px 32px var(--gold-glow);
}

.work-type-card.selected::after { opacity: 1; }

.wt-check {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--surface);
  font-size: 0.9rem;
  font-weight: bold;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.work-type-card.selected .wt-check {
  opacity: 1;
  transform: scale(1);
}

.wt-icon {
  font-size: 3rem;
  margin-bottom: 1.2rem;
  display: block;
}

.work-type-card h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.3rem;
}

.wt-sub {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.work-type-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ================================
   STEP 2: CLOTH DETAILS
   ================================ */
.cloth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--glass);
  border: 1.5px solid var(--glass-border);
  border-radius: var(--radius-sm);
  color: var(--cream);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all var(--transition);
  outline: none;
  appearance: none;
}

.form-control::placeholder { color: var(--text-muted); }
.form-control:focus {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.05);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}

select.form-control {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23C9A84C' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

select.form-control option {
  background: #2a1020;
  color: var(--cream);
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

/* Colour Swatches */
.colour-section { margin-bottom: 1.5rem; }

.colour-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: all 0.2s ease;
  position: relative;
}

.swatch:hover { transform: scale(1.15); }

.swatch.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--gold);
  transform: scale(1.1);
}

.colour-picker-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

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

input[type="color"] {
  width: 48px;
  height: 36px;
  border: 2px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: none;
  cursor: pointer;
  padding: 2px;
}

.selected-colour-name {
  font-size: 0.85rem;
  color: var(--cream);
  font-weight: 500;
}

/* Cloth Upload */
.cloth-upload-area {
  border: 2px dashed var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--glass);
}

.cloth-upload-area:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.04);
}

.cloth-upload-area p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.5rem;
}

.cloth-upload-icon { font-size: 2rem; margin-bottom: 0.5rem; }

/* ================================
   STEP 3: DESIGN UPLOAD
   ================================ */
.design-upload-area {
  border: 2px dashed rgba(201, 168, 76, 0.35);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(201, 168, 76, 0.03);
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
}

.design-upload-area:hover {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.06);
}

.design-upload-area.has-file {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.08);
}

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

.design-upload-area h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--cream);
  margin-bottom: 0.4rem;
}

.design-upload-area p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.upload-btn-label {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.65rem 1.6rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--surface);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.upload-btn-label:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

input[type="file"] { display: none; }

.design-preview {
  display: none;
  position: relative;
}

.design-preview img {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  border-radius: var(--radius);
  margin: 0 auto;
  border: 1px solid var(--glass-border);
}

.design-preview .remove-design {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 32px;
  height: 32px;
  background: rgba(200, 50, 50, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  color: white;
  border: none;
  transition: var(--transition);
}

.design-preview .remove-design:hover { background: #c0392b; }

/* ================================
   STEP 4: MEASUREMENTS
   ================================ */
.measurements-intro {
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.08), rgba(123, 31, 75, 0.08));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.measurements-intro .mi-icon { font-size: 1.5rem; flex-shrink: 0; }

.measurements-intro p {
  color: rgba(255,255,255,0.75);
  font-size: 0.88rem;
  line-height: 1.7;
}

.measurements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.measurement-field {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  position: relative;
  transition: border-color var(--transition);
}

.measurement-field:focus-within {
  border-color: var(--gold);
  background: rgba(201, 168, 76, 0.04);
}

.measurement-field label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.5rem;
}

.measurement-field label .m-icon { font-size: 0.9rem; }

.measurement-field input {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  color: var(--cream);
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 500;
}

.measurement-field input::placeholder { color: var(--text-muted); font-weight: 400; }

.m-unit {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.measurement-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
  font-style: italic;
}

/* ================================
   STEP 5: CUSTOMER DETAILS
   ================================ */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.details-full { grid-column: 1 / -1; }

/* ================================
   STEP 6: REVIEW
   ================================ */
.review-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.review-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.review-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  gap: 1rem;
}

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

.review-key {
  font-size: 0.85rem;
  color: var(--text-muted);
  flex: 0 0 auto;
}

.review-val {
  font-size: 0.9rem;
  color: var(--cream);
  text-align: right;
  font-weight: 500;
}

.review-design-preview {
  margin-top: 0.8rem;
}

.review-design-preview img {
  max-height: 120px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
}

.review-colour-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.colour-chip-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: inline-block;
}

/* Submit Section */
.submit-section {
  text-align: center;
  padding: 2rem 0;
}

.submit-note {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.submit-note strong { color: var(--cream); }

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: var(--font-sans);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.3);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.45);
}

/* ================================
   WIZARD NAVIGATION BUTTONS
   ================================ */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  background: none;
  font-family: var(--font-sans);
  cursor: pointer;
}

.btn-back:hover {
  border-color: rgba(255,255,255,0.4);
  color: var(--cream);
}

.btn-next {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: var(--surface);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  font-family: var(--font-sans);
}

.btn-next:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

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

/* ================================
   ORDER PAGE RESPONSIVE
   ================================ */
@media (max-width: 700px) {
  .cloth-grid { grid-template-columns: 1fr; }
  .details-grid { grid-template-columns: 1fr; }
  .details-full { grid-column: 1; }
  .measurements-grid { grid-template-columns: 1fr 1fr; }
  .prog-label { display: none; }
  .prog-dot { width: 30px; height: 30px; font-size: 0.75rem; }
  .progress-steps::before { top: 15px; }
  .progress-fill { top: 15px; }
}

@media (max-width: 480px) {
  .measurements-grid { grid-template-columns: 1fr; }
  .work-type-grid { grid-template-columns: 1fr; }
  .wizard-container { padding: 1.5rem 1rem 3rem; }
  .progress-wrap { padding: 1.5rem 1rem 0; }
}
