/* ==========================================================
   MyScriptStore — quote-demo.css
   Instant Quote Generator live sample only (quote-demo.php).
   Shared sample styles are in sample.css.
   ========================================================== */

.q-head { text-align: center; max-width: 640px; margin: 10px auto 30px; }
.q-head h1 { font-size: clamp(26px, 3.6vw, 36px); color: var(--ds-navy); letter-spacing: -.02em; margin-bottom: 6px; }
.q-head p { color: var(--ds-soft); }

.q-layout { display: grid; grid-template-columns: 1.3fr .9fr; gap: 28px; align-items: start; }

/* ---------- Form ---------- */
.q-form { background: #fff; border: 1px solid var(--ds-line); border-radius: 16px; padding: 28px; display: grid; gap: 22px; }
.q-form fieldset { border: 0; }
.q-form legend { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--ds-navy); margin-bottom: 12px; }
.q-form legend span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--ds-teal); color: #fff; font-size: 14px; }
.q-form legend small { font-weight: 500; font-size: 13px; color: var(--ds-soft); }
.q-options { display: grid; gap: 10px; }
.q-options.cols-2 { grid-template-columns: 1fr 1fr; }
.q-options.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* Big clickable option tiles (pure CSS, real radio/checkbox inside) */
.q-opt { position: relative; cursor: pointer; }
.q-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.q-opt span {
  display: flex; align-items: center; gap: 10px; height: 100%;
  padding: 13px 14px; border: 2px solid var(--ds-line); border-radius: 12px; background: var(--ds-bg);
  font-size: 14.5px; font-weight: 600; color: var(--ds-text); transition: all .2s;
}
.q-opt span::before {
  content: ""; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #b8c2d1; background: #fff; transition: all .2s;
}
.q-opt input[type="checkbox"] + span::before { border-radius: 5px; }
.q-opt em { font-style: normal; margin-left: auto; color: var(--ds-teal); font-weight: 700; }
.q-opt:hover span { border-color: #9fd8d6; }
.q-opt input:checked + span { border-color: var(--ds-teal); background: var(--ds-teal-tint); }
.q-opt input:checked + span::before { border-color: var(--ds-teal); background: var(--ds-teal); box-shadow: inset 0 0 0 3px #fff; }
.q-opt input:focus-visible + span { outline: 3px solid rgba(15,138,138,.35); outline-offset: 2px; }

.q-text { width: 100%; font: inherit; font-size: 15px; padding: 12px 14px; border: 2px solid var(--ds-line); border-radius: 12px; background: var(--ds-bg); }
.q-text:focus { outline: none; border-color: var(--ds-teal); background: #fff; }

.q-submit {
  font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; border: 0;
  padding: 16px 22px; border-radius: 12px; background: var(--ds-teal); color: #fff;
  box-shadow: 0 10px 24px rgba(15,138,138,.3); transition: transform .15s, background .2s;
}
.q-submit:hover { background: #0b7272; transform: translateY(-2px); }

/* ---------- Result panel ---------- */
.q-result {
  position: sticky; top: 112px; border-radius: 16px; padding: 28px; color: #fff;
  background: radial-gradient(300px 200px at 100% 0%, rgba(15,138,138,.55), transparent 70%), var(--ds-navy);
  box-shadow: 0 24px 50px rgba(20,40,75,.25);
}
.q-label { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #9fd8d6; margin-bottom: 8px; }
.q-price { font-size: 52px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin-bottom: 18px; animation: popPrice .6s cubic-bezier(.2,.9,.3,1.4); }
.q-price small { font-size: 16px; font-weight: 500; color: #cdd9ea; letter-spacing: 0; }
@keyframes popPrice { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.q-break { list-style: none; border-top: 1px solid rgba(255,255,255,.15); padding-top: 12px; margin-bottom: 14px; }
.q-break li { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 5px 0; color: #cdd9ea; }
.q-break b { color: #fff; }
.q-totals { display: grid; gap: 8px; margin-bottom: 18px; }
.q-totals div { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,.08); border-radius: 10px; padding: 12px 14px; }
.q-totals b { font-size: 20px; color: #ffd166; }
.q-sent { font-size: 13.5px; color: #cdd9ea; background: rgba(15,138,138,.25); border-radius: 10px; padding: 12px 14px; }
.q-sent b { color: #9fe8c5; }

.q-wait { text-align: center; padding: 10px 0; }
.q-wait p { color: #cdd9ea; font-size: 15px; }
.q-calc { display: grid; grid-template-columns: repeat(3, 34px); gap: 8px; justify-content: center; margin: 14px 0 18px; }
.q-calc i { height: 34px; border-radius: 8px; background: rgba(255,255,255,.12); animation: calcBlink 1.8s ease-in-out infinite; }
.q-calc i:nth-child(2) { animation-delay: .2s; } .q-calc i:nth-child(3) { animation-delay: .4s; }
.q-calc i:nth-child(4) { animation-delay: .6s; } .q-calc i:nth-child(5) { animation-delay: .8s; } .q-calc i:nth-child(6) { animation-delay: 1s; }
@keyframes calcBlink { 0%, 100% { background: rgba(255,255,255,.12); } 50% { background: #0f8a8a; } }

@media (max-width: 960px) {
  .q-layout { grid-template-columns: 1fr; }
  .q-result { position: static; }
  .q-result.ready { order: -1; }
}
@media (max-width: 720px) {
  .q-form { padding: 22px 18px; }
  .q-options.cols-2, .q-options.cols-3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .q-calc i, .q-price { animation: none; } }
