/* ================================================
   QUOTE VIEW CSS — Priya's Spize Works
   ================================================ */

/* Page hero */
#view-quote .page-hero { height: 40vh; min-height: 280px; }
#view-quote .page-hero-bg {
  background-image: url('../images/cheese.png');
}
#view-quote .page-hero-overlay { background: rgba(10,10,10,0.82); }

/* ---- QUOTE SECTION ---- */
.quote-section { padding: 5rem 2rem 6rem; }
.quote-wrapper { max-width: 820px; margin: 0 auto; }

/* ---- PROGRESS BAR ---- */
.progress-wrap { margin-bottom: 3rem; }
.progress-steps {
  display: flex; align-items: center; justify-content: space-between;
  position: relative; margin-bottom: 1rem;
}
.progress-steps::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 2px;
  background: rgba(255,255,255,0.1); transform: translateY(-50%); z-index: 0;
}
.progress-fill {
  position: absolute; top: 50%; left: 0; height: 2px;
  background: var(--gold); transform: translateY(-50%); z-index: 1;
  transition: width 0.5s ease;
}
.step-dot { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.step-circle {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.15); background: var(--black);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.3);
  transition: all 0.4s;
}
.step-dot.active .step-circle { border-color: var(--gold); color: var(--gold); background: rgba(200,169,81,0.1); }
.step-dot.completed .step-circle { background: var(--gold); border-color: var(--gold); color: var(--black); }
.step-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.3); transition: color 0.4s; white-space: nowrap; }
.step-dot.active .step-label, .step-dot.completed .step-label { color: var(--gold); }

/* ---- FORM STEPS ---- */
.form-step { display: none; }
.form-step.active { display: block; animation: fadeInStep 0.4s ease; }
@keyframes fadeInStep { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }
.step-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; margin-bottom: 0.4rem; }
.step-subtitle { font-size: 0.88rem; color: rgba(255,255,255,0.5); margin-bottom: 2.5rem; line-height: 1.7; }
.gold-line { width: 50px; height: 3px; background: var(--gold); margin: 0.8rem 0 1.8rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-group.full { grid-column: 1 / -1; }

/* ---- CHECKBOX CARDS ---- */
.checkbox-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.checkbox-card { position: relative; }
.checkbox-card input[type="checkbox"] { position: absolute; opacity: 0; pointer-events: none; }
.checkbox-card label {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  padding: 1.5rem 1rem; border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer; transition: all 0.3s; text-align: center; background: rgba(255,255,255,0.03);
}
.checkbox-card input:checked + label { border-color: var(--gold); background: rgba(200,169,81,0.1); }
.checkbox-card label:hover { border-color: rgba(200,169,81,0.4); }
.cc-icon { font-size: 2rem; display: block; }
.cc-title { font-size: 0.82rem; font-weight: 700; line-height: 1.3; }
.cc-price { font-size: 0.7rem; color: var(--gold); }

/* ---- RADIO CARDS ---- */
.radio-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.radio-card { position: relative; }
.radio-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.radio-card label {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.2rem 1.5rem; border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer; transition: all 0.3s; background: rgba(255,255,255,0.03);
}
.radio-card input:checked + label { border-color: var(--gold); background: rgba(200,169,81,0.08); }
.radio-card label:hover { border-color: rgba(200,169,81,0.4); }
.rc-icon { font-size: 1.5rem; flex-shrink: 0; }
.rc-text .rc-title { font-size: 0.85rem; font-weight: 700; display: block; }
.rc-text .rc-sub { font-size: 0.73rem; color: rgba(255,255,255,0.45); }

/* ---- DATE INPUT ---- */
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); cursor: pointer; }

/* ---- RANGE SLIDER ---- */
.range-group { margin-bottom: 1.4rem; }
.range-group label { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8rem; }
input[type="range"] {
  width: 100%; height: 4px; appearance: none; background: rgba(255,255,255,0.15);
  outline: none; border-radius: 0; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 20px; height: 20px;
  background: var(--gold); border-radius: 50%; cursor: pointer;
}
.range-labels { display: flex; justify-content: space-between; margin-top: 0.5rem; font-size: 0.72rem; color: rgba(255,255,255,0.4); }
.range-value { text-align: center; font-size: 1.1rem; font-weight: 700; color: var(--gold); margin-top: 0.5rem; }

/* ---- REVIEW STEP ---- */
.review-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(200,169,81,0.2); padding: 2rem; margin-bottom: 2rem; }
.review-section-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; }
.review-edit { font-size: 0.65rem; color: rgba(255,255,255,0.4); cursor: pointer; text-decoration: underline; transition: color 0.3s; }
.review-edit:hover { color: var(--gold); }
.review-item { display: flex; justify-content: space-between; padding: 0.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.87rem; }
.review-item:last-child { border-bottom: none; }
.review-item-label { color: rgba(255,255,255,0.45); }
.review-item-value { color: var(--white); font-weight: 600; text-align: right; max-width: 60%; }

/* ---- FORM NAV ---- */
.form-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 2.5rem; gap: 1rem; }
.btn-full { width: 100%; justify-content: center; padding: 1.2rem; font-size: 0.85rem; }

/* ---- SUCCESS SCREEN ---- */
.success-screen { display: none; text-align: center; padding: 4rem 2rem; }
.success-screen.show { display: block; animation: fadeInStep 0.5s ease; }
.success-icon-wrap { width: 100px; height: 100px; background: rgba(200,169,81,0.1); border: 2px solid var(--gold); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 3rem; margin: 0 auto 2rem; }
.success-screen h2 { font-size: 2.5rem; margin-bottom: 1rem; }
.success-screen p { font-size: 0.95rem; color: rgba(255,255,255,0.6); line-height: 1.8; max-width: 500px; margin: 0 auto 2rem; }
.success-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0 2.5rem; }
.success-detail { background: rgba(255,255,255,0.04); border: 1px solid rgba(200,169,81,0.2); padding: 1.5rem 1rem; text-align: center; }
.sd-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 0.4rem; }
.sd-value { font-size: 0.9rem; font-weight: 600; }

/* ---- CART BUILDER ---- */
.cart-builder-label { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.4rem; }
.cart-builder-sublabel { display: block; font-size: 0.75rem; font-weight: 400; letter-spacing: 0; text-transform: none; color: rgba(255,255,255,0.45); margin-top: 0.25rem; }
.cart-builder-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-top: 0.8rem;
}
.cart-box {
  position: relative;
  padding-bottom: 42%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  transition: border-color 0.3s, background 0.3s;
  overflow: hidden;
}
.cart-box:hover { border-color: rgba(200,169,81,0.4); }
.cart-box.filled { border-color: rgba(255,255,255,0.25); }
.cart-box-num {
  position: absolute;
  top: 0.35rem;
  left: 0.5rem;
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(255,255,255,0.25);
  z-index: 1;
  pointer-events: none;
}
.cart-box.filled .cart-box-num { color: rgba(255,255,255,0.45); }
.cart-box-cat {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  transform: translateY(-130%);
  text-align: center;
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  padding: 0 0.3rem;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cart-box-item {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  transform: translateY(-10%);
  text-align: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  padding: 0 0.4rem;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 1.3;
}
.cart-box.filled .cart-box-cat { color: rgba(255,255,255,0.75); }
.cart-box.filled .cart-box-item { color: #fff; font-weight: 700; font-size: 0.72rem; }
.cart-box-clear {
  position: absolute;
  top: 0.2rem;
  right: 0.2rem;
  width: 16px;
  height: 16px;
  background: rgba(0,0,0,0.45);
  border: none;
  border-radius: 50%;
  color: rgba(255,255,255,0.7);
  font-size: 0.6rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 3;
  pointer-events: auto;
  line-height: 1;
  padding: 0;
}
.cart-box-clear:hover { background: rgba(0,0,0,0.75); color: #fff; }
.cart-box-select {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  z-index: 2;
  font-size: 16px;
}
.cart-box-select optgroup {
  background-color: #ffffff;
  color: #111111;
  font-weight: 700;
  font-size: 0.82em;
}
.cart-box-select option {
  background-color: #1e1e1e;
  color: #ffffff;
  font-weight: 400;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .checkbox-cards { grid-template-columns: 1fr 1fr; }
  .radio-cards { grid-template-columns: 1fr; }
  .success-details { grid-template-columns: 1fr; }
  .step-label { display: none; }
  .cart-builder-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .checkbox-cards { grid-template-columns: 1fr; }
  .form-nav { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
