:root{
  --primary: #f97316;
  --primary-dark: #ea580c;
  --navy: #0f172a;
  --text: #111827;
  --muted: #64748b;
  --light: #f8fafc;
  --line: #e2e8f0;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 4px 20px rgba(15,23,42,.08);
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
html{
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: auto !important;
  min-height: 100dvh !important;
  max-height: none !important;
}
body{
  font-family:Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background:#f8fafc;
  color:var(--text);
  line-height:1.5;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  min-height: 100dvh !important;
  height: auto !important;
  max-height: none !important;
  position: relative;
}

.container{
  width:min(1200px, calc(100% - 32px));
  margin:0 auto;
  min-height: auto;
  height: auto;
  overflow: visible;
}

/* Hero */
.appt-hero{
  background:#fff;
  padding:24px 0 12px;
  border-bottom:1px solid var(--line);
}
.appt-hero-inner{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:24px;
}
.appt-hero-text h1{
  font-family:Orbitron, Inter, sans-serif;
  font-size:clamp(26px,4vw,38px);
  font-weight:900;
  color:var(--navy);
  margin:0 0 6px;
  letter-spacing:-.01em;
}
.appt-hero-text p{
  color:var(--muted);
  font-size:14px;
  font-weight:500;
  margin:0;
}
.appt-hero-image{
  flex:0 0 180px;
  display:flex;
  justify-content:center;
}
.appt-hero-image img{
  max-width:100%;
  max-height:120px;
  object-fit:contain;
}

/* Main */
.appt-main{
  padding:18px 0 64px;
  min-height: auto;
  height: auto;
  overflow: visible;
  position: relative;
  z-index: 0;
  padding-bottom: 100px;
}

/* Info Banner */
.info-banner{
  background:#fff7ed;
  border:1px solid var(--primary);
  border-left:5px solid var(--primary);
  border-radius:var(--radius);
  padding:20px 24px;
  display:flex;
  gap:18px;
  align-items:flex-start;
  margin-bottom:28px;
  box-shadow:0 6px 24px rgba(249,115,22,.18);
}
.info-icon{
  width:34px;
  height:34px;
  border-radius:50%;
  background:var(--primary);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  flex-shrink:0;
}
.info-body h3{
  margin:0 0 4px;
  font-size:15px;
  font-weight:800;
  color:var(--navy);
}
.info-body p{
  margin:0;
  font-size:13.5px;
  color:var(--muted);
  line-height:1.6;
}
.info-body .policy-link{
  color:var(--primary);
  text-decoration:underline;
  font-weight:600;
}

/* Steps */
.appt-step{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:26px 28px 28px;
  margin-bottom:24px;
  box-shadow:var(--shadow);
}
.step-header{
  display:flex;
  align-items:center;
  gap:14px;
  margin-bottom:22px;
}
.step-header .step-number{
  width:34px;
  height:34px;
  border-radius:50%;
  background:var(--primary);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:15px;
  flex-shrink:0;
}
.step-header h2{
  margin:0;
  font-size:17px;
  font-weight:800;
  color:var(--navy);
}
.step-header p{
  margin:2px 0 0;
  font-size:13px;
  color:var(--muted);
}
.view-all-link{
  margin-left:auto;
  color:var(--primary);
  font-size:13px;
  font-weight:700;
  text-decoration:none;
}
.view-all-link:hover{text-decoration:underline}

/* Service Slider */
.service-slider{
  display:flex;
  gap:10px;
  overflow-x:auto;
  padding:4px 0 8px 0;
  scrollbar-width:thin;
}
.service-slider::-webkit-scrollbar{height:6px}
.service-slider::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:3px}
.service-state{
  margin:0;
  padding:18px;
  color:var(--muted);
  font-size:14px;
}
.service-retry-btn{
  align-self:center;
  padding:8px 14px;
  border:1px solid var(--primary);
  border-radius:8px;
  background:var(--white);
  color:var(--primary-dark);
  font-weight:700;
  cursor:pointer;
}

.service-card{
  flex:0 0 240px;
  border:1.5px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  cursor:pointer;
  transition:all .2s ease;
  background:var(--white);
  position:relative;
  display:flex;
  flex-direction:column;
}
.service-card:hover{
  border-color:var(--primary);
  transform:translateY(-2px);
  box-shadow:0 12px 28px rgba(249,115,22,.12);
}
.service-card.selected{
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(249,115,22,.15);
}
.service-icon{
  width:48px;
  height:48px;
  border-radius:12px;
  background:#fff7ed;
  color:var(--primary);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:22px;
  margin-bottom:14px;
}
.service-card h3{
  margin:0 0 4px;
  font-size:16px;
  font-weight:800;
  color:var(--text);
}
.service-card p{
  margin:0 0 14px;
  font-size:13px;
  color:var(--muted);
  line-height:1.45;
  min-height:38px;
}
.service-card .price{
  font-size:17px;
  font-weight:900;
  color:var(--text);
  display:block;
  margin-bottom:14px;
}
.service-card .select-btn{
  width:100%;
  padding:10px 0;
  border:1.5px solid var(--primary);
  border-radius:10px;
  background:#fff;
  color:var(--primary);
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  transition:all .2s;
  margin-top: auto;
}
.service-card .select-btn:hover,
.service-card.selected .select-btn{
  background:var(--primary);
  color:#fff;
}
.service-card.selected .select-btn:after{content:"Selected"}
.service-card:not(.selected) .select-btn:after{content:"Select"}

/* Parts */
.parts-area{
  display:flex;
  gap:16px;
  align-items:center;
  overflow-x:auto;
  padding-bottom:6px;
  scrollbar-width:thin;
}

/* Notes Field */
.notes-field{
  margin-top:16px;
}
.notes-field .input-wrap{
  position:relative;
}
.notes-field textarea{
  width:100%;
  padding:16px 50px 16px 16px;
  border:2px solid #e5e7eb;
  border-radius:12px;
  font-size:14px;
  font-family:inherit;
  resize:vertical;
  transition:border-color .2s;
}
.notes-field textarea:focus{
  outline:none;
  border-color:var(--primary);
}
.notes-field .input-wrap i{
  position:absolute;
  right:16px;
  top:16px;
  color:var(--muted);
  font-size:18px;
}
.parts-list{
  display:flex;
  gap:16px;
}
.part-card{
  flex:0 0 220px;
  border:1.5px solid var(--line);
  border-radius:var(--radius);
  padding:14px;
  display:flex;
  align-items:center;
  background:var(--white);
  position:relative;
}
.part-info h4{
  margin:0 0 2px;
  font-size:14px;
  font-weight:800;
  color:var(--text);
}
.part-info .part-meta{
  margin:0 0 6px;
  font-size:12px;
  color:var(--muted);
}
.part-info .part-price{
  font-size:15px;
  font-weight:900;
}
.remove-part{
  position:absolute;
  top:8px;
  right:8px;
  width:24px;
  height:24px;
  border:none;
  border-radius:50%;
  background:#fee2e2;
  color:#dc2626;
  cursor:pointer;
  font-size:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index: 10;
}
.remove-part:hover{
  background:#dc2626;
  color:#fff;
}
.add-more-card{
  flex:0 0 120px;
  border:1.5px dashed var(--line);
  border-radius:var(--radius);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  background:#f8fafc;
  color:var(--muted);
  cursor:pointer;
  transition:all .2s;
  padding:14px;
}
.add-more-card:hover{
  border-color:var(--primary);
  color:var(--primary);
  background:#fff7ed;
}
.add-more-card i{
  font-size:24px;
}
.add-more-card span{
  font-size:13px;
  font-weight:700;
  text-align:center;
  line-height:1.3;
}
.parts-total-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:20px;
  padding-top:16px;
  border-top:1px solid var(--line);
  font-size:15px;
  font-weight:700;
  color:var(--text);
}
.parts-total-row strong{
  font-size:18px;
  color:var(--text);
}

/* Date & Time */
.datetime-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}
.datetime-field label{
  display:block;
  font-size:13px;
  font-weight:700;
  color:var(--navy);
  margin-bottom:8px;
}
.input-wrap{
  position:relative;
}
.input-wrap input,
.input-wrap select{
  width:100%;
  padding:14px 44px 14px 16px;
  border:1.5px solid var(--line);
  border-radius:12px;
  font-size:15px;
  font-family:inherit;
  color:var(--text);
  background:var(--white);
  appearance:none;
}
.input-wrap input:focus,
.input-wrap select:focus{
  border-color:var(--primary);
  outline:none;
}
.input-wrap i{
  position:absolute;
  right:16px;
  top:50%;
  transform:translateY(-50%);
  color:var(--muted);
  pointer-events:none;
}

/* Policy Notice */
.policy-notice{
  margin-top:16px;
  padding:12px 16px;
  background:#fff7ed;
  border:1px solid var(--primary);
  border-left:4px solid var(--primary);
  border-radius:10px;
  display:flex;
  gap:12px;
  align-items:center;
  font-size:13px;
  color:var(--text);
  line-height:1.5;
}
.policy-notice i{
  color:var(--primary);
  font-size:16px;
  flex-shrink:0;
}

/* Mechanic Slider */
.mechanic-slider{
  display:flex;
  gap:18px;
  overflow-x:auto;
  padding-bottom:8px;
}
.mechanic-card{
  flex:0 0 180px;
  border:1.5px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  text-align:center;
  cursor:pointer;
  transition:all .2s;
  background:var(--white);
  position:relative;
}
.mechanic-card:hover{
  border-color:var(--primary);
}
.mechanic-card.selected{
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(249,115,22,.15);
}
.mechanic-avatar{
  width:80px;
  height:80px;
  border-radius:50%;
  object-fit:cover;
  margin:0 auto 12px;
  background:#e2e8f0;
  border:3px solid #fff;
  box-shadow:0 4px 12px rgba(0,0,0,.08);
}
.mechanic-card h4{
  margin:0 0 4px;
  font-size:15px;
  font-weight:800;
}
.mechanic-card .rating{
  color:#f59e0b;
  font-size:13px;
  font-weight:700;
  margin-bottom:6px;
}
.mechanic-card .specialty{
  font-size:12px;
  color:var(--primary);
  font-weight:700;
  margin-bottom:2px;
}
.mechanic-card .experience{
  font-size:12px;
  color:var(--muted);
}
.mechanic-card .select-btn{
  width:100%;
  padding:10px 0;
  border:1.5px solid var(--primary);
  border-radius:10px;
  background:#fff;
  color:var(--primary);
  font-weight:800;
  font-size:13px;
  cursor:pointer;
  transition:all .2s;
  margin-top:12px;
}
.mechanic-card .select-btn:hover,
.mechanic-card.selected .select-btn{
  background:var(--primary);
  color:#fff;
}
.mechanic-card.selected .select-btn:after{content:"Selected"}
.mechanic-card:not(.selected) .select-btn:after{content:"Select"}

/* Confirm */
.confirm-step{background:var(--white)}
.confirm-card{
  border:1.5px solid var(--line);
  border-radius:var(--radius);
  padding:24px;
  background:#f8fafc;
}
.confirm-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:20px;
  margin-bottom:24px;
}
.confirm-item{
  display:flex;
  align-items:flex-start;
  gap:12px;
}
.confirm-item i{
  width:38px;
  height:38px;
  border-radius:10px;
  background:#fff7ed;
  color:var(--primary);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  flex-shrink:0;
}
.confirm-item .confirm-label{
  display:block;
  font-size:12px;
  color:var(--muted);
  font-weight:700;
  margin-bottom:2px;
}
.confirm-item .confirm-value{
  display:block;
  font-size:14px;
  color:var(--navy);
  font-weight:800;
  margin-bottom:2px;
}
.confirm-item .confirm-sub{
  display:block;
  font-size:13px;
  color:var(--muted);
}
.confirm-dropdown-wrapper{
  position:relative;
  margin-bottom:2px;
}
.confirm-dropdown-toggle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  max-width:250px;
  padding:8px 12px;
  border:1px solid #e5e7eb;
  border-radius:8px;
  background:#fff;
  font-size:13px;
  color:#111827;
  font-weight:600;
  cursor:pointer;
  transition:all 0.2s ease;
  box-shadow:0 1px 2px rgba(0,0,0,0.05);
}
.confirm-dropdown-toggle:hover{
  border-color:#f97316;
  box-shadow:0 2px 4px rgba(0,0,0,0.08);
}
.confirm-dropdown-toggle i{
  font-size:11px;
  color:#6b7280;
  transition:transform 0.2s ease;
}
.confirm-dropdown-toggle.open i{
  transform:rotate(180deg);
}
.confirm-dropdown-content{
  display:none;
  position:absolute;
  top:100%;
  left:0;
  right:0;
  max-width:250px;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:8px;
  margin-top:4px;
  z-index:100;
  max-height:200px;
  overflow-y:auto;
  box-shadow:0 4px 20px rgba(0,0,0,0.15);
}
.confirm-dropdown-content.show{
  display:block;
}
.confirm-dropdown-item{
  padding:10px 14px;
  font-size:13px;
  color:#111827;
  border-bottom:1px solid #f3f4f6;
  cursor:default;
  font-weight:500;
  display:flex;
  align-items:center;
  gap:8px;
}
.confirm-dropdown-item:last-child{
  border-bottom:none;
}
.confirm-dropdown-item:hover{
  background:#fff7ed;
  color:#f97316;
}
.confirm-dropdown-item i{
  color:#f97316;
  font-size:12px;
}
.confirm-total{
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid var(--line);
  padding-top:20px;
  margin-bottom:20px;
}
.total-label{
  display:flex;
  flex-direction:column;
}
.total-label span{
  font-size:15px;
  font-weight:800;
  color:var(--navy);
}
.total-label small{
  font-size:13px;
  color:var(--muted);
}
.total-amount{
  text-align:right;
}
.total-amount span{
  display:block;
  font-size:26px;
  font-weight:900;
  color:var(--text);
}
.total-amount small{
  font-size:13px;
  color:var(--muted);
}
.confirm-btn{
  width:100%;
  padding:16px;
  border:none;
  border-radius:12px;
  background:var(--primary);
  color:#fff;
  font-size:15px;
  font-weight:900;
  cursor:pointer;
  transition:background .2s;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  position: relative;
  z-index: 1;
}
.confirm-btn:hover{background:var(--primary-dark)}
.confirm-btn:disabled{background:#cbd5e1;cursor:not-allowed}

/* Cost Breakdown */
.confirm-breakdown{
  border-top:1px solid var(--line);
  margin:18px 0;
  padding-top:18px;
}
.breakdown-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:10px 0;
  font-size:14px;
  color:var(--text);
  border-bottom:1px solid #f1f5f9;
}
.breakdown-row span{color:var(--muted)}
.breakdown-row strong{font-weight:800}
.breakdown-row:last-child{border-bottom:none}

/* Modal (product browser only) */
.modal{
  position:fixed;
  inset:0;
  z-index:1000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
}
.modal.active{
  display:flex;
}
body.modal-open{
  overflow:hidden;
}
#productModal .modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.55);
  backdrop-filter:blur(4px);
}
#productModal .modal-content{
  width:min(760px,100%);
  max-height:calc(100vh - 40px);
  background:var(--white);
  border-radius:var(--radius);
  position:relative;
  z-index:1001;
  display:flex;
  flex-direction:column;
  box-shadow:0 24px 60px rgba(15,23,42,.25);
}
#productModal .modal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 24px;
  border-bottom:1px solid var(--line);
}
#productModal .modal-header h3{
  margin:0;
  font-size:18px;
  font-weight:800;
}
#productModal .modal-close{
  width:36px;
  height:36px;
  border:none;
  border-radius:10px;
  background:#f1f5f9;
  color:var(--text);
  cursor:pointer;
  font-size:16px;
}
#productModal .modal-body{
  padding:24px;
}
#productModal .product-search{
  position:relative;
  margin-bottom:20px;
}
#productModal .product-search input{
  width:100%;
  padding:14px 44px 14px 18px;
  border:1.5px solid var(--line);
  border-radius:12px;
  font-size:14px;
}
#productModal .product-search i{
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  color:var(--muted);
}
#productModal .product-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:8px;
  min-height: 200px;
  align-items: stretch;
}
#productModal .product-card{
  border:1.5px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  text-align:center;
  display:flex;
  flex-direction:column;
  min-height: 280px;
  overflow:visible;
  transition: border-color 0.2s ease;
}
#productModal .product-card:hover{border-color:var(--primary)}
#productModal .product-image-wrapper{
  width:100%;
  height:100px;
  margin-bottom:12px;
  flex-shrink:0;
  background:#f1f5f9;
  border-radius:10px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
#productModal .product-card img{
  width:100%;
  height:100%;
  object-fit:contain;
  border-radius:10px;
  background:#f1f5f9;
  padding:6px;
}
#productModal .product-image-wrapper:empty::before{
  content:"�";
  font-size:32px;
  color:#94a3b8;
}
#productModal .product-card h4{
  margin:0 0 8px;
  font-size:14px;
  font-weight:700;
  color:var(--text);
  line-height:1.3;
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
#productModal .product-card .price{
  font-size:16px;
  font-weight:800;
  color:var(--primary);
  margin-bottom:12px;
  display:block;
  flex-shrink: 0;
}
#productModal .product-variant-select{
  width:100%;
  min-height:38px;
  margin:0 0 12px;
  padding:8px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--white);
  color:var(--text);
  font:inherit;
  font-size:12px;
  flex-shrink: 0;
}
#productModal .product-card .add-btn{
  padding:6px 12px;
  border:none;
  border-radius:6px;
  background:var(--primary);
  color:#fff;
  font-weight:700;
  font-size:12px;
  cursor:pointer;
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
}
#productModal .product-card .add-btn:disabled{
  background:#94a3b8;
  cursor:not-allowed;
}

/* Service Modal */
#serviceModal .modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.55);
  backdrop-filter:blur(4px);
}
#serviceModal .modal-content{
  width:min(760px,100%);
  max-height:calc(100vh - 40px);
  background:var(--white);
  border-radius:var(--radius);
  position:relative;
  z-index:1001;
  display:flex;
  flex-direction:column;
  box-shadow:0 24px 60px rgba(15,23,42,.25);
}
#serviceModal .modal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 24px;
  border-bottom:1px solid var(--line);
}
#serviceModal .modal-header h3{
  margin:0;
  font-size:18px;
  font-weight:800;
}
#serviceModal .modal-close{
  width:36px;
  height:36px;
  border:none;
  border-radius:10px;
  background:#f1f5f9;
  color:var(--text);
  cursor:pointer;
  font-size:16px;
}
#serviceModal .modal-body{
  padding:24px;
}
#serviceModal .modal-body{
  padding:24px;
}
#serviceModal .product-search{
  position:relative;
  margin-bottom:20px;
}
#serviceModal .product-search input{
  width:100%;
  padding:14px 44px 14px 18px;
  border:1.5px solid var(--line);
  border-radius:12px;
  font-size:14px;
  background:var(--bg-soft);
}
#serviceModal .product-search i{
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  color:var(--muted);
}
#serviceModal .product-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:8px;
  min-height: 200px;
  align-items: stretch;
}
#serviceModal .product-card{
  border:1.5px solid var(--line);
  border-radius:var(--radius);
  padding:16px;
  cursor:pointer;
  text-align:center;
  display:flex;
  flex-direction:column;
  min-height: 240px;
  overflow:visible;
  transition: border-color 0.2s ease;
}
#serviceModal .product-card:hover{border-color:var(--primary)}
#serviceModal .product-image-wrapper{
  width:100%;
  height:100px;
  margin-bottom:12px;
  flex-shrink:0;
  background:#f1f5f9;
  border-radius:10px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
}
#serviceModal .service-icon-modal{
  font-size:48px;
  color:var(--primary);
}
#serviceModal .product-card h4{
  margin:0 0 8px;
  font-size:14px;
  font-weight:700;
  color:var(--text);
  line-height:1.3;
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
#serviceModal .product-card .price{
  font-size:16px;
  font-weight:800;
  color:var(--primary);
  margin-bottom:12px;
  display:block;
}
#serviceModal .product-card .add-btn{
  padding:6px 12px;
  border:none;
  border-radius:6px;
  background:var(--primary);
  color:#fff;
  font-weight:700;
  font-size:12px;
  cursor:pointer;
  margin-top: auto;
}

/* Policy Modal */
#policyModal .modal-content{
  width:min(640px,100%);
  max-height:calc(100vh - 40px);
  background:var(--white);
  border-radius:var(--radius);
  position:relative;
  z-index:1001;
  display:flex;
  flex-direction:column;
  box-shadow:0 24px 60px rgba(15,23,42,.25);
}
#policyModal .modal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:20px 24px;
  border-bottom:1px solid var(--line);
}
#policyModal .modal-header h3{
  margin:0;
  font-size:18px;
  font-weight:800;
}
#policyModal .modal-close{
  width:36px;
  height:36px;
  border:none;
  border-radius:10px;
  background:#f1f5f9;
  color:var(--text);
  cursor:pointer;
  font-size:16px;
}
#policyModal .modal-body{
  padding:24px;
  overflow-y:auto;
}
.policy-content h4{
  margin:0 0 10px;
  font-size:15px;
  font-weight:800;
  color:var(--navy);
}
.policy-content ul{
  margin:0 0 20px;
  padding-left:20px;
  font-size:13.5px;
  color:var(--muted);
  line-height:1.7;
}
.policy-content li{
  margin-bottom:6px;
}
.policy-content li:last-child{
  margin-bottom:0;
}
.policy-note{
  margin:0;
  padding:14px 18px;
  background:#fff7ed;
  border-left:4px solid var(--primary);
  border-radius:10px;
  font-size:13px;
  color:var(--text);
  font-weight:600;
  line-height:1.6;
}

/* Responsive */
@media (max-width: 900px){
  .appt-hero-inner{flex-direction:column; text-align:center}
  .appt-hero-image{display:none}
  .datetime-grid{grid-template-columns:1fr}
  .confirm-grid{grid-template-columns:1fr 1fr}
}

@media (max-width: 768px) {
  html, body {
    overflow: auto !important;
    overflow-y: auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: 100dvh !important;
  }

  body:not(.modal-open) {
    overflow: auto !important;
    overflow-y: auto !important;
  }

  .container {
    min-height: auto !important;
    height: auto !important;
  }

  .appt-main {
    min-height: auto !important;
    height: auto !important;
  }

  .confirm-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px;
  }
}
@media (max-width: 600px){
  html, body {
    overflow: auto !important;
    overflow-y: auto !important;
    height: auto !important;
    max-height: none !important;
  }

  body:not(.modal-open) {
    overflow: auto !important;
    overflow-y: auto !important;
  }

  .confirm-grid{grid-template-columns:1fr 1fr}
  .step-header{flex-wrap:wrap}
  .view-all-link{margin-left:0; width:100%}

  .appt-main {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }

  .appt-step {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }

  .confirm-step {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
  }

  .confirm-item i {
    width: 24px;
    height: 24px;
    font-size: 10px;
  }

  .confirm-item {
    gap: 6px;
  }

  .confirm-label {
    font-size: 10px !important;
  }

  .confirm-value {
    font-size: 11px !important;
  }

  .confirm-sub {
    font-size: 9px !important;
  }

  .confirm-card {
    padding: 12px !important;
    height: auto !important;
    overflow: visible !important;
    max-height: none !important;
  }

  .confirm-grid {
    gap: 8px;
    margin-bottom: 12px;
  }

  .confirm-dropdown-wrapper {
    margin-bottom: 1px !important;
  }

  .confirm-dropdown-toggle {
    padding: 5px 6px !important;
    font-size: 9px !important;
    border-radius: 6px !important;
  }

  .confirm-dropdown-toggle i {
    font-size: 8px !important;
  }

  .confirm-dropdown-item {
    padding: 6px 8px !important;
    font-size: 9px !important;
  }

  .confirm-dropdown-item i {
    font-size: 8px !important;
  }

  .breakdown-row {
    font-size: 10px !important;
    padding: 4px 0 !important;
  }

  .total-label span {
    font-size: 11px !important;
  }

  .total-label small {
    font-size: 8px !important;
  }

  .total-amount span {
    font-size: 12px !important;
  }

  .total-amount small {
    font-size: 9px !important;
  }

  .confirm-btn {
    padding: 6px 10px !important;
    font-size: 11px !important;
  }

  .notes-field textarea {
    padding: 8px 10px 8px 12px !important;
    font-size: 11px !important;
    min-height: 60px !important;
  }

  .notes-field .input-wrap i {
    font-size: 12px !important;
    right: 10px !important;
    top: 10px !important;
  }

  .datetime-field label {
    font-size: 11px !important;
  }

  .input-wrap input,
  .input-wrap select {
    padding: 8px 10px 8px 12px !important;
    font-size: 11px !important;
    min-height: 36px !important;
  }

  .input-wrap i {
    font-size: 12px !important;
    right: 10px !important;
  }

  .datetime-grid {
    gap: 10px !important;
  }

  .policy-notice {
    font-size: 10px !important;
    padding: 8px 10px !important;
  }

  .policy-notice i {
    font-size: 12px !important;
  }

  /* Native date picker and select styling */
  input[type="date"]::-webkit-calendar-picker-indicator {
    font-size: 12px !important;
    padding: 2px !important;
  }

  input[type="date"]::-webkit-calendar-picker-indicator:hover {
    cursor: pointer;
  }

  .input-wrap select {
    font-size: 11px !important;
    max-width: 100% !important;
    transform: scale(0.95);
    transform-origin: left center;
  }

  .input-wrap select option {
    font-size: 10px !important;
    padding: 2px 4px !important;
  }

  /* Make the dropdown smaller on mobile */
  .input-wrap select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }

  /* Try to reduce dropdown size */
  .input-wrap select:focus {
    font-size: 10px !important;
  }

  /* Android/Chrome specific - try to reduce dropdown panel */
  .input-wrap select option {
    font-size: 9px !important;
    padding: 1px 3px !important;
    line-height: 1.2 !important;
  }

  /* Parts section */
  .parts-area {
    gap: 8px !important;
  }

  .part-card {
    flex: 0 0 120px !important;
    padding: 8px !important;
  }

  .part-info h4 {
    font-size: 11px !important;
  }

  .part-info .part-meta {
    font-size: 9px !important;
  }

  .part-info .part-price {
    font-size: 12px !important;
  }

  .remove-part {
    width: 20px !important;
    height: 20px !important;
    font-size: 10px !important;
  }

  .add-more-card {
    flex: 0 0 60px !important;
    padding: 6px !important;
  }

  .add-more-card i {
    font-size: 14px !important;
  }

  .add-more-card span {
    font-size: 9px !important;
    line-height: 1.1 !important;
  }

  .parts-total-row {
    font-size: 11px !important;
    padding-top: 12px !important;
  }

  .parts-total-row strong {
    font-size: 13px !important;
  }

  /* Service section */
  .service-slider {
    gap: 6px !important;
  }

  .service-card {
    flex: 0 0 120px !important;
    padding: 8px !important;
  }

  .service-icon {
    width: 28px !important;
    height: 28px !important;
    font-size: 12px !important;
    margin-bottom: 6px !important;
  }

  .service-card h3 {
    font-size: 11px !important;
    margin-bottom: 2px !important;
  }

  .service-card p {
    font-size: 9px !important;
    min-height: 24px !important;
    line-height: 1.2 !important;
  }

  .service-card .price {
    font-size: 12px !important;
    margin-bottom: 6px !important;
  }

  .service-card .select-btn {
    padding: 5px 0 !important;
    font-size: 9px !important;
    margin-top: auto !important;
  }

  .service-state {
    font-size: 11px !important;
  }

  .service-retry-btn {
    padding: 6px 10px !important;
    font-size: 10px !important;
  }

  /* Info banner */
  .info-banner {
    padding: 10px !important;
    gap: 10px !important;
  }

  .info-icon {
    width: 26px !important;
    height: 26px !important;
    font-size: 11px !important;
  }

  .info-body h3 {
    font-size: 12px !important;
  }

  .info-body p {
    font-size: 10px !important;
  }

  .info-body .policy-link {
    font-size: 10px !important;
  }

  /* Step headers */
  .appt-step {
    padding: 12px 10px 14px !important;
    margin-bottom: 14px !important;
  }

  .step-header .step-number {
    width: 26px !important;
    height: 26px !important;
    font-size: 11px !important;
  }

  .step-header h2 {
    font-size: 14px !important;
  }

  .step-header p {
    font-size: 10px !important;
  }

  .view-all-link {
    font-size: 10px !important;
  }

  /* Policy Modal */
  #policyModal .modal-content {
    padding: 10px !important;
    max-height: none !important;
    height: auto !important;
  }

  #policyModal .modal-header {
    padding: 8px 10px !important;
  }

  #policyModal .modal-header h3 {
    font-size: 13px !important;
  }

  #policyModal .modal-close {
    width: 24px !important;
    height: 24px !important;
    font-size: 11px !important;
  }

  #policyModal .modal-body {
    padding: 8px 10px !important;
    max-height: none !important;
    height: auto !important;
    overflow-y: visible !important;
  }

  .policy-content ul {
    font-size: 9px !important;
    padding-left: 14px !important;
    margin: 0 !important;
  }

  .policy-content li {
    margin-bottom: 2px !important;
    line-height: 1.2 !important;
  }

  .policy-note {
    font-size: 9px !important;
    padding: 5px 6px !important;
    margin-top: 6px !important;
  }

  /* Product Modal */
  #productModal .product-grid,
  #serviceModal .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  #productModal .product-card {
    min-height: 280px !important;
    padding: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  #serviceModal .product-card {
    min-height: 220px !important;
    padding: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;
  }

  #productModal .product-card h4,
  #serviceModal .product-card h4 {
    font-size: 11px !important;
    min-height: 32px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  #serviceModal .service-icon-modal {
    font-size: 32px !important;
  }

  #serviceModal .product-image-wrapper {
    height: 60px !important;
    margin-bottom: 8px !important;
  }

  #productModal .product-card .price,
  #serviceModal .product-card .price {
    font-size: 12px !important;
    margin-bottom: 8px !important;
  }

  #productModal .product-variant-select,
  #serviceModal .product-variant-select {
    padding: 4px 6px !important;
    font-size: 10px !important;
    margin-bottom: 6px !important;
    flex-shrink: 0 !important;
  }

  #productModal .add-btn,
  #serviceModal .add-btn {
    padding: 6px 8px !important;
    font-size: 10px !important;
    margin-top: auto !important;
    width: 100% !important;
    flex-shrink: 0 !important;
  }

  #productModal .product-card .add-btn {
    margin-top: auto !important;
  }

  #serviceModal .product-card .add-btn {
    margin-top: auto !important;
  }
}

@media (max-width: 768px) {
  .container {
    width: calc(100% - 32px);
  }

  .appt-hero {
    padding: 20px 0 10px;
  }

  .appt-hero-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .appt-hero-text h1 {
    font-size: 28px;
  }

  .appt-hero-image {
    flex: 0 0 auto;
  }

  .appt-main {
    padding: 16px 0 48px;
  }

  .info-banner {
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }

  .appt-step {
    padding: 20px 18px 22px;
    margin-bottom: 20px;
  }

  .step-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .view-all-link {
    margin-left: 0;
    margin-top: 10px;
  }

  .service-slider {
    gap: 8px;
  }

  .service-card {
    flex: 0 0 200px;
    padding: 14px;
  }

  .service-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
    margin-bottom: 10px;
  }

  .service-card h3 {
    font-size: 14px;
  }

  .service-card p {
    font-size: 12px;
    min-height: 34px;
  }

  .service-card .price {
    font-size: 15px;
  }

  .service-card .select-btn {
    padding: 8px 0;
    font-size: 12px;
  }

  .parts-area {
    gap: 12px;
  }

  .part-card {
    flex: 0 0 180px;
    padding: 12px;
  }

  .add-more-card {
    flex: 0 0 100px;
    padding: 12px;
  }

  .add-more-card i {
    font-size: 20px;
  }

  .add-more-card span {
    font-size: 12px;
  }

  .datetime-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .mechanic-slider {
    gap: 14px;
  }

  .mechanic-card {
    flex: 0 0 160px;
    padding: 14px;
  }

  .mechanic-avatar {
    width: 70px;
    height: 70px;
  }

  .mechanic-card h4 {
    font-size: 14px;
  }

  .mechanic-card .rating {
    font-size: 12px;
  }

  .mechanic-card .specialty,
  .mechanic-card .experience {
    font-size: 11px;
  }

  .mechanic-card .select-btn {
    padding: 8px 0;
    font-size: 12px;
  }

  .confirm-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .confirm-item i {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .confirm-item .confirm-label {
    font-size: 11px;
  }

  .confirm-item .confirm-value {
    font-size: 13px;
  }

  .confirm-dropdown-toggle {
    max-width: 100%;
  }

  .total-amount span {
    font-size: 22px;
  }

  .confirm-btn {
    padding: 14px;
    font-size: 14px;
  }

  #productModal .modal-content,
  #serviceModal .modal-content {
    width: min(95%, 100%);
  }

  #productModal .product-grid,
  #serviceModal .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #productModal .product-card,
  #serviceModal .product-card {
    min-height: 240px;
  }
}

@media (max-width: 480px) {
  .container {
    width: calc(100% - 24px);
  }

  .appt-hero {
    padding: 16px 0 8px;
  }

  .appt-hero-text h1 {
    font-size: 24px;
  }

  .appt-hero-text p {
    font-size: 13px;
  }

  .appt-main {
    padding: 14px 0 36px;
  }

  .info-banner {
    padding: 14px;
    border-radius: 12px;
  }

  .info-icon {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }

  .info-body h3 {
    font-size: 14px;
  }

  .info-body p {
    font-size: 12px;
  }

  .appt-step {
    padding: 16px 14px 18px;
    margin-bottom: 16px;
    border-radius: 12px;
  }

  .step-header .step-number {
    width: 30px;
    height: 30px;
    font-size: 13px;
  }

  .step-header h2 {
    font-size: 15px;
  }

  .step-header p {
    font-size: 12px;
  }

  .service-card {
    flex: 0 0 160px;
    padding: 12px;
  }

  .service-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .service-card h3 {
    font-size: 13px;
  }

  .service-card p {
    font-size: 11px;
    min-height: 30px;
  }

  .service-card .price {
    font-size: 14px;
  }

  .part-card {
    flex: 0 0 140px;
    padding: 10px;
  }

  .part-info h4 {
    font-size: 13px;
  }

  .part-info .part-meta {
    font-size: 11px;
  }

  .part-info .part-price {
    font-size: 14px;
  }

  .notes-field textarea {
    padding: 14px 44px 14px 16px;
    font-size: 16px;
    min-height: 100px;
  }

  .input-wrap input,
  .input-wrap select {
    padding: 14px 44px 14px 16px;
    font-size: 16px;
    min-height: 48px;
  }

  .mechanic-card {
    flex: 0 0 140px;
    padding: 12px;
  }

  .mechanic-avatar {
    width: 60px;
    height: 60px;
  }

  .mechanic-card h4 {
    font-size: 13px;
  }

  .confirm-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .confirm-card {
    padding: 18px;
  }

  .total-amount span {
    font-size: 20px;
  }

  .confirm-btn {
    padding: 12px;
    font-size: 13px;
  }

  #productModal .modal-content,
  #serviceModal .modal-content {
    width: calc(100% - 32px);
    max-height: calc(100vh - 32px);
  }

  #productModal .modal-header,
  #serviceModal .modal-header {
    padding: 16px 18px;
  }

  #productModal .modal-header h3,
  #serviceModal .modal-header h3 {
    font-size: 16px;
  }

  #productModal .modal-body,
  #serviceModal .modal-body {
    padding: 16px 18px;
  }

  #productModal .product-grid,
  #serviceModal .product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  #productModal .product-card {
    min-height: 280px;
  }

  #serviceModal .product-card {
    min-height: 220px;
  }

  #productModal .product-card h4,
  #serviceModal .product-card h4 {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #productModal .product-card .price,
  #serviceModal .product-card .price {
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .container {
    width: calc(100% - 20px);
  }

  .appt-hero-text h1 {
    font-size: 20px;
  }

  .appt-hero-text p {
    font-size: 12px;
  }

  .appt-main {
    padding: 12px 0 32px;
  }

  .info-banner {
    padding: 12px;
  }

  .info-icon {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .info-body h3 {
    font-size: 13px;
  }

  .info-body p {
    font-size: 11px;
  }

  .appt-step {
    padding: 14px 12px 16px;
  }

  .step-header .step-number {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .step-header h2 {
    font-size: 14px;
  }

  .service-card {
    flex: 0 0 140px;
    padding: 10px;
  }

  .service-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .service-card h3 {
    font-size: 12px;
  }

  .service-card p {
    font-size: 10px;
    min-height: 28px;
  }

  .service-card .price {
    font-size: 13px;
  }

  .service-card .select-btn {
    padding: 6px 0;
    font-size: 11px;
  }

  .part-card {
    flex: 0 0 120px;
    padding: 8px;
  }

  .notes-field textarea {
    padding: 12px 40px 12px 14px;
    font-size: 15px;
    min-height: 90px;
  }

  .input-wrap input,
  .input-wrap select {
    padding: 12px 40px 12px 14px;
    font-size: 15px;
    min-height: 44px;
  }

  .mechanic-card {
    flex: 0 0 120px;
    padding: 10px;
  }

  .mechanic-avatar {
    width: 50px;
    height: 50px;
  }

  .mechanic-card h4 {
    font-size: 12px;
  }

  .mechanic-card .select-btn {
    padding: 6px 0;
    font-size: 11px;
  }

  .confirm-card {
    padding: 14px;
  }

  .total-amount span {
    font-size: 18px;
  }

  .confirm-btn {
    padding: 10px;
    font-size: 12px;
  }

  #productModal .modal-content,
  #serviceModal .modal-content {
    width: calc(100% - 24px);
  }

  #productModal .modal-header,
  #serviceModal .modal-header {
    padding: 14px 16px;
  }

  #productModal .modal-header h3,
  #serviceModal .modal-header h3 {
    font-size: 15px;
  }

  #productModal .modal-body,
  #serviceModal .modal-body {
    padding: 14px 16px;
  }

  #productModal .product-card {
    min-height: 280px;
  }

  #serviceModal .product-card {
    min-height: 220px;
  }

  #productModal .product-card h4,
  #serviceModal .product-card h4 {
    font-size: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #productModal .product-card .price,
  #serviceModal .product-card .price {
    font-size: 14px;
  }
}
