
:root{
  --oq-burgundy:#56090b;
  --oq-burgundy-deep:#1a0203;
  --oq-gold:#d1a23b;
  --oq-gold-soft:#f0d28a;
  --oq-cream:#fff9f0;
  --oq-ink:#2d2224;
  --oq-muted:#786d6f;
  --oq-line:#dfd2d4;
  --oq-green:#238857;
  --oq-red:#b4232e;
}
body.quote-page{
  background:
    radial-gradient(circle at 10% 0%,rgba(126,15,18,.14),transparent 34%),
    linear-gradient(180deg,#fdf7f1,#eee1d8);
  color:var(--oq-ink);
}
.quote-hero{
  min-height:310px;
  padding:72px 5vw 82px;
  display:grid;
  place-items:center;
  text-align:center;
  background:
    linear-gradient(135deg,rgba(31,2,3,.97),rgba(96,10,12,.94)),
    url("assets/quality.jpg") center/cover;
  border-bottom:2px solid var(--oq-gold);
}
.quote-hero-inner{max-width:850px}
.quote-hero h1{
  margin:12px 0;
  font-family:Georgia,serif;
  color:#fff8ed;
  font-size:clamp(38px,5vw,66px);
}
.quote-hero p{
  max-width:760px;
  margin:auto;
  color:#eadbd0;
  line-height:1.7;
  font-size:17px;
}
.quote-contact-bar{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:23px;
}
.quote-contact-bar a{
  color:var(--oq-gold-soft);
  border:1px solid rgba(209,162,59,.55);
  border-radius:999px;
  padding:9px 14px;
  background:rgba(255,255,255,.04);
  font-size:13px;
}
.quote-main{
  width:min(1250px,calc(100% - 26px));
  margin:-42px auto 75px;
  position:relative;
  z-index:2;
}
.quote-card{
  background:#fff;
  border:1px solid rgba(209,162,59,.4);
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 24px 65px rgba(53,4,7,.18);
}
.quote-card-head{
  padding:26px 30px;
  background:linear-gradient(90deg,#fff0ce,#fff);
  border-bottom:1px solid #e9d8b3;
}
.quote-card-head h2{
  margin:0;
  color:var(--oq-burgundy);
  font-family:Georgia,serif;
  font-size:30px;
}
.quote-card-head p{margin:7px 0 0;color:var(--oq-muted)}
.quote-form{padding:30px}
.quote-section-title{
  margin:4px 0 18px;
  padding-bottom:10px;
  border-bottom:1px solid var(--oq-line);
  color:var(--oq-burgundy);
  font-size:13px;
  font-weight:900;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.quote-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:15px;
}
.quote-field{
  display:flex;
  flex-direction:column;
  gap:7px;
}
.quote-field.span-2{grid-column:span 2}
.quote-field.full{grid-column:1/-1}
.quote-field label{
  color:#38292b;
  font-size:13px;
  font-weight:800;
}
.quote-field input,
.quote-field select,
.quote-field textarea{
  width:100%;
  border:1px solid #d8cacc;
  border-radius:10px;
  padding:12px 13px;
  background:#fff;
  color:#2b2224;
  outline:none;
  transition:.2s;
}
.quote-field input:focus,
.quote-field select:focus,
.quote-field textarea:focus{
  border-color:var(--oq-gold);
  box-shadow:0 0 0 3px rgba(209,162,59,.16);
}
.quote-field input:disabled,
.quote-field select:disabled{
  background:#f1eeee;
  color:#998f90;
  cursor:not-allowed;
}
.field-error{
  min-height:15px;
  font-size:11px;
  color:var(--oq-red);
}
.item-builder{
  margin-top:27px;
  padding:20px;
  border:1px solid #ead7ad;
  border-radius:15px;
  background:linear-gradient(135deg,#fff9ec,#fff);
}
.item-grid{
  display:grid;
  grid-template-columns:1.1fr .8fr .9fr .9fr .7fr 1.2fr 1fr auto;
  gap:11px;
  align-items:end;
}
.add-item-btn{
  width:44px;
  height:44px;
  border:0;
  border-radius:50%;
  background:var(--oq-green);
  color:#fff;
  font-size:22px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 8px 19px rgba(35,136,87,.28);
}
.item-hint,.quote-note{
  margin-top:10px;
  color:var(--oq-muted);
  font-size:12px;
  line-height:1.5;
}
.quote-alert{
  display:none;
  margin-top:16px;
  border-radius:10px;
  padding:12px 14px;
  font-size:13px;
}
.quote-alert.show{display:block}
.quote-alert.warning{
  color:#764b00;
  background:#fff5d8;
  border:1px solid #e5c46a;
}
.quote-alert.error{
  color:#81212a;
  background:#fff0f1;
  border:1px solid #dfa3aa;
}
.quote-table-wrap{
  margin-top:23px;
  border:1px solid #e4d6d8;
  border-radius:13px;
  overflow:auto;
}
.quote-table{
  width:100%;
  min-width:1080px;
  border-collapse:collapse;
}
.quote-table thead{background:#181313;color:#fff}
.quote-table th,.quote-table td{
  padding:11px 9px;
  text-align:left;
  font-size:12px;
  border-bottom:1px solid #eee;
  vertical-align:middle;
}
.quote-table tbody tr:nth-child(even){background:#fffaf2}
.quote-action{
  border:0;
  background:none;
  cursor:pointer;
  font-size:17px;
  padding:4px;
}
.quote-totals{
  margin-top:20px;
  display:grid;
  grid-template-columns:repeat(3,minmax(210px,300px));
  justify-content:end;
  gap:12px;
}
.quote-total{
  border:1px solid #dfc276;
  border-radius:13px;
  padding:15px 17px;
  background:linear-gradient(135deg,#fff5d7,#fff);
}
.quote-total span{
  display:block;
  color:var(--oq-muted);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.quote-total strong{
  display:block;
  margin-top:6px;
  color:var(--oq-burgundy);
  font-size:22px;
}
.quote-actions{
  display:flex;
  gap:11px;
  flex-wrap:wrap;
  margin-top:25px;
}
.quote-btn{
  border-radius:10px;
  padding:13px 18px;
  font-weight:900;
  cursor:pointer;
}
.quote-btn.primary{
  border:0;
  color:#fff;
  background:linear-gradient(135deg,var(--oq-burgundy),var(--oq-burgundy-deep));
}
.quote-btn.secondary{
  color:var(--oq-burgundy);
  background:#fff4d8;
  border:1px solid #e0c16d;
}
.quote-toast{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:999;
  background:#287b50;
  color:#fff;
  border-radius:10px;
  padding:13px 16px;
  box-shadow:0 15px 40px rgba(0,0,0,.3);
  opacity:0;
  transform:translateY(12px);
  transition:.25s;
  pointer-events:none;
}
.quote-toast.show{opacity:1;transform:none}
@media(max-width:1040px){
  .quote-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .item-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .add-item-btn{width:100%;border-radius:10px}
}
@media(max-width:680px){
  .quote-form,.quote-card-head{padding:19px}
  .quote-grid,.item-grid,.quote-totals{grid-template-columns:1fr}
  .quote-field.span-2,.quote-field.full{grid-column:auto}
  .quote-main{width:min(100% - 16px,1250px)}
}
