:root {
  --ccqw-navy: #08263b;
  --ccqw-navy-deep: #031923;
  --ccqw-teal: #05a9bb;
  --ccqw-teal-dark: #078798;
  --ccqw-green: #83b737;
  --ccqw-cream: #f6f4ee;
  --ccqw-text: #20323d;
  --ccqw-muted: #687985;
  --ccqw-border: #dce6e9;
  --ccqw-error: #b42318;
  --ccqw-radius: 24px;
  --ccqw-shadow: 0 24px 70px rgba(3, 25, 35, .12);
}

.ccqw,
.ccqw * { box-sizing: border-box; }

.ccqw { color: var(--ccqw-text); font-family: Montserrat, Arial, sans-serif; }
.ccqw-shell {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(0, 1.45fr);
  width: min(100%, 1120px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--ccqw-border);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--ccqw-shadow);
}

.ccqw-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 5vw, 54px);
  color: #fff;
  background:
    radial-gradient(circle at 92% 8%, rgba(5, 169, 187, .38), transparent 34%),
    radial-gradient(circle at 5% 90%, rgba(131, 183, 55, .24), transparent 36%),
    linear-gradient(145deg, var(--ccqw-navy-deep), var(--ccqw-navy));
}
.ccqw-aside::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -95px;
  width: 250px;
  height: 250px;
  border: 42px solid rgba(255,255,255,.035);
  border-radius: 50%;
}
.ccqw-kicker,
.ccqw-step__eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  color: #a7e8ed;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ccqw-aside h2 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(33px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.ccqw-aside > p { margin: 0 0 28px; color: #d7e5e9; font-size: 16px; }
.ccqw-aside ul { display: grid; gap: 13px; padding: 0; margin: 0; list-style: none; }
.ccqw-aside li { position: relative; padding-left: 30px; color: #edf7f8; font-size: 14px; font-weight: 650; }
.ccqw-aside li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  color: var(--ccqw-navy-deep);
  background: var(--ccqw-green);
  font-size: 12px;
  font-weight: 900;
}
.ccqw-aside__help {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding-top: 52px;
}
.ccqw-aside__help span { color: #aebfc5; font-size: 12px; }
.ccqw-aside__help a { color: #fff; font-size: 21px; font-weight: 900; text-decoration: none; }

.ccqw-form { min-width: 0; padding: clamp(28px, 5vw, 56px); }
.ccqw-progress { margin-bottom: 38px; }
.ccqw-progress__meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 10px; color: var(--ccqw-muted); font-size: 12px; font-weight: 800; }
.ccqw-progress__track { overflow: hidden; height: 7px; border-radius: 999px; background: #eaf0f2; }
.ccqw-progress__track span { display: block; width: 16.666%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ccqw-teal), #37c7d4); transition: width .32s ease; }

.ccqw-step { display: block; animation: ccqw-fade .24s ease; }
.ccqw-is-enhanced .ccqw-step { display: none; }
.ccqw-is-enhanced .ccqw-step.is-active { display: block; }
@keyframes ccqw-fade { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.ccqw-step__eyebrow { color: var(--ccqw-teal-dark); }
.ccqw-step h3 { margin: 0 0 10px; color: var(--ccqw-navy); font-size: clamp(27px, 4vw, 42px); line-height: 1.08; letter-spacing: -.035em; }
.ccqw-step__intro { max-width: 680px; margin: 0 0 28px; color: var(--ccqw-muted); }

.ccqw-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ccqw-choice { display: block; min-width: 0; cursor: pointer; }
.ccqw-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ccqw-choice__surface {
  position: relative;
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr) 25px;
  gap: 13px;
  align-items: center;
  min-height: 96px;
  height: 100%;
  padding: 16px;
  border: 2px solid var(--ccqw-border);
  border-radius: 17px;
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
.ccqw-choice:hover .ccqw-choice__surface { border-color: #a7dce2; transform: translateY(-1px); }
.ccqw-choice__surface.ccqw-invalid { border-color: var(--ccqw-error); box-shadow: 0 0 0 3px rgba(180,35,24,.10); }
.ccqw-choice input:focus-visible + .ccqw-choice__surface { outline: 4px solid rgba(5,169,187,.18); outline-offset: 2px; }
.ccqw-choice input:checked + .ccqw-choice__surface { border-color: var(--ccqw-teal); background: #f1fbfc; box-shadow: 0 10px 25px rgba(5,169,187,.11); }
.ccqw-choice__icon { display: grid; width: 43px; height: 43px; place-items: center; border-radius: 13px; color: var(--ccqw-teal-dark); background: #eaf9fb; font-size: 21px; font-weight: 900; }
.ccqw-choice__copy { min-width: 0; }
.ccqw-choice__copy strong { display: block; margin-bottom: 3px; color: var(--ccqw-navy); font-size: 14px; line-height: 1.25; }
.ccqw-choice__copy small { display: block; color: var(--ccqw-muted); font-size: 11px; line-height: 1.4; }
.ccqw-choice__tick { display: grid; width: 24px; height: 24px; place-items: center; border: 2px solid #cfdbdf; border-radius: 50%; color: transparent; font-size: 12px; font-weight: 900; }
.ccqw-choice input:checked + .ccqw-choice__surface .ccqw-choice__tick { border-color: var(--ccqw-teal); color: #fff; background: var(--ccqw-teal); }

.ccqw-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 19px; }
.ccqw-field-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ccqw-field { min-width: 0; margin-bottom: 19px; }
.ccqw-field-grid .ccqw-field { margin-bottom: 0; }
.ccqw-field label,
.ccqw-fieldset legend { display: block; margin-bottom: 8px; color: var(--ccqw-navy); font-size: 13px; font-weight: 850; }
.ccqw-field input,
.ccqw-field select,
.ccqw-field textarea {
  width: 100%;
  min-height: 51px;
  padding: 13px 14px;
  border: 1px solid #c9d6da;
  border-radius: 12px;
  color: var(--ccqw-text);
  background: #fff;
  box-shadow: 0 1px 0 rgba(3,25,35,.02);
  font: inherit;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ccqw-field textarea { min-height: 120px; resize: vertical; }
.ccqw-field input:focus,
.ccqw-field select:focus,
.ccqw-field textarea:focus { outline: none; border-color: var(--ccqw-teal); box-shadow: 0 0 0 4px rgba(5,169,187,.13); }
.ccqw-field input.ccqw-invalid,
.ccqw-field select.ccqw-invalid,
.ccqw-field textarea.ccqw-invalid { border-color: var(--ccqw-error); box-shadow: 0 0 0 3px rgba(180,35,24,.10); }
.ccqw-field small { display: block; margin-top: 7px; color: var(--ccqw-muted); font-size: 11px; }

.ccqw-fieldset { padding: 0; margin: 0 0 21px; border: 0; }
.ccqw-chip-grid { display: flex; flex-wrap: wrap; gap: 9px; }
.ccqw-chip { cursor: pointer; }
.ccqw-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ccqw-chip span { display: block; padding: 9px 13px; border: 1px solid var(--ccqw-border); border-radius: 999px; color: var(--ccqw-navy); background: #fff; font-size: 12px; font-weight: 750; transition: .17s ease; }
.ccqw-chip input:checked + span { border-color: var(--ccqw-teal); color: var(--ccqw-teal-dark); background: #eaf9fb; }
.ccqw-chip input:focus-visible + span { outline: 3px solid rgba(5,169,187,.18); outline-offset: 2px; }

.ccqw-conditional[hidden] { display: none !important; }
.ccqw-info { padding: 15px 17px; border-left: 4px solid var(--ccqw-green); border-radius: 9px; color: #456019; background: #f1f8e7; font-size: 13px; }

.ccqw-upload {
  display: grid;
  place-items: center;
  min-height: 205px;
  padding: 28px;
  border: 2px dashed #a9c9cf;
  border-radius: 19px;
  text-align: center;
  cursor: pointer;
  background: #f7fbfc;
  transition: border-color .18s ease, background .18s ease;
}
.ccqw-upload:hover { border-color: var(--ccqw-teal); background: #effafb; }
.ccqw-upload__icon { display: grid; width: 48px; height: 48px; margin-bottom: 12px; place-items: center; border-radius: 50%; color: #fff; background: var(--ccqw-teal); font-size: 27px; line-height: 1; }
.ccqw-upload strong { color: var(--ccqw-navy); font-size: 16px; }
.ccqw-upload > span:last-child { margin-top: 4px; color: var(--ccqw-muted); font-size: 12px; }
.ccqw-upload__input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ccqw-file-list { display: grid; gap: 8px; margin-top: 13px; }
.ccqw-file { display: flex; justify-content: space-between; gap: 14px; padding: 10px 12px; border-radius: 10px; color: var(--ccqw-navy); background: #edf5f6; font-size: 12px; }
.ccqw-file span:last-child { color: var(--ccqw-muted); white-space: nowrap; }

.ccqw-review { padding: 18px; margin: 4px 0 20px; border: 1px solid var(--ccqw-border); border-radius: 15px; background: #f8fafb; }
.ccqw-review h4 { margin: 0 0 12px; color: var(--ccqw-navy); font-size: 14px; }
.ccqw-review dl { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 7px 12px; margin: 0; font-size: 12px; }
.ccqw-review dt { color: var(--ccqw-muted); font-weight: 700; }
.ccqw-review dd { min-width: 0; margin: 0; color: var(--ccqw-navy); font-weight: 750; word-break: break-word; }

.ccqw-consent { display: flex; gap: 11px; align-items: flex-start; color: var(--ccqw-text); font-size: 12px; line-height: 1.55; cursor: pointer; }
.ccqw-consent input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--ccqw-teal); }
.ccqw-consent a { color: var(--ccqw-teal-dark); font-weight: 750; }
.ccqw-privacy-note { margin: 14px 0 0; color: var(--ccqw-muted); font-size: 11px; }

.ccqw-alert { padding: 13px 15px; margin: -16px 0 24px; border: 1px solid #f0b7b2; border-radius: 11px; color: #8f2118; background: #fff3f2; font-size: 13px; font-weight: 700; }
.ccqw-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.ccqw-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--ccqw-border); }
.ccqw-button {
  display: inline-flex;
  min-height: 51px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  transition: transform .17s ease, box-shadow .17s ease, background .17s ease;
}
.ccqw-button:hover { transform: translateY(-1px); }
.ccqw-button--primary { margin-left: auto; color: #fff; background: var(--ccqw-teal); box-shadow: 0 12px 28px rgba(5,169,187,.23); }
.ccqw-button--primary:hover { color: #fff; background: var(--ccqw-teal-dark); }
.ccqw-button--ghost { color: var(--ccqw-navy); background: #eef3f4; }
.ccqw-button[disabled] { cursor: wait; opacity: .65; transform: none; }
.ccqw-button[hidden] { display: none !important; }

.ccqw-success { width: min(100%, 760px); margin: 0 auto; padding: clamp(35px, 7vw, 72px); border: 1px solid var(--ccqw-border); border-radius: 26px; text-align: center; background: #fff; box-shadow: var(--ccqw-shadow); }
.ccqw-success__icon { display: grid; width: 72px; height: 72px; margin: 0 auto 22px; place-items: center; border-radius: 50%; color: #fff; background: var(--ccqw-green); font-size: 34px; font-weight: 900; }
.ccqw-success h2 { margin: 0 0 13px; color: var(--ccqw-navy); font-size: clamp(30px, 5vw, 48px); letter-spacing: -.035em; }
.ccqw-success p { color: var(--ccqw-muted); }
.ccqw-success__ref { display: inline-block; padding: 9px 14px; border-radius: 999px; color: var(--ccqw-navy) !important; background: #edf5f6; }

@media (max-width: 900px) {
  .ccqw-shell { grid-template-columns: 1fr; }
  .ccqw-aside { min-height: 330px; }
  .ccqw-aside__help { padding-top: 28px; }
  .ccqw-field-grid--three { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .ccqw-shell { border-radius: 18px; }
  .ccqw-aside { min-height: 0; padding: 30px 24px; }
  .ccqw-aside ul { grid-template-columns: 1fr; }
  .ccqw-aside__help { padding-top: 26px; }
  .ccqw-form { padding: 28px 20px; }
  .ccqw-choice-grid,
  .ccqw-field-grid { grid-template-columns: 1fr; }
  .ccqw-choice__surface { min-height: 84px; }
  .ccqw-review dl { grid-template-columns: 1fr; gap: 3px; }
  .ccqw-review dd { margin-bottom: 7px; }
  .ccqw-actions { position: sticky; z-index: 3; bottom: 0; margin-inline: -20px; padding: 16px 20px; background: rgba(255,255,255,.96); backdrop-filter: blur(9px); }
  .ccqw-button { min-height: 48px; padding-inline: 18px; }
}

/* v0.3 postcode-to-address lookup */
.ccqw-field--address { position: relative; overflow: visible; }
.ccqw-postcode-lookup { position: relative; z-index: 5; margin-bottom: 8px; }
.ccqw-address-status { margin: 8px 0 14px; color: var(--ccqw-muted); font-size: 11px; }
.ccqw-address-status.is-selected { color: #4d7e17; font-weight: 750; }
.ccqw-address-status.is-error { color: var(--ccqw-error); font-weight: 750; }
.ccqw-address-key-note {
  display: grid;
  gap: 4px;
  padding: 13px 15px;
  margin-bottom: 16px;
  border: 1px solid #f1d7a5;
  border-radius: 12px;
  color: #6f4b0c;
  background: #fff8e8;
  font-size: 11px;
  line-height: 1.5;
}
.ccqw-address-key-note strong { font-size: 12px; }
.ccqw-address-fields { padding: 16px; border: 1px solid var(--ccqw-border); border-radius: 15px; background: #f8fafb; }
.ccqw-address-fields .ccqw-field-grid:last-of-type { margin-bottom: 0; }

/* Ideal Postcodes Postcode Lookup generated controls */
.ccqw-postcode-lookup input,
.ccqw-postcode-lookup select,
.ccqw-postcode-lookup button {
  min-height: 51px !important;
  border-radius: 12px !important;
  font-family: Montserrat, Arial, sans-serif !important;
}
.ccqw-postcode-lookup input,
.ccqw-postcode-lookup select {
  width: 100% !important;
  padding: 13px 14px !important;
  border: 1px solid #c9d6da !important;
  color: var(--ccqw-text) !important;
  background: #fff !important;
}
.ccqw-postcode-lookup button {
  padding: 12px 20px !important;
  border: 0 !important;
  color: #fff !important;
  background: var(--ccqw-teal) !important;
  font-weight: 850 !important;
  cursor: pointer !important;
}
.ccqw-postcode-lookup button:hover { background: var(--ccqw-teal-dark) !important; }
.ccqw-postcode-lookup select { margin-top: 10px !important; }


/* v0.4 required fields, room builder and quote checkout */
.ccqw-required { color:#c2362b; font-weight:900; }
.ccqw-subheading { margin:28px 0 14px; color:var(--ccqw-navy); font-size:18px; }
.ccqw-room-list { display:grid; gap:16px; margin:18px 0 26px; }
.ccqw-room-card { padding:20px; border:1px solid var(--ccqw-border); border-radius:17px; background:#f8fbfc; }
.ccqw-room-card h4 { margin:0 0 14px; color:var(--ccqw-navy); }
.ccqw-field-grid--room { grid-template-columns:1.3fr repeat(4,minmax(105px,1fr)); align-items:end; }
.ccqw-checkout { width:min(1180px,calc(100% - 32px)); margin:48px auto 90px; }
.ccqw-checkout__head { max-width:820px; margin:0 auto 32px; text-align:center; }
.ccqw-checkout__head h1 { margin:8px 0 12px; color:var(--ccqw-navy); font-size:clamp(38px,6vw,68px); line-height:1; letter-spacing:-.045em; }
.ccqw-package-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; margin:28px 0; }
.ccqw-package-card { position:relative; display:flex; flex-direction:column; padding:26px; border:2px solid var(--ccqw-border); border-radius:22px; background:#fff; box-shadow:0 14px 35px rgba(3,25,35,.07); cursor:pointer; }
.ccqw-package-card--featured { border-color:var(--ccqw-teal); transform:translateY(-7px); }
.ccqw-package-card > input { position:absolute; opacity:0; pointer-events:none; }
.ccqw-package-card:has(input:checked) { border-color:var(--ccqw-teal); box-shadow:0 0 0 5px rgba(5,169,187,.12),0 18px 44px rgba(3,25,35,.12); }
.ccqw-package-card__tag { align-self:flex-start; margin:-10px 0 13px; padding:6px 10px; border-radius:999px; color:#fff; background:var(--ccqw-teal); font-size:10px; font-weight:900; text-transform:uppercase; }
.ccqw-package-card__brand { color:var(--ccqw-teal-dark); font-size:11px; font-weight:900; text-transform:uppercase; letter-spacing:.08em; }
.ccqw-package-card__name { margin:6px 0; color:var(--ccqw-navy); font-size:25px; }
.ccqw-package-card__description { min-height:54px; color:var(--ccqw-muted); font-size:13px; }
.ccqw-package-card__price { margin-top:20px; color:var(--ccqw-navy); font-size:38px; font-weight:950; letter-spacing:-.04em; }
.ccqw-package-card__price--hidden { font-size:22px; }
.ccqw-package-card__grant,.ccqw-package-card__after { display:block; margin-top:10px; padding:9px 11px; border-radius:10px; font-size:12px; font-weight:800; }
.ccqw-package-card__grant { color:#456019; background:#eef7e2; }
.ccqw-package-card__after { color:#075d68; background:#e8f8fa; }
.ccqw-package-card ul { display:grid; gap:9px; padding:0; margin:22px 0; list-style:none; }
.ccqw-package-card li { position:relative; padding-left:23px; color:#536671; font-size:12px; }
.ccqw-package-card li::before { content:'✓'; position:absolute; left:0; color:var(--ccqw-green); font-weight:900; }
.ccqw-package-card__select { margin-top:auto; padding:12px; border-radius:11px; color:var(--ccqw-navy); background:#edf5f7; text-align:center; font-weight:900; }
.ccqw-package-card:has(input:checked) .ccqw-package-card__select { color:#fff; background:var(--ccqw-teal); }
.ccqw-checkout-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:22px; margin:28px 0; }
.ccqw-checkout-card { padding:26px; border:1px solid var(--ccqw-border); border-radius:20px; background:#fff; }
.ccqw-checkout-card h2 { margin:0 0 16px; color:var(--ccqw-navy); font-size:24px; }
.ccqw-checkout-card input[type=date] { width:100%; min-height:54px; padding:12px; border:1px solid #c9d6da; border-radius:12px; font:inherit; }
.ccqw-pay-choice { display:block; margin:10px 0; cursor:pointer; }
.ccqw-pay-choice input { position:absolute; opacity:0; }
.ccqw-pay-choice span { display:block; padding:15px; border:2px solid var(--ccqw-border); border-radius:13px; }
.ccqw-pay-choice strong,.ccqw-pay-choice small { display:block; }
.ccqw-pay-choice small { margin-top:4px; color:var(--ccqw-muted); }
.ccqw-pay-choice input:checked + span { border-color:var(--ccqw-teal); background:#f0fafb; }
.ccqw-button--wide { display:block; width:100%; max-width:520px; margin:22px auto 0; }
.ccqw-next-actions { margin-top:28px; padding:28px; border-radius:20px; background:#eef8e5; text-align:center; }
.ccqw-success--compact { margin:0 0 25px; }
@media(max-width:980px){.ccqw-field-grid--room{grid-template-columns:repeat(2,minmax(0,1fr));}.ccqw-package-grid{grid-template-columns:1fr}.ccqw-package-card--featured{transform:none}.ccqw-checkout-grid{grid-template-columns:1fr}}
@media(max-width:640px){.ccqw-checkout{width:min(100% - 20px,1180px);margin-top:22px}.ccqw-room-card{padding:15px}.ccqw-field-grid--room{grid-template-columns:1fr}.ccqw-package-card{padding:21px}.ccqw-checkout-card{padding:20px}}

/* v0.4.1 room-specific sizing prompt */
.ccqw-room-size-group { grid-column: span 2; display:grid; gap:9px; }
.ccqw-room-size-group > strong { color:var(--ccqw-navy); font-size:12px; }
.ccqw-room-size-inputs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
@media(max-width:980px){.ccqw-room-size-group{grid-column:1/-1}}
@media(max-width:640px){.ccqw-room-size-inputs{grid-template-columns:1fr}}
