/* Contact page (17 Oct 2026): the guided enquiry and the offices map. Loaded only by contact.php. */
.ctc-head{padding-bottom:40px}
.ctc{padding:44px 0 72px;background:var(--white)}
.ctc__grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:40px;align-items:start}
.ctc__card{background:#fff;border:1px solid var(--line);box-shadow:0 1px 0 rgba(26,23,25,.04),0 18px 48px -28px rgba(26,23,25,.28);padding:34px 38px 30px;scroll-margin-top:110px}

/* step indicator: one line that fills as the visitor moves on */
.ctc-steps{list-style:none;margin:0 0 30px;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:10px;counter-reset:none}
.ctc-steps li{position:relative;padding-top:14px;font-size:13.5px;font-weight:600;color:var(--grey-light);display:flex;gap:8px;align-items:center}
.ctc-steps li::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;background:var(--light-grey);transition:background .35s}
.ctc-steps li b{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;border:1.5px solid currentColor;font-size:12px;font-weight:700}
.ctc-steps li.on,.ctc-steps li.done{color:var(--black)}
.ctc-steps li.on::before,.ctc-steps li.done::before{background:var(--red)}
.ctc-steps li.done b{background:var(--red);border-color:var(--red);color:#fff}
.no-js .ctc-steps,.ctc-form:not(.is-steps) .ctc-steps{display:none}

.ctc-step{border:0;margin:0;padding:0;min-width:0}
.ctc-step+.ctc-step{margin-top:34px}
.ctc-form.is-steps .ctc-step{margin-top:0}
.ctc-form.is-steps .ctc-step:not(.on){display:none}
.ctc-form.is-steps .ctc-step.on{animation:ctcIn .32s ease both}
@keyframes ctcIn{from{opacity:0;transform:translateX(14px)}to{opacity:1;transform:none}}
.ctc-step legend{font-size:24px;font-weight:600;letter-spacing:-.02em;color:var(--black);margin:0 0 20px;padding:0}

.ctc-topics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ctc-topic{position:relative;cursor:pointer}
.ctc-topic input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.ctc-topic span{display:block;height:100%;border:1.5px solid var(--line);padding:15px 18px 15px 46px;transition:border-color .15s,background .15s;position:relative}
.ctc-topic span::before{content:"";position:absolute;left:17px;top:18px;width:16px;height:16px;border-radius:50%;border:1.5px solid var(--stone);background:#fff;transition:all .15s}
.ctc-topic b{display:block;font-size:15.5px;font-weight:600;color:var(--black)}
.ctc-topic small{display:block;font-size:13.5px;color:var(--grey);margin-top:3px;line-height:1.4}
.ctc-topic:hover span{border-color:var(--stone)}
.ctc-topic input:checked+span{border-color:var(--red);background:#FFF8F8}
.ctc-topic input:checked+span::before{border-color:var(--red);box-shadow:inset 0 0 0 4px #fff;background:var(--red)}
.ctc-topic input:focus-visible+span{outline:2px solid var(--red);outline-offset:2px}
.ctc-topic:last-child:nth-child(odd){grid-column:1/-1}

.ctc-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.ctc-f{display:block;margin:0 0 18px}
.ctc-f>span{display:block;font-size:13.5px;font-weight:600;color:var(--black);margin:0 0 7px}
.ctc-f>span i{font-style:normal;font-weight:400;color:var(--grey-light);margin-left:4px}
.ctc-f input,.ctc-f select,.ctc-f textarea{width:100%;box-sizing:border-box;font:inherit;font-size:15.5px;color:var(--black);background:var(--light);border:0;border-bottom:2px solid var(--sand);border-radius:0;padding:13px 14px;transition:border-color .15s,background .15s;-webkit-appearance:none;appearance:none}
.ctc-f select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23656A6F' stroke-width='1.6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;padding-right:38px}
.ctc-f textarea{resize:vertical;min-height:140px;line-height:1.55}
.ctc-f input:hover,.ctc-f select:hover,.ctc-f textarea:hover{border-bottom-color:var(--stone)}
.ctc-f input:focus,.ctc-f select:focus,.ctc-f textarea:focus{outline:0;background:#fff;border-bottom-color:var(--red);box-shadow:0 0 0 1px var(--line)}
.ctc-f .bad,.ctc-f .bad:hover{border-bottom-color:var(--red);background:#FFF6F6}

.ctc-route{display:flex;gap:10px;align-items:flex-start;margin:-4px 0 18px;padding:12px 14px;background:var(--cream);font-size:14px;color:var(--black-soft);line-height:1.45}
.ctc-route[hidden]{display:none}
.ctc-route::before{content:"";flex:0 0 8px;height:8px;margin-top:6px;border-radius:50%;background:var(--red);box-shadow:0 0 0 4px var(--red-soft)}

.ctc-nav{display:flex;gap:10px;justify-content:flex-end;margin-top:6px}
.ctc-nav [data-back]{margin-right:auto}
.ctc-form:not(.is-steps) .ctc-nav [data-next],.ctc-form:not(.is-steps) .ctc-nav [data-back]{display:none}
.ctc-msg{margin:0 0 12px;font-size:14px;color:var(--red-strong);font-weight:600}
.ctc-err{margin:0 0 22px;padding:13px 16px;border:1px solid #F3C6C8;background:#FFF4F4;color:var(--red-darker);font-size:14.5px}
.ctc-note{margin:16px 0 0;font-size:13px;color:var(--grey-light);text-align:right}

.ctc-done{text-align:center;padding:26px 4px 10px}
.ctc-done__tick{display:inline-grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--red);margin-bottom:18px}
.ctc-done__tick svg{width:30px;height:30px;fill:none;stroke:#fff;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:24;stroke-dashoffset:24;animation:ctcTick .5s .15s ease forwards}
@keyframes ctcTick{to{stroke-dashoffset:0}}
.ctc-done h2{font-size:26px;font-weight:600;letter-spacing:-.02em;margin:0 0 12px}
.ctc-done p{color:var(--grey);margin:0 auto 8px;max-width:46ch}
.ctc-done__ref b{display:inline-block;margin-left:6px;padding:4px 10px;background:var(--cream);color:var(--black);font-weight:700;letter-spacing:.02em}
.ctc-done__acts{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:24px}

.ctc-side{display:grid;gap:16px}
.ctc-hq{background:var(--light);border:1px solid var(--line);padding:22px 24px}
.ctc-hq b{display:block;font-size:15.5px;font-weight:600;margin-bottom:6px;color:var(--black)}
.ctc-hq p{margin:0 0 12px;font-size:14px;line-height:1.5;color:var(--grey)}
.ctc-hq a{font-weight:600;color:var(--red);text-decoration:none;font-size:14.5px}
.ctc-hq a:hover{text-decoration:underline}
.ctc-tip{border:1px solid var(--line);padding:22px 24px}
.ctc-tip b{display:block;font-size:15.5px;margin-bottom:6px;color:var(--black)}
.ctc-tip p{margin:0 0 12px;font-size:14px;color:var(--grey);line-height:1.5}
.ctc-tip a{font-weight:600;color:var(--red);text-decoration:none;font-size:14.5px}
.ctc-tip a:hover{text-decoration:underline}

/* where to find us */
.ctc-where{background:var(--cream);padding:64px 0 76px;border-top:1px solid var(--line)}
.ctc-where__h{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap;margin-bottom:22px}
.ctc-where__h h2{font-size:clamp(28px,2.6vw,36px);font-weight:600;letter-spacing:-.03em;margin:0 0 6px}
.ctc-where__h p{margin:0;color:var(--grey)}
.ctc-chips{display:flex;gap:6px;flex-wrap:wrap}
.ctc-chips button{font:inherit;font-size:14px;font-weight:600;color:var(--grey);background:#fff;border:1px solid var(--line);padding:8px 14px;cursor:pointer;transition:all .15s}
.ctc-chips button:hover{color:var(--black);border-color:var(--stone)}
.ctc-chips button.on{background:var(--black);border-color:var(--black);color:#fff}
.ctc-chips button:focus-visible{outline:2px solid var(--red);outline-offset:2px}

.ctc-map{position:relative;margin:0 0 28px;background:#fff;border:1px solid var(--line);aspect-ratio:1400/536;overflow:hidden}
.ctc-map img{display:block;width:100%;height:100%}
.ctc-pin{position:absolute;width:14px;height:14px;margin:calc(-7px + var(--dy,0px)) 0 0 calc(-7px + var(--dx,0px));padding:0;border:0;border-radius:50%;background:var(--red);box-shadow:0 0 0 3px #fff,0 2px 6px rgba(26,23,25,.35);cursor:pointer;transition:transform .2s,opacity .25s,filter .25s;z-index:2}
.ctc-pin::after{content:"";position:absolute;inset:-7px;border-radius:50%;border:2px solid var(--red);opacity:0}
.ctc-pin--hq{background:var(--black)}
.ctc-pin span{position:absolute;left:50%;bottom:calc(100% + 10px);transform:translateX(-50%);white-space:nowrap;background:var(--black);color:#fff;font-size:12.5px;font-weight:600;padding:5px 9px;pointer-events:none;opacity:0;transition:opacity .15s}
.ctc-pin span::after{content:"";position:absolute;left:50%;top:100%;margin-left:-5px;border:5px solid transparent;border-top-color:var(--black)}
.ctc-pin:hover,.ctc-pin:focus-visible,.ctc-pin.on{transform:scale(1.25);z-index:4;outline:0}
.ctc-pin:hover span,.ctc-pin:focus-visible span,.ctc-pin.on span{opacity:1}
.ctc-pin.on::after{animation:ctcPulse 1.6s ease-out infinite}
@keyframes ctcPulse{0%{opacity:.8;transform:scale(.6)}100%{opacity:0;transform:scale(1.8)}}
.ctc-map.is-filtered .ctc-pin:not(.in){opacity:.25;filter:grayscale(1)}

.ctc-offices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
@media (max-width:1020px){.ctc-offices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.ctc-offices{grid-template-columns:1fr}}
.ctc-office{position:relative;background:#fff;border:1px solid var(--line);padding:22px 22px 18px;display:flex;flex-direction:column;transition:border-color .2s,box-shadow .2s;scroll-margin-top:120px}
.ctc-office[hidden]{display:none}
.ctc-office__k{font-size:13px;color:var(--grey-light);margin-bottom:10px}
.ctc-office h3{font-size:21px;font-weight:600;letter-spacing:-.02em;margin:0 0 4px;color:var(--black)}
.ctc-office__n{font-size:14.5px;font-weight:600;color:var(--black-soft);margin-bottom:10px}
.ctc-office p{margin:0 0 12px;font-size:14.5px;line-height:1.5;color:var(--grey)}
.ctc-office__c a{color:var(--black);text-decoration:none;border-bottom:1px solid var(--line)}
.ctc-office__c a:hover{color:var(--red);border-bottom-color:var(--red)}
.ctc-office__map{margin-top:auto;padding-top:12px;border-top:1px solid var(--line);font-size:14px;font-weight:600;color:var(--red);text-decoration:none}
.ctc-office__map:hover{text-decoration:underline}
/* the head office: one strip above the office cards, with the KingKrete logo (17 Oct 2026) */
.ctc-hqs{display:grid;grid-template-columns:auto 1fr auto;gap:28px;align-items:center;margin:0 0 14px;padding:18px 24px;background:#fff;border:1px solid var(--line);scroll-margin-top:120px;transition:box-shadow .2s,border-color .2s}
.ctc-hqs__logo{display:block;height:132px;width:auto;margin:-12px 0}
.ctc-hqs__k{display:block;font-size:13px;font-weight:700;color:var(--red);margin-bottom:2px}
.ctc-hqs b{display:block;font-size:20px;font-weight:600;letter-spacing:-.02em;color:var(--black)}
.ctc-hqs p{margin:4px 0 0;font-size:14.5px;color:var(--grey);line-height:1.5}
.ctc-hqs p a{color:var(--black);text-decoration:none;border-bottom:1px solid var(--line)}
.ctc-hqs p a:hover{color:var(--red);border-bottom-color:var(--red)}
.ctc-hqs p i{font-style:normal;color:var(--sand);margin:0 8px}
.ctc-hqs__map{font-size:14.5px;font-weight:600;color:var(--red);text-decoration:none;padding:10px 16px;border:1.5px solid var(--red);white-space:nowrap;transition:all .15s}
.ctc-hqs__map:hover{background:var(--red);color:#fff}
.ctc-hqs.lit{border-color:var(--red);box-shadow:0 12px 30px -18px rgba(228,24,28,.55)}
@media (max-width:820px){.ctc-hqs{grid-template-columns:1fr;gap:12px;padding:18px 20px}.ctc-hqs__logo{height:110px;margin:-8px 0 -6px -8px}.ctc-hqs__map{justify-self:start}.ctc-hqs p i{display:block;height:0;margin:0;overflow:hidden}}

/* documents wanted */
.ctc-docs{border:0;margin:0 0 18px;padding:0;min-width:0}
.ctc-docs legend{font-size:13.5px;font-weight:600;color:var(--black);margin:0 0 9px;padding:0}
.ctc-docs legend i{font-style:normal;font-weight:400;color:var(--grey-light);margin-left:4px}
.ctc-docs label{position:relative;display:inline-block;margin:0 6px 6px 0;cursor:pointer}
.ctc-docs input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.ctc-docs span{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border:1.5px solid var(--line);background:#fff;font-size:14px;font-weight:500;color:var(--black);transition:all .15s}
.ctc-docs span::before{content:"";width:14px;height:14px;border:1.5px solid var(--stone);background:#fff center/10px no-repeat;transition:all .15s}
.ctc-docs label:hover span{border-color:var(--stone)}
.ctc-docs input:checked+span{border-color:var(--red);background:#FFF8F8}
.ctc-docs input:checked+span::before{border-color:var(--red);background-color:var(--red);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E")}
.ctc-docs input:focus-visible+span{outline:2px solid var(--red);outline-offset:2px}
.ctc-office.lit{border-color:var(--red);box-shadow:0 12px 30px -18px rgba(228,24,28,.55)}

@media (max-width:1020px){
  .ctc__grid{grid-template-columns:1fr}
  .ctc-side{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .ctc{padding:24px 0 52px}
  .ctc__card{padding:24px 18px 22px;margin:0 -4px}
  .ctc-topics,.ctc-row,.ctc-side{grid-template-columns:1fr}
  .ctc-steps li{font-size:0;gap:0}
  .ctc-steps li b{font-size:12px}
  .ctc-step legend{font-size:21px}
  .ctc-where{padding:44px 0 56px}
  .ctc-pin{width:8px;height:8px;margin:calc(-4px + var(--dy,0px) * .55) 0 0 calc(-4px + var(--dx,0px) * .55);box-shadow:0 0 0 1.5px #fff}
    .ctc-pin span{display:none}
  .ctc-nav .btn{flex:1}
  .ctc-note{text-align:left}
}
@media (prefers-reduced-motion:reduce){
  .ctc-form.is-steps .ctc-step.on,.ctc-pin.on::after{animation:none}
  .ctc-done__tick svg{animation:none;stroke-dashoffset:0}
}
