
/* Cashbook Finance v2.7.0 — quote parity, sector grouping and product-page refinements */

/* Shared quote form treatment on home and contact. */
.quote-layout{align-items:stretch!important;gap:clamp(36px,5vw,72px)!important}
.quote-copy-column{align-self:start}
.quote-form-column{display:flex!important;align-self:stretch}
.quote-form-card{
  position:relative;display:flex;flex-direction:column;width:100%;height:100%;
  padding:clamp(27px,2.2vw,36px)!important;border-radius:24px!important;
  background:linear-gradient(155deg,rgba(255,255,255,.995),rgba(243,249,255,.985))!important;
  border:1px solid rgba(183,211,234,.92)!important;
  box-shadow:0 34px 76px -46px rgba(7,35,62,.58),inset 0 1px 0 rgba(255,255,255,.95)!important;
  overflow:hidden;
}
.quote-form-card::before{content:"";position:absolute;inset:0 0 auto;height:4px;background:linear-gradient(90deg,#1589df,#63b9f4);pointer-events:none}
.quote-form-card #formFields{display:flex;flex-direction:column;min-height:100%}
.quote-form-card h3{font-size:clamp(24px,2vw,29px);letter-spacing:-.035em;margin-bottom:0}
.quote-form-card .quote-assurance{
  display:inline-flex;align-items:center;gap:9px;width:max-content;max-width:100%;
  padding:8px 12px;border:1px solid #cfe5f4;border-radius:999px;
  background:#edf7fd;color:#326482!important;line-height:1.35;margin:10px 0 24px!important;
}
.quote-form-card .quote-assurance::before{content:"✓";display:grid;place-items:center;flex:0 0 auto;width:20px;height:20px;border-radius:50%;background:#dff2e9;color:#178154;font-size:12px;font-weight:900}
.quote-form-card .fld{margin-bottom:16px!important}
.quote-form-card .fld-2{gap:14px!important}
.quote-form-card textarea{width:100%;min-height:96px;resize:vertical}
.quote-form-card .btn{width:100%;min-height:54px;margin-top:2px}

html[data-theme="dark"] .quote-form-card{
  background:linear-gradient(155deg,#0d2942,#081d31)!important;
  border-color:rgba(112,188,235,.28)!important;
  box-shadow:0 38px 80px -44px rgba(0,0,0,.92),inset 0 1px 0 rgba(255,255,255,.035)!important;
}
html[data-theme="dark"] .quote-form-card .quote-assurance{background:#0d304a;color:#b9d9eb!important;border-color:rgba(112,188,235,.24)}
html[data-theme="dark"] .quote-form-card textarea{background:#071a2c!important;color:#eaf4fb!important;border-color:rgba(125,184,224,.3)!important}
html[data-theme="dark"] .quote-form-card textarea::placeholder{color:#7899b2!important}

/* Grouped sector cards: eight useful themes containing the full company-page sector list. */
.sectors.sector-groups{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:18px!important;background:transparent!important;border:0!important;overflow:visible!important}
.sector-group{
  min-height:245px!important;padding:27px!important;border-radius:24px!important;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(246,250,254,.98))!important;
  border:1px solid rgba(190,208,224,.94)!important;
  box-shadow:0 22px 42px -32px rgba(13,43,71,.28),inset 0 1px 0 rgba(255,255,255,.95)!important;
}
.sector-group:hover{transform:translateY(-5px)!important;border-color:rgba(70,163,230,.66)!important;box-shadow:0 30px 54px -34px rgba(13,43,71,.36)!important}
.sector-group .sector-heading{display:block;margin-top:18px;font-size:18px;font-weight:780;line-height:1.2;letter-spacing:-.025em;color:var(--text)}
.sector-group .sector-note{margin-top:9px!important;font-size:14px!important;line-height:1.52!important;color:var(--text-mut)!important}
.sector-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:17px}
.sector-tag{display:inline-flex;align-items:center;min-height:31px;padding:6px 10px;border-radius:999px;border:1px solid #d1e5f4;background:#edf7fd;color:#126fae;font-size:12px;font-weight:720;line-height:1.2}
.sectors-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:22px;padding:20px 22px;border:1px solid rgba(185,211,232,.94);border-radius:20px;background:linear-gradient(180deg,#fff,#f5faff);box-shadow:0 18px 38px -32px rgba(13,43,71,.28)}
.sectors-footer p{margin:0;color:var(--text-mut);line-height:1.55}.sectors-footer b{color:var(--text)}
html[data-theme="dark"] .sector-group{background:linear-gradient(180deg,#102d47,#0a2137)!important;border-color:rgba(112,188,235,.22)!important;box-shadow:0 24px 50px -34px rgba(0,0,0,.9)!important}
html[data-theme="dark"] .sector-group .sector-heading{color:#f2f8fc!important}
html[data-theme="dark"] .sector-group .sector-note{color:#abc4d6!important}
html[data-theme="dark"] .sector-tag{background:#0d3553;border-color:rgba(115,194,242,.25);color:#9ed9fb}
html[data-theme="dark"] .sectors-footer{background:linear-gradient(180deg,#102d47,#0a2137);border-color:rgba(112,188,235,.22);box-shadow:0 22px 48px -34px rgba(0,0,0,.88)}
html[data-theme="dark"] .sectors-footer p{color:#abc4d6}
html[data-theme="dark"] .sectors-footer b{color:#f2f8fc}

/* Bad-debt page visual accents. */
.protection-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:28px}
.protection-stat{padding:22px;border:1px solid var(--line);border-radius:18px;background:var(--card);box-shadow:0 18px 34px -30px rgba(12,39,68,.3)}
.protection-stat b{display:block;font-size:21px;letter-spacing:-.025em;color:var(--text)}
.protection-stat span{display:block;margin-top:6px;color:var(--text-mut);font-size:14px;line-height:1.45}
.cover-note{margin-top:22px;padding:18px 20px;border-radius:16px;border:1px solid #cfe5f4;background:#eff8fe;color:#315f7c;line-height:1.6}
.cover-note b{color:#123e5d}
html[data-theme="dark"] .protection-stat{background:#0c2942;border-color:rgba(112,188,235,.22)}
html[data-theme="dark"] .protection-stat b{color:#f0f7fc}
html[data-theme="dark"] .protection-stat span{color:#acc7da}
html[data-theme="dark"] .cover-note{background:#0d304a;border-color:rgba(112,188,235,.22);color:#b6d4e7}
html[data-theme="dark"] .cover-note b{color:#eef8ff}

@media(max-width:1080px){
  .sectors.sector-groups{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .protection-summary{grid-template-columns:1fr 1fr}
}
@media(max-width:760px){
  .quote-layout{gap:32px!important}
  .quote-form-card{padding:25px 20px 22px!important;border-radius:20px!important}
  .quote-form-card .quote-assurance{width:100%;border-radius:14px;white-space:normal!important}
  .sectors.sector-groups{grid-template-columns:1fr!important;gap:14px!important}
  .sector-group{min-height:auto!important;padding:23px!important;border-radius:20px!important}
  .sectors-footer{align-items:flex-start;flex-direction:column;padding:19px;border-radius:18px}
  .sectors-footer .btn{width:100%}
  .protection-summary{grid-template-columns:1fr}
}


/* Cashbook Finance v2.7.1 — contact quote-form parity and precise selector spacing */
body[data-page="contact"] #enquiry .quote-form-card .seg{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  grid-auto-rows:50px!important;
  align-items:center!important;
  width:100%!important;
  min-height:58px!important;
  height:58px!important;
  padding:4px!important;
  gap:4px!important;
  border:1px solid rgba(171,202,226,.92)!important;
  border-radius:16px!important;
  background:#eaf2f8!important;
  box-sizing:border-box!important;
  overflow:hidden!important;
}
body[data-page="contact"] #enquiry .quote-form-card .seg label{
  display:flex!important;
  align-items:stretch!important;
  align-self:center!important;
  min-width:0!important;
  min-height:50px!important;
  height:50px!important;
  margin:0!important;
  padding:0!important;
}
body[data-page="contact"] #enquiry .quote-form-card .seg .opt{
  display:flex!important;
  flex:1 1 auto!important;
  align-items:center!important;
  justify-content:center!important;
  width:100%!important;
  min-width:0!important;
  min-height:50px!important;
  height:50px!important;
  margin:0!important;
  padding:0 14px!important;
  border:0!important;
  border-radius:12px!important;
  box-sizing:border-box!important;
  background:transparent!important;
  line-height:1.1!important;
  transform:none!important;
  box-shadow:none!important;
}
body[data-page="contact"] #enquiry .quote-form-card .seg .opt:hover{
  background:rgba(255,255,255,.52)!important;
  transform:none!important;
}
body[data-page="contact"] #enquiry .quote-form-card .seg input:checked+.opt{
  background:linear-gradient(135deg,#1688dc,#2b9ce5)!important;
  color:#fff!important;
  box-shadow:0 10px 22px -18px rgba(10,104,169,.62),inset 0 1px 0 rgba(255,255,255,.24)!important;
  transform:none!important;
}
body[data-page="contact"] #enquiry .quote-form-card .fld textarea{
  width:100%!important;
  min-height:96px!important;
  resize:vertical!important;
  padding:14px 15px!important;
  border:1px solid var(--line-strong)!important;
  border-radius:12px!important;
  background:#f7fafc!important;
  color:var(--text)!important;
  font:inherit!important;
  font-family:inherit!important;
  font-size:15px!important;
  line-height:1.5!important;
  letter-spacing:normal!important;
  box-shadow:inset 0 1px 2px rgba(8,31,54,.025)!important;
  transition:border-color .2s,box-shadow .2s,background .2s,transform .2s!important;
}
body[data-page="contact"] #enquiry .quote-form-card .fld textarea::placeholder{
  color:#7b91a5!important;
  font:inherit!important;
}
body[data-page="contact"] #enquiry .quote-form-card .fld textarea:hover{border-color:#9fb9d1!important}
body[data-page="contact"] #enquiry .quote-form-card .fld textarea:focus{
  outline:none!important;
  border-color:var(--blue)!important;
  background:#fff!important;
  transform:translateY(-1px)!important;
  box-shadow:0 0 0 4px var(--focus),0 10px 24px -18px rgba(8,127,208,.45)!important;
}
html[data-theme="dark"] body[data-page="contact"] #enquiry .quote-form-card .seg{
  background:#071a2b!important;
  border-color:rgba(118,182,226,.32)!important;
}
html[data-theme="dark"] body[data-page="contact"] #enquiry .quote-form-card .seg .opt{
  color:#b9cddd!important;
  background:transparent!important;
}
html[data-theme="dark"] body[data-page="contact"] #enquiry .quote-form-card .seg .opt:hover{
  color:#eaf6fd!important;
  background:rgba(75,167,226,.11)!important;
}
html[data-theme="dark"] body[data-page="contact"] #enquiry .quote-form-card .seg input:checked+.opt{
  color:#fff!important;
  background:linear-gradient(135deg,#12699f,#1e82bd)!important;
  box-shadow:0 12px 24px -18px rgba(0,0,0,.9),inset 0 1px 0 rgba(255,255,255,.17)!important;
}
html[data-theme="dark"] body[data-page="contact"] #enquiry .quote-form-card .fld textarea{
  background:#071a2c!important;
  color:#eaf4fb!important;
  border-color:rgba(125,184,224,.3)!important;
}
html[data-theme="dark"] body[data-page="contact"] #enquiry .quote-form-card .fld textarea::placeholder{color:#7899b2!important}
html[data-theme="dark"] body[data-page="contact"] #enquiry .quote-form-card .fld textarea:focus{
  background:#0a2339!important;
  border-color:#45a8e6!important;
}
@media(max-width:620px){
  body[data-page="contact"] #enquiry .quote-form-card .seg{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    min-height:58px!important;
    height:58px!important;
  }
  body[data-page="contact"] #enquiry .quote-form-card .seg label,
  body[data-page="contact"] #enquiry .quote-form-card .seg .opt{
    min-height:50px!important;
    height:50px!important;
  }
  body[data-page="contact"] #enquiry .quote-form-card .seg .opt{
    padding-inline:7px!important;
    font-size:12px!important;
  }
}
