/* Srinivasa Tiles — Quote Calculator page styles (loaded only on calculator.html)
   Shared quote chrome (nav badge, toast, product buttons) lives in style.css. */

.calc-hidden { display: none !important; }
.req { color: var(--clay-bright); }
.opt { color: var(--stone); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 11px; }

/* Step labels */
.calc-step {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--clay-deep); margin-bottom: 10px;
}
.calc-step b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--clay-bright); color: #fff; font-size: 13px;
}

/* Section head */
.quote-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.quote-head-sub { color: var(--stone); font-size: 14px; max-width: 560px; }

/* Empty state */
.quote-empty {
  text-align: center; padding: 54px 24px;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(36,27,21,0.05);
}
.quote-empty .icon-badge { margin: 0 auto 18px; }
.quote-empty h3 { font-size: 24px; }
.quote-empty p { margin-top: 10px; color: var(--ink-soft); max-width: 460px; margin-left: auto; margin-right: auto; }
.quote-empty-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* Quote item card */
#quoteItemsList { display: flex; flex-direction: column; gap: 16px; }
.quote-item {
  display: flex; gap: 18px;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(36,27,21,0.05);
  padding: 18px;
}
.qi-img { width: 104px; height: 104px; object-fit: cover; border-radius: var(--radius-md); flex-shrink: 0; }
.qi-main { flex: 1; min-width: 0; }
.qi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.qi-cat { font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--stone); font-weight: 800; }
.qi-name { font-size: 18px; margin: 2px 0; }
.qi-size { font-size: 12.5px; color: var(--stone); font-weight: 700; }
.qi-remove {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--cream-line); background: var(--white); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: all 0.18s;
}
.qi-remove svg { width: 18px; height: 18px; fill: none; stroke: var(--stone); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qi-remove:hover { border-color: var(--clay-bright); background: var(--clay-glow); }
.qi-remove:hover svg { stroke: var(--clay-bright); }

.qi-controls { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-top: 14px; }
.qi-field { display: flex; flex-direction: column; gap: 6px; }
.qi-field > label { margin: 0; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--stone); font-weight: 800; }
.qi-field select, .qi-field input { width: 100%; padding: 11px 12px; font-size: 14px; }
.qi-field select { min-width: 150px; }
.qi-field select.is-empty { border-color: var(--clay-bright); }
.qi-field input { min-width: 130px; }
.qi-or { padding-bottom: 12px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--stone); }
.qi-tonnage { margin-left: auto; }
.qi-tonnage-val {
  padding: 11px 16px; border-radius: var(--radius-sm);
  background: var(--clay-glow); color: var(--clay-deep);
  font-family: var(--font-display); font-size: 17px; font-weight: 700; white-space: nowrap; min-width: 110px; text-align: center;
}

@media (max-width: 620px) {
  .quote-item { flex-direction: column; }
  .qi-img { width: 100%; height: 150px; }
  .qi-controls { gap: 12px; }
  .qi-field { flex: 1 1 130px; }
  .qi-or { width: 100%; padding: 0; text-align: center; }
  .qi-tonnage { margin-left: 0; width: 100%; }
  .qi-tonnage-val { width: 100%; }
}

/* Totals bar */
.totals-bar {
  margin-top: 22px; padding: 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, #FFFDF9 0%, var(--cream-deep) 100%);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--cream-line);
}
.totals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.total-cell { text-align: center; padding: 14px; background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.total-cell span { display: block; font-size: 10.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--stone); font-weight: 800; }
.total-cell strong { display: block; margin-top: 6px; font-family: var(--font-display); font-size: 24px; color: var(--clay-deep); line-height: 1.1; }
@media (max-width: 560px) { .totals-grid { grid-template-columns: 1fr; } }

/* Quote summary table (Part 6) */
.quote-summary-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-md); box-shadow: 0 0 0 1px var(--cream-line); background: var(--white); }
.quote-summary-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 660px; }
.quote-summary-table th {
  text-align: left; padding: 12px 14px; background: var(--cream-deep);
  font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--clay-deep); font-weight: 800; white-space: nowrap;
}
.quote-summary-table td { padding: 11px 14px; border-top: 1px solid var(--cream-line); color: var(--ink); vertical-align: middle; }
.quote-summary-table .col-sno { width: 44px; color: var(--stone); font-weight: 800; text-align: center; }
.quote-summary-table .col-img { width: 64px; }
.quote-summary-table .col-img img { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); display: block; }
.quote-summary-table .col-num { text-align: right; white-space: nowrap; }
.quote-summary-table tfoot td { border-top: 2px solid var(--cream-line); background: #FFFDF9; padding-top: 14px; padding-bottom: 14px; font-weight: 700; }
.quote-summary-table tfoot .sum-total-label { text-align: right; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--clay-deep); font-weight: 800; }
.quote-summary-table tfoot strong { font-family: var(--font-display); font-size: 16px; color: var(--clay-deep); }
.quote-summary-table .calc-grade-pill { display: inline-block; background: var(--cream-deep); color: var(--clay-deep); font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: var(--radius-pill); white-space: nowrap; }

/* Customer form */
#customerForm .form-row-split { margin-bottom: 4px; }
.field-err { display: block; margin-top: 6px; font-size: 12px; color: var(--clay-bright); font-weight: 600; min-height: 0; }
input.has-err { border-color: var(--clay-bright) !important; }
.form-err-summary {
  margin: 8px 0 16px; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--clay-glow); color: var(--clay-ember); font-size: 13.5px; font-weight: 700;
  border: 1px solid rgba(231,28,13,0.25);
}

/* OTP */
.otp-block { margin: 22px 0; padding: 18px; border-radius: var(--radius-md); background: var(--cream); border: 1.5px dashed var(--cream-line); }
.otp-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.otp-status { font-size: 13px; font-weight: 600; }
.otp-status.ok { color: #1EAE58; }
.otp-status.err { color: var(--clay-bright); }
.otp-entry { margin-top: 16px; }
.otp-entry-row { display: flex; gap: 10px; }
.otp-entry-row input { max-width: 180px; letter-spacing: 0.3em; font-weight: 700; }
.otp-sub { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.otp-link { background: none; border: none; color: var(--clay-deep); font-weight: 800; font-size: 13px; cursor: pointer; padding: 0; font-family: var(--font-body); }
.otp-link:disabled { color: var(--stone); cursor: not-allowed; }
.otp-msg { font-size: 13px; }
.otp-msg.err { color: var(--clay-bright); font-weight: 600; }
.otp-dev { color: var(--ink-soft); font-size: 12.5px; }
.otp-dev b { color: var(--clay-deep); font-size: 14px; letter-spacing: 0.1em; }
.otp-verified { display: flex; align-items: center; gap: 10px; color: #1EAE58; font-weight: 800; font-size: 15px; }
.otp-check { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: #1EAE58; align-items: center; justify-content: center; }
.otp-check svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* Success */
.quote-success { text-align: center; padding: 20px; }
.quote-success .icon-badge { margin: 0 auto 18px; }
.quote-success h3 { font-size: 26px; }
.quote-success p { margin-top: 10px; color: var(--ink-soft); max-width: 480px; margin-left: auto; margin-right: auto; }
.quote-id-box { margin: 24px auto; padding: 16px 24px; display: inline-block; border-radius: var(--radius-md); background: var(--clay-glow); }
.quote-id-box span { display: block; font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--stone); font-weight: 800; }
.quote-id-box strong { display: block; margin-top: 4px; font-family: var(--font-display); font-size: 24px; color: var(--clay-deep); letter-spacing: 0.02em; }
.success-summary { max-width: 380px; margin: 0 auto 24px; text-align: left; }
.success-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--cream-line); }
.success-row:last-child { border-bottom: none; }
.success-row span { color: var(--stone); font-weight: 600; }
.success-row strong { color: var(--clay-deep); font-family: var(--font-display); font-size: 16px; }
.success-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ============ Product selector modal ============ */
.selector-modal {
  position: fixed; inset: 0; z-index: 350;
  background: rgba(20,12,9,0.55); backdrop-filter: blur(3px);
  display: none; align-items: flex-end; justify-content: center;
}
.selector-modal.open { display: flex; }
@media (min-width: 720px) { .selector-modal { align-items: center; padding: 24px; } }
.selector-panel {
  background: var(--cream); width: 100%; max-width: 920px;
  max-height: 92vh; display: flex; flex-direction: column;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 720px) { .selector-panel { border-radius: var(--radius-lg); max-height: 86vh; } }
.selector-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; }
.selector-top h3 { font-size: 21px; }
.selector-top p { margin-top: 5px; color: var(--stone); font-size: 13.5px; }
.selector-close { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--cream-line); background: var(--white); font-size: 16px; cursor: pointer; color: var(--ink); }
.selector-close:hover { border-color: var(--clay-bright); color: var(--clay-bright); }
.selector-cats { display: flex; gap: 8px; overflow-x: auto; padding: 0 24px 14px; flex-shrink: 0; }
.selector-cat {
  white-space: nowrap; padding: 9px 16px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--cream-line); background: var(--white); cursor: pointer;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 700; color: var(--ink-soft);
}
.selector-cat.active { background: linear-gradient(155deg, var(--clay-bright), var(--clay-deep)); color: #fff; border-color: transparent; }
.selector-designs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px;
  padding: 8px 24px 24px; overflow-y: auto;
}
.design-card {
  background: var(--white); border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm), 0 0 0 1px rgba(36,27,21,0.05);
  display: flex; flex-direction: column;
}
.design-card.is-added { box-shadow: var(--shadow-sm), 0 0 0 2px var(--clay-bright); }
.design-card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-deep); }
.design-card-img img { width: 100%; height: 100%; object-fit: cover; }
.design-card-body { padding: 12px 12px 8px; flex: 1; }
.design-card-body h5 { font-size: 14.5px; line-height: 1.25; }
.design-card-size { font-size: 12px; color: var(--stone); font-weight: 700; }
.design-add { margin: 0 12px 12px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.design-add svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.selector-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 24px; border-top: 1px solid var(--cream-line); background: var(--white); flex-shrink: 0;
}
.selector-count { font-size: 13.5px; color: var(--stone); font-weight: 700; }
