/* contact (build_contact.py). Every rule starts with .hb-contact.
   Centrepiece: the enquiry form as a sheet of paper, the other ways to reach us down its side;
   under it the three answers an enquiry can get, drawn as one line splitting into three. */
.hb-contact .hbc-in{max-width:1220px;margin:0 auto;padding:0 28px}
.hb-contact section[class^="hbc-"] h2{font-size:clamp(1.7rem,2.6vw,2.3rem);font-weight:700;letter-spacing:-.03em;line-height:1.12;margin:0}

/* the form and the contact details */
.hb-contact .hbc-top{background:linear-gradient(to bottom,#fff0f4 0,#fff0f4 100%);padding:64px 0 84px}
.hb-contact .hbc-top .hbc-in{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,4fr);gap:80px;align-items:start}
.hb-contact .hbc-sheet{margin-right:14px}
.hb-contact .hbc-sheet form.card{display:grid;grid-template-columns:1fr 1fr;gap:14px 14px;background:#fff;border:2px solid var(--ink);border-radius:6px;box-shadow:14px 14px 0 var(--cfield);padding:44px 48px 40px;margin:0}
.hb-contact .hbc-sheet form.card>*{grid-column:1/-1;margin:0}
.hb-contact .hbc-sheet form.card h2{font-size:clamp(1.8rem,3vw,2.5rem)}
.hb-contact .hbc-sheet form.card .sb{font-size:1.02rem;line-height:1.55;color:#3d3b41;margin:-4px 0 10px}
.hb-contact .hbc-sheet form.card input[name=name]{grid-column:1}
.hb-contact .hbc-sheet form.card input[name=email]{grid-column:2}
.hb-contact .hbc-sheet form.card input[type=text],.hb-contact .hbc-sheet form.card input[type=email],.hb-contact .hbc-sheet form.card select,.hb-contact .hbc-sheet form.card textarea{
  width:100%;border:0;border-bottom:2px solid var(--ink);border-radius:0;background:#fff;padding:16px 2px 12px;font:inherit;font-size:1.06rem;color:var(--ink)}
.hb-contact .hbc-sheet form.card textarea{min-height:170px;line-height:2.1;resize:vertical;padding-top:8px;border:2px solid var(--ink);border-radius:4px;padding-inline:14px;margin-top:10px;
  background:repeating-linear-gradient(to bottom,#fff 0 2.1em,var(--line) 2.1em calc(2.1em + 1px)) 0 8px}
.hb-contact .hbc-sheet form.card input:focus,.hb-contact .hbc-sheet form.card select:focus,.hb-contact .hbc-sheet form.card textarea:focus{outline:0;border-color:var(--cfield)}
.hb-contact .hbc-sheet form.card button{justify-self:start;width:auto;margin-top:8px;background:var(--ink);color:#fff;border:0;border-radius:8px;font-family:var(--head);font-weight:700;font-size:1.02rem;padding:16px 34px;cursor:pointer}
.hb-contact .hbc-sheet form.card button:hover{background:var(--cd)}
.hb-contact .hbc-sheet form.card .np{font-size:.9rem;line-height:1.55;color:var(--mute);margin-top:4px;max-width:62ch}
.hb-contact .hbc-pin{position:relative;margin:34px 0 0 48px;padding:18px 22px;background:var(--ink);color:#fff;border-radius:var(--r)}
.hb-contact .hbc-pin:before{content:"";position:absolute;left:36px;top:-20px;width:0;height:20px;border-left:2px solid var(--ink)}
.hb-contact .hbc-pin p{font-size:1rem;line-height:1.6;color:#fff;margin:0}

.hb-contact .hbc-ways h2{font-size:1.5rem;letter-spacing:-.025em;padding-bottom:18px;border-bottom:2px solid var(--ink)}
.hb-contact .hbc-way{padding:22px 0 24px;border-bottom:1px solid #f3cdd8}
.hb-contact .hbc-way:last-child{border-bottom:0;padding-bottom:0}
.hb-contact .hbc-way h3{font-size:1.14rem;font-weight:700;letter-spacing:-.014em;margin:0 0 6px}
.hb-contact .hbc-way p{font-size:.98rem;line-height:1.6;color:#2a2629;margin:0 0 12px}
.hb-contact .hbc-way p.hbc-num{font-family:var(--head);font-weight:700;font-size:1.7rem;letter-spacing:-.03em;line-height:1.1;color:var(--ink);margin:2px 0 10px}
.hb-contact .hbc-way a{font-weight:700;font-size:.98rem;color:var(--ink);text-decoration:underline;text-decoration-color:var(--cfield);text-decoration-thickness:3px;text-underline-offset:4px}
.hb-contact .hbc-way a:hover{color:var(--cd)}
.hb-contact .hbc-addr p{margin:0}

/* what comes back */
.hb-contact .hbc-back{padding:84px 0 88px}
.hb-contact .hbc-lead{margin:14px 0 0;font-size:1.14rem;line-height:1.6;color:#2a2629}
.hb-contact .hbc-fork{position:relative;list-style:none;margin:44px 0 0;padding:44px 0 0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px}
.hb-contact .hbc-fork:before{content:"";position:absolute;left:calc((100% - 80px)/6);right:calc((100% - 80px)/6);top:20px;border-top:2px solid var(--ink)}
.hb-contact .hbc-fork:after{content:"";position:absolute;left:calc((100% - 80px)/6);top:0;height:20px;border-left:2px solid var(--ink)}
.hb-contact .hbc-fork li{position:relative;border:2px solid var(--ink);border-radius:var(--r);padding:24px 26px 26px;font-size:1.04rem;line-height:1.62;color:#2a2629}
.hb-contact .hbc-fork li:before{content:"";position:absolute;left:50%;top:-26px;height:24px;border-left:2px solid var(--ink)}
.hb-contact .hbc-fork li:after{content:"";position:absolute;left:calc(50% - 6px);top:-8px;width:14px;height:14px;border-radius:50%;background:var(--ink)}
.hb-contact .hbc-fork li b{display:block;font-family:var(--head);font-weight:700;font-size:1.3rem;letter-spacing:-.02em;line-height:1.22;color:var(--ink);margin-bottom:8px}
.hb-contact .hbc-fork li i{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hb-contact .hbc-fork li:first-child{background:var(--cfield);border-color:var(--cfield);color:var(--ink)}
.hb-contact .hbc-fork li:nth-child(2){background:var(--plum);border-color:var(--plum);color:#f6e9ee}
.hb-contact .hbc-fork li:nth-child(2) b{color:#fff}

/* questions */
.hb-contact .hbc-faq{background:#fff0f4;padding:80px 0 84px}
.hb-contact .hbc-faq .hbc-in{display:grid;grid-template-columns:300px minmax(0,1fr);gap:56px;align-items:start}
.hb-contact .hbc-qs{border-top:2px solid var(--ink)}
.hb-contact .hbc-faq details.fq{border-bottom-color:#f3cdd8}
.hb-contact .hbc-faq .fqa{padding:0 2px 20px;max-width:74ch}
.hb-contact .hbc-faq .fqa p{font-size:1rem;line-height:1.7;color:#2a2629}

@media(max-width:1000px){
  .hb-contact .hbc-top .hbc-in{grid-template-columns:1fr;gap:56px}
  .hb-contact .hbc-fork{gap:24px}
  .hb-contact .hbc-fork:before{left:calc((100% - 48px)/6);right:calc((100% - 48px)/6)}
  .hb-contact .hbc-fork:after{left:calc((100% - 48px)/6)}
  .hb-contact .hbc-faq .hbc-in{grid-template-columns:1fr;gap:24px}
}
@media(max-width:760px){
  .hb-contact .hbc-in{padding:0 16px}
  .hb-contact .hbc-top{padding:36px 0 56px}
  .hb-contact .hbc-sheet{margin-right:8px}
  .hb-contact .hbc-sheet form.card{grid-template-columns:1fr;padding:26px 20px 26px;box-shadow:8px 8px 0 var(--cfield)}
  .hb-contact .hbc-sheet form.card input[name=name],.hb-contact .hbc-sheet form.card input[name=email]{grid-column:1}
  .hb-contact .hbc-sheet form.card button{width:100%}
  .hb-contact .hbc-pin{margin-left:20px}
  .hb-contact .hbc-back{padding:52px 0 56px}
  .hb-contact .hbc-fork{grid-template-columns:1fr;gap:26px;margin-top:26px;padding:0 0 0 30px}
  .hb-contact .hbc-fork:before{left:6px;right:auto;top:0;bottom:60px;border-top:0;border-left:2px solid var(--ink)}
  .hb-contact .hbc-fork:after{display:none}
  .hb-contact .hbc-fork li:before{left:-24px;top:36px;height:0;width:24px;border-left:0;border-top:2px solid var(--ink)}
  .hb-contact .hbc-fork li:after{left:-8px;top:30px}
  .hb-contact .hbc-faq{padding:52px 0 56px}
}
