/* ===== The contract page: a document you can fill in, sign and print ===== */
.ct-body{background:linear-gradient(180deg,var(--lav-50),var(--bg) 320px);min-height:100vh;min-height:100svh}
.ct-page{max-width:820px;margin:0 auto;padding:18px 12px 60px}
.ct-paper{background:#fff;border:1px solid var(--line);border-radius:26px;padding:26px 18px 28px;box-shadow:var(--shadow);animation:cardIn .55s cubic-bezier(.2,.7,.2,1) both}
.ct-brand{display:flex;align-items:center;justify-content:center;gap:12px;padding-bottom:16px;border-bottom:2px solid var(--lav-600);margin-bottom:22px}
.ct-brand svg{width:46px;height:44px;fill:var(--lav-600);flex:none}
.ct-brand b{display:block;font-family:var(--f-lat);font-size:24px;font-weight:700;color:var(--lav-700);line-height:1.2;letter-spacing:.01em}
.ct-brand small{display:block;font-size:12.5px;color:var(--muted)}
.ct-title{font-family:var(--f-disp);font-size:clamp(26px,7vw,34px);font-weight:700;text-align:center;margin:0 0 18px;line-height:1.5}
.ct-status{display:flex;align-items:center;gap:10px;border-radius:16px;padding:12px 14px;font-size:14px;margin-bottom:8px}
.ct-status.wait{background:var(--lav-50);border:1px dashed var(--lav-400);color:var(--ink-2)}
.ct-status.wait .ico{width:18px;height:18px;color:var(--lav-700);flex:none}
.ct-status.ok b{display:block;font-size:16px}.ct-status.ok small{color:var(--muted);font-size:13px}
.ct-ring{width:44px;height:44px;border-radius:50%;background:#E6F6EE;display:grid;place-items:center;flex:none}
.ct-ring .ico{width:22px;height:22px;color:var(--ok)}
.ct-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:22px;padding:10px 14px;margin-bottom:12px}
.ct-bar .ct-status{margin:0;padding:0}
.ct-bar-acts{display:flex;gap:8px;flex-wrap:wrap}

.ct-step{display:flex;align-items:center;gap:10px;font-size:18px;font-weight:600;margin:30px 0 14px;padding-top:22px;border-top:1px solid var(--line)}
.ct-step i{width:30px;height:30px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-style:normal;font-family:var(--f-lat);font-size:14px;flex:none}
.ct-sub{font-size:15.5px;font-weight:600;margin:22px 0 10px}
.ct-sub small{display:block;font-weight:400;color:var(--muted);font-size:13px;margin-top:2px}
.ct-intro{font-size:14.5px;color:var(--ink-2);margin:14px 0}

.ct-tbl{width:100%;border-collapse:collapse;font-size:14px;margin-bottom:6px}
.ct-tbl th,.ct-tbl td{border:1px solid var(--line);padding:10px 12px;text-align:start;vertical-align:middle}
.ct-tbl th{background:var(--lav-50);font-weight:600;color:var(--ink-2);width:1%;white-space:nowrap}
.ct-tbl td small{color:var(--muted)}
.ct-tbl a{color:var(--lav-700);font-size:13px;margin-inline-start:6px}
@media (max-width:620px){
  .ct-tbl,.ct-tbl tbody{display:block}
  .ct-tbl tr{display:grid;grid-template-columns:42% 1fr}
  .ct-tbl th,.ct-tbl td{margin:-1px 0 0 -1px}
  .ct-tbl th{width:auto;white-space:normal}
}
.ct-form{margin-bottom:14px}
.ct-em{display:grid;grid-template-columns:1fr 1.2fr;gap:8px;margin-bottom:10px}
.ct-em b{grid-column:1/-1;font-size:13.5px;font-weight:500;color:var(--ink-2)}
.ct-private{margin:-4px 0 14px;display:grid;gap:8px}
.ct-private[hidden]{display:none}
.ct-private .chk{margin:0}

.ct-terms{font-size:14.5px;line-height:2;color:var(--ink)}
.ct-h{font-size:17px;font-weight:700;color:var(--lav-700);border-inline-start:4px solid var(--lav-600);padding-inline-start:10px;margin:24px 0 12px;line-height:1.6}
.ct-terms .ct-h:first-child{margin-top:0}
.ct-list{margin:0;padding-inline-start:22px}
.ct-list>li{margin-bottom:12px;padding-inline-start:4px}
.ct-list>li::marker{font-weight:600;color:var(--ink-2);font-family:var(--f-lat)}
.ct-points{list-style:"◦  ";margin:6px 0 2px;padding-inline-start:20px}
.ct-points li{margin-bottom:4px}
.ct-p{margin:18px 0 0;text-align:center;font-weight:600}
.ct-fill{background:var(--lav-100);border-radius:6px;padding:0 6px;font-family:var(--f-lat);white-space:nowrap}
.ct-pub{display:grid;gap:8px;margin:8px 0 4px;border:1px dashed var(--lav-400);border-radius:16px;padding:10px}
.ct-opt{display:flex;gap:10px;align-items:flex-start;border:1.5px solid transparent;border-radius:12px;padding:8px 10px;cursor:pointer;line-height:1.85;transition:background .2s,border-color .2s}
.ct-opt input{width:20px;height:20px;accent-color:var(--lav-600);flex:none;margin-top:5px}
.ct-opt.on{background:var(--lav-50);border-color:var(--lav-600)}
.ct-box{width:18px;height:18px;border:1.5px solid var(--ink-2);border-radius:4px;flex:none;margin-top:7px;display:grid;place-items:center;font-size:13px;line-height:1;font-weight:700}
.signed .ct-opt{cursor:default}

.ct-money{background:var(--lav-50);border-radius:18px;padding:6px 14px;font-size:14.5px}
.ct-money>div{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-top:1px solid var(--lav-100)}
.ct-money>div:first-child{border-top:0}
.ct-money b{font-weight:600;white-space:nowrap}
.ct-money .minus b{color:var(--ok)}
.ct-money .sum{font-weight:600}
.ct-money .due b{color:var(--lav-700);font-size:16px}

.ct-agree{align-items:flex-start;margin-bottom:14px}
.ct-agree input{margin-top:3px}
[data-f].bad .input,[data-f].bad.chk,.ct-pub.bad,[data-f].bad .ct-sig,.ct-form.bad .input{border-color:var(--bad)}
.ct-go{height:54px;margin-top:6px}
.ct-legal{text-align:center;color:var(--muted);font-size:12.5px;margin:10px 0 0}
.ct-err{margin:10px 0}

.ct-signs{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:28px}
.ct-signs>div{text-align:center;border:1px solid var(--line);border-radius:16px;padding:12px 10px}
.ct-signs span{display:block;font-size:13px;font-weight:600;color:var(--ink-2)}
.ct-signs img{display:block;max-width:100%;height:92px;object-fit:contain;margin:6px auto}
.ct-signs em{display:grid;place-items:center;height:92px;margin:6px 0;font-family:var(--f-lat);font-style:normal;font-size:22px;color:var(--lav-700)}
.ct-signs b{display:block;font-size:13.5px;font-weight:500;border-top:1px solid var(--line);padding-top:8px}
.ct-date{text-align:center;margin:18px 0 0;font-size:14.5px}
.ct-ref{text-align:center;margin:6px 0 0;font-size:12px;color:var(--muted)}
.ct-ref .lat{letter-spacing:.12em}

@media (min-width:700px){.ct-paper{padding:40px 44px 44px}.ct-page{padding-top:28px}}
@media print{
  @page{margin:14mm}
  .no-print,.toast,.fx-layer,.fx-flash{display:none!important}
  .ct-body{background:#fff}
  .ct-page{max-width:none;padding:0}
  .ct-paper{border:0;box-shadow:none;border-radius:0;padding:0;animation:none}
  .ct-terms{font-size:11.5pt;line-height:1.75}
  .ct-tbl{font-size:10.5pt}
  .ct-list>li,.ct-opt,.ct-tbl tr,.ct-money{break-inside:avoid}
  .ct-end{break-inside:avoid}
  .ct-signs{margin-top:16px}
  .ct-money>div{padding:5px 0}
  .ct-fill{background:none;padding:0}
  .ct-opt.on{background:none}
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

/* the contract inside the booking steps (before payment) */
.ct-embed .ct-step{font-size:16px;margin:22px 0 12px;padding-top:18px}
.ct-embed .ct-fillin>.ct-step:first-child{border-top:0;padding-top:0;margin-top:6px}
.ct-embed .ct-step i{width:26px;height:26px;font-size:12.5px;background:var(--lav-600)}
.ct-embed .ct-terms{font-size:14px;line-height:1.95;max-height:none}
.ct-embed .ct-tbl{font-size:13.5px}
.ct-embed .ct-tbl,.ct-embed .ct-tbl tbody{display:block}
.ct-embed .ct-tbl tr{display:grid;grid-template-columns:42% 1fr}
.ct-embed .ct-tbl th,.ct-embed .ct-tbl td{margin:-1px 0 0 -1px}
.ct-embed .ct-tbl th{width:auto;white-space:normal}
.ct-embed .ct-err{margin:12px 0 0}
.ct-lead{color:var(--muted);font-size:14px;margin:-6px 0 14px}

/* the first party's standing signature, shown under the client's own */
.ct-first{text-align:center;border:1px solid var(--line);border-radius:16px;padding:12px 10px;margin:14px 0 4px;background:var(--lav-50)}
.ct-first span{display:block;font-size:13px;font-weight:600;color:var(--ink-2)}
.ct-first img{display:block;max-width:100%;height:84px;object-fit:contain;margin:6px auto}
.ct-first em{display:flex;align-items:center;justify-content:center;gap:6px;height:44px;font-style:normal;font-weight:600;color:var(--ok)}
.ct-first em .ico{width:18px;height:18px}
.ct-first b{display:block;font-size:13.5px;font-weight:500;border-top:1px solid var(--line);padding-top:8px}
.ct-first small{display:block;color:var(--muted);font-size:12.5px;margin-top:6px}
