/* The order form and the customer's page of hindsight-360.com, built for a phone first. The colours, the type and
   the buttons are site.css's tokens and classes (--hs-*, .hs-button, .hs-card); this file adds the form's boxes,
   the day chips, the steps and the money table. */
.hp { background: var(--hs-ground, #F6F6F5); }
.hp-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 560px; margin: 0 auto;
          padding: 16px clamp(16px, 5vw, 24px) 4px; }
.hp-logo img { display: block; height: 40px; width: auto; }
.hp-phone { font-weight: 500; color: var(--hs-text, #434342); text-decoration: none; white-space: nowrap; }
.hp-phone:hover { text-decoration: underline; }
.hp-wrap { max-width: 560px; margin: 0 auto; padding: 12px clamp(16px, 5vw, 24px) 48px; color: var(--hs-text, #434342); }
.hp-wrap h1, .hp-wrap .hp-h1 { font-size: clamp(28px, 7vw, 34px); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em;
                               margin: 0 0 8px; color: var(--hs-text, #434342); overflow-wrap: anywhere; }
.hp-wrap h1:focus, .hp-wrap h2:focus { outline: none; }
.hp-wrap h2 { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 8px; }
.hp-wrap p { margin: 0 0 12px; line-height: 1.45; }
.hp-wrap a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.hp-wrap a.hs-button { text-decoration: none; }
.hp-lead { font-size: 16px; font-weight: 300; }
.hp-eyebrow { font-size: 14px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; color: var(--hs-muted, #5C5B59); margin: 0 0 6px; }
.hp-sub { color: var(--hs-muted, #5C5B59); }
.hp-fine { font-size: 14px; color: var(--hs-muted, #5C5B59); }
.hp-note { font-size: 14px; font-weight: 300; color: var(--hs-muted, #5C5B59); }

/* ---- the form */
.hp-form fieldset { border: 0; padding: 0; margin: 0 0 40px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.hp-form fieldset > * { margin-top: 0; margin-bottom: 0; }
.hp-form.is-js .hp-step { display: none; margin-bottom: 0; }
.hp-form.is-js .hp-step.is-on { display: flex; }
.hp-form:not(.is-js) [data-next], .hp-form:not(.is-js) [data-back] { display: none; }
.hp-leave { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hp-count { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--hs-muted, #5C5B59); }
.hp-bars { display: inline-flex; gap: 5px; }
.hp-bars i { width: 26px; height: 5px; border-radius: 3px; background: #D9D6CF; }
.hp-bars i.on { background: var(--hs-gold, #E3A72B); }
.hp-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hp-field label, .hp-label, .hp-move label { font-size: 15px; font-weight: 500; }
.hp-optional { font-weight: 300; color: var(--hs-muted, #5C5B59); }
.hp-wrap input[type=text], .hp-wrap input[type=email], .hp-wrap input[type=tel], .hp-wrap input[type=date], .hp-wrap textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; font: inherit; font-size: 17px; color: var(--hs-ink, #2B2B2A);
  background: #fff; border: 1.5px solid var(--hs-line, #CFCCC5); border-radius: 12px; -webkit-appearance: none; appearance: none; }
.hp-wrap textarea { min-height: 0; resize: vertical; line-height: 1.4; }
.hp-wrap input:focus-visible, .hp-wrap textarea:focus-visible, .hp-wrap button:focus-visible, .hp-wrap a:focus-visible,
.hp-chip input:focus-visible + span, .hp-day input:focus-visible + span, .hp-wrap summary:focus-visible {
  outline: 3px solid var(--hs-ink, #2B2B2A); outline-offset: 2px; }
.hp-field.has-error input, .hp-field.has-error textarea { border-color: #B3261E; }
.hp-error { color: #B3261E; font-size: 14px; font-weight: 500; }
.hp-alert { padding: 12px 16px; border-radius: 12px; background: #FCEEEC; color: #8C1D18; font-weight: 500; }
.hp-help { font-size: 14px; font-weight: 300; color: var(--hs-muted, #5C5B59); }
.hp-unit { position: relative; }
.hp-unit input { padding-right: 56px; }
.hp-unit span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 17px; color: var(--hs-muted, #5C5B59); }
.hp-area { font-size: 14px; color: var(--hs-muted, #5C5B59); padding-left: 26px; position: relative; }
.hp-area::before { content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; background: #D9D6CF; }
.hp-area.is-in::before { background: var(--hs-gold, #E3A72B) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%232B2B2A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px; }
.hp-area.is-out { color: #7A4B00; }
.hp-area.is-out::before { background: #F3D9A4; }

/* chips: a choice of one (what is being built, the time of day) */
.hp-chips { display: grid; gap: 8px; }
.hp-chips.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hp-chips.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hp-chip, .hp-day { position: relative; display: block; cursor: pointer; }
.hp-chip input, .hp-day input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.hp-chip span { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 6px 10px; text-align: center;
                font-size: 16px; line-height: 1.2; background: #fff; border: 1.5px solid var(--hs-line, #CFCCC5); border-radius: 23px; }
.hp-chip input:checked + span { background: var(--hs-gold, #E3A72B); border-color: var(--hs-gold, #E3A72B); color: var(--hs-ink, #2B2B2A); font-weight: 600; }
/* the days offered: every one that works is ticked */
.hp-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-bottom: 4px; }
.hp-day[hidden] { display: none; }
.hp-day span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 68px; padding: 6px 2px;
               background: #fff; border: 1.5px solid var(--hs-line, #CFCCC5); border-radius: 14px; }
.hp-day small { font-size: 12px; color: var(--hs-muted, #5C5B59); }
.hp-day b { font-size: 20px; font-weight: 600; line-height: 1.1; }
.hp-day input:checked + span { background: var(--hs-gold, #E3A72B); border-color: var(--hs-gold, #E3A72B); }
.hp-day input:checked + span small { color: var(--hs-ink, #2B2B2A); }
.hp-check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 400; cursor: pointer; }
.hp-check input { width: 22px; height: 22px; margin: 0; accent-color: var(--hs-gold, #E3A72B); flex: none; }

.hp-estimate { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-radius: 16px;
               background: var(--hs-dark, #2B2B2A); color: var(--hs-dark-muted, #C9C6BF); }
.hp-estimate div { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: 13px; line-height: 1.4; font-weight: 300; }
.hp-estimate b { font-size: 15px; font-weight: 500; color: var(--hs-dark-ink, #EDEBE6); }
.hp-estimate strong { font-size: 40px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; color: var(--hs-gold, #E3A72B); white-space: nowrap; }
.hp-tint { padding: 16px 18px; border-radius: 16px; background: #FBF1DA; color: var(--hs-ink, #2B2B2A); font-size: 15px; }
.hp-tint p { margin: 0 0 8px; }
.hp-tint p:last-child { margin: 0; }
.hp-before { background: #fff; border: 1.5px dashed var(--hs-gold, #E3A72B); }
.hp-summary { font-size: 14px; color: var(--hs-muted, #5C5B59); border-top: 1px solid var(--hs-line-soft, #E6E3DD); padding-top: 14px; }
.hp-summary p { margin: 0 0 4px; overflow-wrap: anywhere; }
.hp-buttons { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 10px; }
.hp-next, .hp-buttons .hs-button, .hp-wide { width: 100%; min-height: 56px; font-size: 18px; }
.hp-form .hp-fine { text-align: center; }

/* ---- the customer's page */
.hp-scan { display: flex; flex-direction: column; gap: 16px; }
.hp-scan > * { margin-top: 0; margin-bottom: 0; }
.hp-scan > h1 { margin-bottom: -8px; }
.hp-scan > .hp-eyebrow { margin-bottom: -10px; }
.hp-card { padding: 20px; }
.hp-card > :last-child { margin-bottom: 0; }
.hp-big { font-size: clamp(26px, 6.5vw, 32px) !important; }
.hp-said { padding: 12px 16px; border-radius: 12px; background: #E9F3E6; color: #1E4D17; font-weight: 500; }
.hp-said.warn { background: #FBF1DA; color: #5C3A00; }
.hp-deposit { padding: 10px 14px; border-radius: 12px; background: #FBF1DA; color: var(--hs-ink, #2B2B2A); font-size: 15px; }
.hp-deposit.is-in { background: #E9F3E6; color: #1E4D17; }
.hp-pill { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--hs-dark, #2B2B2A); color: var(--hs-dark-ink, #EDEBE6); font-size: 14px; font-weight: 500; }
.hp-facts { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.hp-facts p { margin: 0; }
.hp-lock { display: flex; align-items: center; gap: 8px; font-weight: 500; color: #7A4B00; }
.hp-move { margin-top: 4px; }
.hp-move summary { cursor: pointer; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; padding: 6px 0; width: fit-content; }
.hp-move form, #write form { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin: 10px 0 12px; }
.hp-move form.hp-cancel { border-top: 1px solid var(--hs-line-soft, #E6E3DD); padding-top: 12px; }
.hp-linklike { background: none; border: 0; padding: 4px 0; font: inherit; color: #8C1D18; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
/* the five steps */
.hp-steps { list-style: none; margin: 0; padding: 4px 4px 4px 6px; display: flex; flex-direction: column; }
.hp-steps li { position: relative; display: flex; align-items: baseline; gap: 12px; padding: 0 0 18px 30px; min-height: 40px; color: var(--hs-muted, #5C5B59); }
.hp-steps li:last-child { padding-bottom: 0; min-height: 0; }
.hp-steps li::before { content: ""; position: absolute; left: 8px; top: 20px; bottom: -2px; width: 2px; background: #D9D6CF; }
.hp-steps li:last-child::before { display: none; }
.hp-steps li.is-done::before { background: var(--hs-gold, #E3A72B); }
.hp-dot { position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--hs-ground, #F6F6F5); border: 2px dashed #B9B5AC; }
.hp-steps li.is-done .hp-dot { background: var(--hs-gold, #E3A72B); border: 2px solid var(--hs-gold, #E3A72B); }
.hp-steps li.is-now .hp-dot { background: #fff; border: 2px solid var(--hs-gold, #E3A72B); box-shadow: 0 0 0 4px rgba(227, 167, 43, .25); }
.hp-steps li.is-done, .hp-steps li.is-now { color: var(--hs-text, #434342); }
.hp-steps li.is-now .hp-step-words { font-weight: 600; }
.hp-step-note { margin-left: auto; font-size: 14px; color: var(--hs-muted, #5C5B59); white-space: nowrap; }
/* what it costs */
.hp-money { width: 100%; border-collapse: collapse; margin: 4px 0 16px; }
.hp-money th, .hp-money td { padding: 9px 0; border-bottom: 1px solid var(--hs-line-soft, #E6E3DD); font-weight: 400; text-align: left; vertical-align: top; }
.hp-money td { text-align: right; white-space: nowrap; padding-left: 12px; font-variant-numeric: tabular-nums; }
.hp-money tr.total th, .hp-money tr.total td { border-bottom: 0; border-top: 2px solid var(--hs-ink, #2B2B2A); font-weight: 600; font-size: 18px; }
.hp-said-list { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hp-said-list li { padding: 10px 14px; border-radius: 12px; background: var(--hs-ground, #F6F6F5); overflow-wrap: anywhere; }
.hp-said-list p { margin: 0 0 4px; }
.hp-us { padding-left: 12px; border-left: 3px solid var(--hs-gold, #E3A72B); }
.hp-foot { max-width: 560px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 24px) 32px; font-size: 13px; color: var(--hs-muted, #5C5B59); }
.hp-foot a { color: inherit; }
.hs-terms h2 { margin-top: 28px; scroll-margin-top: 16px; }
.hs-terms ul { margin: 0 0 14px; padding-left: 22px; font-weight: 300; line-height: 1.55; }
.hs-terms li { margin: 0 0 8px; }
.hs-terms li b { font-weight: 600; }

/* ---- who pays, the client's page, the link to share (the plan's decision 11) */
.hp [hidden] { display: none !important; }
.hp-options { display: flex; flex-direction: column; gap: 8px; }
.hp-option { position: relative; display: block; cursor: pointer; }
.hp-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.hp-option span { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; background: #fff;
                  border: 1.5px solid var(--hs-line, #CFCCC5); border-radius: 14px; }
.hp-option b { font-weight: 500; color: var(--hs-ink, #2B2B2A); }
.hp-option small { font-size: 14px; font-weight: 300; color: var(--hs-muted, #5C5B59); }
.hp-option input:checked + span { border-color: var(--hs-ink, #2B2B2A); box-shadow: inset 0 0 0 1px var(--hs-ink, #2B2B2A); background: #FBF1DA; }
.hp-option input:focus-visible + span { outline: 3px solid var(--hs-ink, #2B2B2A); outline-offset: 2px; }
.hp-client { display: flex; flex-direction: column; gap: 16px; padding: 16px; border-radius: 16px; background: #fff;
             border: 1px solid var(--hs-line-soft, #E6E3DD); }
.hp-client > * { margin: 0; }
.hp-as { padding: 12px 16px; border-radius: 12px; background: #fff; border: 1px solid var(--hs-line-soft, #E6E3DD); font-size: 15px; }
.hp-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.hp-row form { margin: 0; }
.hp-card form + form, .hp-card form + .hp-fine { margin-top: 12px; }
.hp-copy { display: flex; gap: 8px; min-width: 0; }
.hp-wrap .hp-copy input { flex: 1 1 auto; min-width: 0; font-size: 15px; background: var(--hs-ground, #F6F6F5); }
.hp-copy .hs-button { flex: none; }
.hp-agree, .hp-client-form { display: flex; flex-direction: column; gap: 14px; }
.hp-check span { line-height: 1.35; }
.hp-back { margin: 0 0 10px; font-size: 15px; }
.hp-card .hp-said { margin-bottom: 12px; }

/* ---- the account: your projects (wider than the phone pages, a table that stacks on a phone) */
.ha-wrap, .ha-page .hp-top { max-width: 1100px; }
.ha-page .hp-top { width: 100%; box-sizing: border-box; }
.ha-head { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.ha-head > div > * { margin-bottom: 4px; }
.ha-group { background: #fff; border: 1px solid var(--hs-line-soft, #E6E3DD); border-radius: 16px; padding: 8px 8px 4px; margin: 0 0 18px; }
.ha-group summary { list-style: none; cursor: pointer; }
.ha-group summary::-webkit-details-marker { display: none; }
.hp-wrap .ha-group-head { display: flex; align-items: center; gap: 10px; margin: 8px 12px; font-size: 16px; }
.ha-tag { padding: 2px 12px; border-radius: 999px; background: #E6E3DD; color: var(--hs-ink, #2B2B2A); font-weight: 600; }
.ha-tag.ha-waiting { background: #FBF1DA; color: #6B4A08; }
.ha-tag.ha-day_set { background: var(--hs-ink, #2B2B2A); color: #EDEBE6; }
.ha-tag.ha-open { background: #E3F0E0; color: #1E4D17; }
.ha-tag.ha-cancelled, .ha-tag.ha-hold { background: #F1EFEA; color: var(--hs-muted, #5C5B59); }
.ha-table { width: 100%; border-collapse: collapse; font-size: 15px; table-layout: fixed; }
.ha-table th:nth-child(1) { width: 28%; } .ha-table th:nth-child(2) { width: 22%; } .ha-table th:nth-child(3) { width: 20%; }
.ha-table th:nth-child(4) { width: 20%; }
.ha-table th { text-align: left; font-size: 13px; font-weight: 500; color: var(--hs-muted, #5C5B59); padding: 8px 12px;
               border-bottom: 1px solid var(--hs-rule, #DAD7D0); }
.ha-table td { padding: 12px; border-bottom: 1px solid var(--hs-line-soft, #E6E3DD); vertical-align: middle; overflow-wrap: anywhere; }
.ha-table tr:last-child td { border-bottom: 0; }
.ha-table td a { font-weight: 500; }
.ha-inline { display: inline; margin: 0 0 0 8px; }
.hp-wrap .ha-small { min-height: 36px; padding: 4px 14px; font-size: 14px; }
.ha-box { background: #fff; border: 1px solid var(--hs-line-soft, #E6E3DD); border-radius: 16px; padding: 20px 24px; margin: 0 0 18px; }
.ha-box h2 { font-size: 18px; }
.ha-people { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.ha-add { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.ha-add .hp-field { margin: 0; }
.ha-out { margin-top: 8px; }
@media (max-width: 720px) {
  .ha-table thead { display: none; }
  .ha-table, .ha-table tbody, .ha-table tr, .ha-table td { display: block; width: 100%; box-sizing: border-box; }
  .ha-table tr { padding: 10px 4px; border-bottom: 1px solid var(--hs-line-soft, #E6E3DD); }
  .ha-table tr:last-child { border-bottom: 0; }
  .ha-table td { display: flex; gap: 12px; justify-content: space-between; align-items: center; padding: 4px 8px; border: 0; text-align: right; }
  .ha-table td::before { content: attr(data-label); color: var(--hs-muted, #5C5B59); font-size: 13px; text-align: left; flex: none; }
  .ha-table td:first-child { font-size: 16px; text-align: left; }
  .ha-table td:first-child::before { display: none; }
  .ha-add { grid-template-columns: minmax(0, 1fr); }
}
