/* ===========================================================
   WIZARD UI ENHANCEMENTS — Apex Mobile & Computer Repairs
   Layered on top of style.css. Enhances the booking wizard
   with better depth, touch targets, and mobile responsiveness.
   =========================================================== */

/* ---------- WIZARD SHELL ---------- */
.wizard-shell {
    max-width: 680px;
    margin: 0 auto;
    padding: 32px 24px 120px;
  }
  
  /* ---------- PROGRESS BAR WITH STEPS ---------- */
  .wizard-progress-wrap {
    margin-bottom: 32px;
  }
  
  .wizard-progress {
    height: 4px;
    background: var(--line);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    --progress: 12.5%;
  }
  
  .wizard-progress::after {
    content: '';
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
    width: var(--progress);
    background: linear-gradient(90deg, var(--red), var(--amber-dark));
    border-radius: 2px;
    transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  .wizard-step-dots {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 2px;
  }
  
  .wizard-step-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--line);
    transition: all 0.3s ease;
    flex-shrink: 0;
  }
  
  .wizard-step-dot.done {
    background: var(--amber);
  }
  
  .wizard-step-dot.active {
    background: var(--amber);
    transform: scale(1.5);
    box-shadow: 0 0 0 3px rgba(227, 52, 47, 0.15);
  }
  
  /* ---------- WIZARD CARD ---------- */
  .wizard-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.3s ease;
  }
  
  /* ---------- STEP HEADER ---------- */
  .wizard-step-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    gap: 12px;
  }
  
  .step-counter {
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--slate-light);
    letter-spacing: 0.06em;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .step-title {
    font-weight: 600;
    color: var(--ink);
    font-size: 1.05rem;
    flex: 1;
    text-align: center;
    line-height: 1.3;
  }
  
  .step-progress-percent {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--amber-dark);
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .wizard-hint {
    font-size: 0.85rem;
    color: var(--slate-light);
    margin-bottom: 22px;
    line-height: 1.5;
    margin-top: 14px;
  }
  
  /* ---------- OPTION TILES ---------- */
  .option-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  
  .option-grid.two {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .option-tile {
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 20px 12px;
    text-align: center;
    background: var(--paper);
    font-weight: 500;
    font-size: 0.92rem;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
  }
  
  .option-tile:hover {
    border-color: var(--amber);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  }
  
  .option-tile:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  }
  
  .option-tile.selected {
    border-color: var(--amber-dark);
    background: #FDF6EE;
    box-shadow: inset 0 0 0 1px var(--amber-dark), 0 4px 12px rgba(227, 52, 47, 0.08);
  }
  
  .option-tile .glyph {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
  }
  
  .option-tile.selected .glyph {
    color: var(--amber-dark);
  }
  
  .option-tile .glyph svg {
    width: 28px;
    height: 28px;
  }
  
  /* ---------- CHIPS ---------- */
  .checkbox-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  
  .chip {
    border: 1.5px solid var(--line);
    border-radius: 999px;
    padding: 12px 18px;
    font-size: 0.88rem;
    background: var(--paper);
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  
  .chip:hover {
    border-color: var(--amber);
    transform: translateY(-1px);
  }
  
  .chip:active {
    transform: translateY(0);
  }
  
  .chip.selected {
    border-color: var(--amber-dark);
    background: #FDF6EE;
    color: var(--amber-dark);
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(227, 52, 47, 0.1);
  }
  
  /* ---------- FORM FIELDS ---------- */
  label.field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 8px;
    margin-top: 20px;
    color: var(--slate);
    letter-spacing: 0.01em;
  }
  
  label.field-label:first-of-type {
    margin-top: 0;
  }
  
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  input[type="date"],
  select,
  textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: 10px;
    font-family: var(--body);
    font-size: 0.95rem;
    background: #FAFAFA;
    transition: all 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
  }
  
  input[type="text"]:focus,
  input[type="tel"]:focus,
  input[type="email"]:focus,
  input[type="date"]:focus,
  select:focus,
  textarea:focus {
    border-color: var(--amber-dark);
    background: var(--paper);
    box-shadow: 0 0 0 3px rgba(227, 52, 47, 0.08);
    outline: none;
  }
  
  input[type="date"] {
    cursor: pointer;
  }
  
  select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238A8A85' stroke-width='1.5' stroke-linecap='square'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
  }
  
  textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.5;
  }
  
  /* ---------- UPLOAD ZONE ---------- */
  .upload-zone {
    border: 2px dashed var(--line);
    border-radius: 10px;
    padding: 28px;
    text-align: center;
    color: var(--slate);
    font-size: 0.88rem;
    background: #FAFAFA;
    cursor: pointer;
    transition: all 0.15s ease;
  }
  
  .upload-zone:hover {
    border-color: var(--amber);
    background: #FDF6EE;
    color: var(--amber-dark);
  }
  
  .photo-preview-row {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
  }
  
  .photo-preview-row img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    border: 1.5px solid var(--line);
  }
  
  /* ---------- SLOT GRID ---------- */
  .slot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 4px;
  }
  
  .slot-tile {
    border: 1.5px solid var(--line);
    border-radius: 10px;
    padding: 14px 10px;
    text-align: center;
    font-size: 0.85rem;
    background: var(--paper);
    cursor: pointer;
    transition: all 0.15s ease;
    min-height: 44px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }
  
  .slot-tile:hover {
    border-color: var(--amber);
    transform: translateY(-1px);
  }
  
  .slot-tile:active {
    transform: translateY(0);
  }
  
  .slot-tile.selected {
    border-color: var(--amber-dark);
    background: #FDF6EE;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(227, 52, 47, 0.1);
  }
  
  .slot-tile strong {
    font-size: 0.9rem;
  }
  
  /* ---------- QUOTE BOX ---------- */
  .quote-box {
    background: linear-gradient(135deg, var(--ink) 0%, #1a1a1a 100%);
    color: var(--paper);
    border-radius: 12px;
    padding: 28px 24px;
    margin-bottom: 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
  
  .quote-box .amount {
    font-family: var(--mono);
    font-size: 2.2rem;
    color: var(--amber);
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  
  .quote-box .label {
    font-size: 0.78rem;
    color: #999;
    margin-top: 8px;
    line-height: 1.4;
  }
  
  /* ---------- REVIEW BLOCKS ---------- */
  .review-block {
    background: #FAFAFA;
    border: 1px solid var(--line);
    border-left: 3px solid var(--amber);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    transition: background 0.15s ease;
  }
  
  .review-block:hover {
    background: #F5F5F0;
  }
  
  .review-label {
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--slate-light);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }
  
  .review-value {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--ink);
    line-height: 1.4;
  }
  
  .review-edit {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--amber);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: none;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.15s ease;
    white-space: nowrap;
    flex-shrink: 0;
  }
  
  .review-edit:hover {
    color: var(--amber-dark);
    background: #FDF6EE;
  }
  
  /* ---------- BUTTONS ---------- */
  .wizard-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    gap: 12px;
  }
  
  .btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    font-family: var(--body);
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  .btn-primary {
    background: var(--ink);
    color: var(--paper);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  }
  
  .btn-primary:hover {
    background: var(--ink-soft);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }
  
  .btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  }
  
  .btn-primary:disabled {
    background: var(--slate-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
  }
  
  .btn-ghost {
    background: transparent;
    color: var(--slate);
    border: 1.5px solid var(--line);
  }
  
  .btn-ghost:hover {
    color: var(--ink);
    border-color: var(--slate);
    background: #FAFAFA;
  }
  
  .btn-ghost:active {
    background: #F0F0EB;
  }
  
  /* ---------- ANIMATIONS ---------- */
  @keyframes wizardSlideIn {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .wizard-enter {
    animation: wizardSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  
  /* ---------- BREADCRUMB ---------- */
  .breadcrumb {
    display: flex;
    gap: 8px;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--slate-light);
    margin-bottom: 24px;
    align-items: center;
  }
  
  .breadcrumb a:hover {
    color: var(--amber-dark);
  }
  
  .breadcrumb .separator {
    opacity: 0.4;
  }
  
  /* ---------- SUCCESS SCREEN ---------- */
  .success-check-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    box-shadow: 0 8px 24px rgba(22, 176, 84, 0.25);
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  
  @keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
  }
  
  .success-ticket-box {
    background: linear-gradient(135deg, var(--ink) 0%, #1a1a1a 100%);
    color: var(--paper);
    border-radius: 14px;
    padding: 28px 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.06);
  }
  
  .success-local-warning {
    background: #FDF6EE;
    border: 1px solid rgba(227, 52, 47, 0.15);
    border-left: 3px solid var(--amber);
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.82rem;
    color: var(--amber-dark);
    line-height: 1.5;
  }
  
  /* ===========================================================
     MOBILE RESPONSIVE — Perfect wizard on phones
     =========================================================== */
  
  @media (max-width: 640px) {
    .wizard-shell {
      padding: 20px 16px 100px;
    }
  
    .wizard-card {
      padding: 22px 18px;
      border-radius: 10px;
    }
  
    /* Step header on mobile */
    .wizard-step-label {
      padding-bottom: 12px;
      margin-bottom: 4px;
      gap: 8px;
    }
  
    .step-counter {
      font-size: 0.65rem;
    }
  
    .step-title {
      font-size: 0.95rem;
    }
  
    .step-progress-percent {
      font-size: 0.65rem;
    }
  
    .wizard-hint {
      font-size: 0.82rem;
      margin-bottom: 18px;
      margin-top: 12px;
    }
  
    /* Step dots on mobile */
    .wizard-step-dot {
      width: 6px;
      height: 6px;
    }
  
    .wizard-step-dot.active {
      transform: scale(1.4);
      box-shadow: 0 0 0 2px rgba(227, 52, 47, 0.15);
    }
  
    /* Option grid — 2 columns on phone for device types */
    .option-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 10px;
    }
  
    .option-grid.two {
      grid-template-columns: 1fr;
      gap: 10px;
    }
  
    .option-tile {
      padding: 16px 10px;
      font-size: 0.88rem;
      min-height: 48px;
      gap: 8px;
    }
  
    .option-tile .glyph svg {
      width: 24px;
      height: 24px;
    }
  
    .option-tile .glyph {
      font-size: 1.3rem;
    }
  
    /* Chips — full-width-friendly on mobile */
    .checkbox-list {
      gap: 8px;
    }
  
    .chip {
      padding: 11px 16px;
      font-size: 0.85rem;
      min-height: 44px;
    }
  
    /* Form fields — 16px to prevent iOS zoom */
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    input[type="date"],
    select,
    textarea {
      padding: 14px 16px;
      font-size: 16px;
      border-radius: 8px;
    }
  
    label.field-label {
      margin-top: 18px;
      font-size: 0.8rem;
    }
  
    /* Slots — 2 columns on mobile */
    .slot-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
    }
  
    .slot-tile {
      padding: 12px 8px;
      font-size: 0.8rem;
      min-height: 48px;
    }
  
    .slot-tile strong {
      font-size: 0.85rem;
    }
  
    /* Upload zone */
    .upload-zone {
      padding: 22px 14px;
      border-width: 2px;
    }
  
    .photo-preview-row img {
      width: 64px;
      height: 64px;
    }
  
    /* Buttons — stacked on mobile */
    .wizard-actions {
      flex-direction: column-reverse;
      gap: 10px;
      margin-top: 26px;
    }
  
    .btn {
      width: 100%;
      padding: 15px 20px;
      font-size: 0.95rem;
      min-height: 50px;
    }
  
    .btn-ghost {
      width: 100%;
    }
  
    /* Quote box on mobile */
    .quote-box {
      padding: 22px 18px;
    }
  
    .quote-box .amount {
      font-size: 1.8rem;
    }
  
    .quote-box .label {
      font-size: 0.75rem;
    }
  
    /* Review blocks on mobile */
    .review-block {
      padding: 12px 14px;
      flex-direction: row;
      align-items: flex-start;
    }
  
    .review-label {
      font-size: 0.72rem;
    }
  
    .review-value {
      font-size: 0.88rem;
    }
  
    .review-edit {
      font-size: 0.65rem;
      padding: 5px 8px;
    }
  
    /* Success screen on mobile */
    .success-check-circle {
      width: 64px;
      height: 64px;
    }
  
    .success-ticket-box {
      padding: 22px 18px;
    }
  
    /* Topbar on mobile */
    .topbar .container {
      flex-direction: column;
      align-items: flex-start;
      gap: 4px;
      font-size: 0.72rem;
    }
  
    /* Nav on mobile */
    .nav .container {
      flex-wrap: wrap;
      gap: 12px;
    }
  
    .nav-links {
      display: none;
    }
  
    .nav .logo {
      flex: 1;
    }
  
    /* Breadcrumb */
    .breadcrumb {
      font-size: 0.72rem;
      margin-bottom: 20px;
    }
  }
  
  /* ===========================================================
     TABLET — between phone and desktop
     =========================================================== */
  @media (min-width: 641px) and (max-width: 900px) {
    .wizard-shell {
      padding: 28px 20px 100px;
    }
  
    .option-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }
  
  /* ===========================================================
     SMALL PHONES — under 380px
     =========================================================== */
  @media (max-width: 380px) {
    .wizard-shell {
      padding: 16px 12px 90px;
    }
  
    .wizard-card {
      padding: 18px 14px;
    }
  
    .option-grid {
      grid-template-columns: 1fr;
      gap: 8px;
    }
  
    .option-grid.two {
      grid-template-columns: 1fr;
    }
  
    .slot-grid {
      grid-template-columns: 1fr;
    }
  
    .step-title {
      font-size: 0.88rem;
    }
  
    .quote-box .amount {
      font-size: 1.6rem;
    }
  }
  
  /* ===========================================================
     REDUCED MOTION
     =========================================================== */
  @media (prefers-reduced-motion: reduce) {
    .wizard-enter {
      animation: none;
    }
  
    .option-tile,
    .chip,
    .slot-tile,
    .btn {
      transition: none;
      transform: none !important;
    }
  
    .wizard-progress::after {
      transition: none;
    }
  
    .success-check-circle {
      animation: none;
    }
  }

  .results-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .auto-refresh-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--slate);
    cursor: pointer;
    white-space: nowrap;
  }
  .auto-refresh-toggle input {
    width: 16px;
    height: 16px;
    cursor: pointer;
  }
  .btn-download-receipt {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--blue);
    color: #fff;
    border: 1px solid var(--blue);
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s ease;
  }
  .btn-download-receipt:hover { opacity: 0.88; }
  .btn-download-receipt:active { opacity: 0.75; }
  .btn-download-receipt:disabled { opacity: 0.6; cursor: default; }
  
  @media (max-width: 640px) {
    .results-controls {
      flex-direction: column;
      align-items: stretch;
      gap: 10px;
    }
    .auto-refresh-toggle {
      justify-content: center;
      padding: 8px 0;
    }
    .btn-download-receipt {
      width: 100%;
      justify-content: center;
      padding: 13px 16px;
      font-size: 0.9rem;
    }
  }
  

