/* =============================================================================
   The Brand Clan - BUILD MY SETUP
   Loaded by build-my-setup.html, after tbc-base.css and tbc-v4.css.

   The form is the page, so it borrows the homepage's chapter language: each
   part opens on a numbered hairline marker, fields are square with hairline
   borders on paper, and gold is reserved for the state that is chosen.
   ========================================================================== */

/* the base sheet lays every <form> out as a two-column grid for the contact
   block; this one manages its own rows */
.v4 #bmsForm{display:block;}

.v4 .bms-grid{display:grid;grid-template-columns:minmax(0,1.62fr) minmax(0,1fr);
  gap:clamp(30px,4.5vw,72px);align-items:start;}

/* ---------- a part of the form ------------------------------------------ */
.v4 .bms-sec{padding-bottom:clamp(30px,3.6vw,48px);}
.v4 .bms-sec + .bms-sec{padding-top:clamp(26px,3vw,40px);}
.v4 .bms-sec .marker{padding-bottom:clamp(16px,1.8vw,24px);}
.v4 .bms-sec .intro{font-size:15px;color:var(--body);margin-bottom:clamp(18px,2vw,26px);max-width:52ch;}

/* ---------- fields ------------------------------------------------------- */
.v4 .frow{display:grid;grid-template-columns:1fr 1fr;gap:clamp(14px,1.8vw,22px);margin-bottom:clamp(14px,1.8vw,22px);}
.v4 .frow.one{grid-template-columns:1fr;}
.v4 .frow:last-child{margin-bottom:0;}
.v4 .fld{min-width:0;}

/* Captions only. .upload and .later are direct children of .fld but they are
   CONTROLS, not captions, and this rule (0,2,1) was outranking their own rules
   (0,2,0): the checkbox read as a 10.5px letterspaced caps caption and the
   upload box's helper sentence came out in full caps. Same trap as the .btn
   and .p-fine regressions: a shared rule reaching further than it should. */
.v4 .fld > label:not(.upload):not(.later),
.v4 .fld .flabel{
  display:block;font-family:var(--text);font-size:10.5px;font-weight:700;letter-spacing:.2em;
  text-transform:uppercase;color:var(--ink);margin-bottom:9px;
}
.v4 .fld .hint{font-weight:500;letter-spacing:.06em;text-transform:none;color:var(--body);font-size:12px;}

.v4 .bms input[type=text],
.v4 .bms input[type=email],
.v4 .bms input[type=tel],
.v4 .bms input[type=date],
.v4 .bms textarea{
  width:100%;background:var(--paper-2);border:1px solid var(--rule);border-radius:0;
  padding:14px 16px;color:var(--ink);font-family:var(--text);font-size:15.5px;
  transition:border-color .22s ease,background .22s ease;
}
.v4 .bms input::placeholder,.v4 .bms textarea::placeholder{color:#9AA5AE;}
.v4 .bms input:focus,.v4 .bms textarea:focus{
  outline:none;border-color:var(--gold-dp);background:#fff;
}
.v4 .bms input.bad,.v4 .bms textarea.bad{border-color:#C0392B !important;background:#FCF4F3 !important;}
.v4 .bms .f-err{color:#C0392B;font-size:12.5px;margin-top:6px;display:block;}

/* ---------- chips: square, hairline, gold once chosen -------------------- */
.v4 .chips{display:flex;flex-wrap:wrap;gap:9px;}
.v4 .chips input{position:absolute;opacity:0;width:1px;height:1px;pointer-events:none;}
.v4 .chips label{
  display:inline-flex;align-items:center;cursor:pointer;
  padding:11px 17px;border:1px solid var(--rule);background:var(--paper-2);
  font-size:14px;font-weight:500;color:var(--ink);letter-spacing:0;text-transform:none;
  transition:border-color .2s ease,background .2s ease,color .2s ease;
}
.v4 .chips label:hover{border-color:var(--gold-dp);}
.v4 .chips input:checked + label{background:var(--gold);border-color:var(--gold-dp);color:var(--ink);font-weight:700;}
.v4 .chips input:focus-visible + label{outline:3px solid var(--gold-dp);outline-offset:2px;}

/* ---------- logo upload -------------------------------------------------- */
.v4 .upload{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;
  padding:clamp(24px,3vw,34px) 20px;text-align:center;cursor:pointer;
  border:1px dashed var(--rule);background:var(--paper-2);
  transition:border-color .22s ease,background .22s ease;
  /* base tbc-base.css has form label{text-transform:uppercase}, which the
     children inherit; this box holds a heading and a sentence, not a caption */
  text-transform:none;letter-spacing:0;font-weight:400;
}
.v4 .upload:hover{border-color:var(--gold-dp);background:#fff;}
/* once a file is chosen the box confirms it rather than still saying "choose" */
.v4 .upload.has-file{border-style:solid;border-color:var(--gold-dp);background:var(--gold-wash);}
.v4 .upload.has-file i::before{content:"\f00c";}   /* tick instead of the cloud */
.v4 .upload.has-file .t{word-break:break-word;}
.v4 .upload i{font-size:22px;color:var(--gold-dp);margin-bottom:4px;}
.v4 .upload .t{font-family:var(--display);font-size:19px;color:var(--ink);}
.v4 .upload .s{font-size:13px;color:var(--body);}
.v4 .upload input[type=file]{position:absolute;opacity:0;width:1px;height:1px;}

/* Every other choice in this form is a chip with a 47px target. This was the
   one bare native checkbox, at 17px in a 22px row, which is under the WCAG 2.2
   minimum of 24px and fiddly to hit on a phone. The label is the control, so
   the height goes on the label. */
.v4 .later{
  display:flex;align-items:center;gap:11px;margin-top:11px;min-height:44px;
  padding:6px 2px;align-self:flex-start;
  font-size:14px;color:var(--body);cursor:pointer;letter-spacing:0;text-transform:none;font-weight:500;
}
.v4 .later input{width:20px;height:20px;accent-color:var(--gold-dp);flex-shrink:0;margin:0;}

/* ---------- submit ------------------------------------------------------- */
.v4 .bms-send{display:flex;flex-wrap:wrap;gap:16px;align-items:center;
  padding-top:clamp(20px,2.4vw,30px);border-top:1px solid var(--rule);}
.v4 .bms-fine{font-size:13.5px;color:var(--body);max-width:42ch;}

/* ---------- sidebar ------------------------------------------------------ */
.v4 .bms-side{position:sticky;top:112px;display:flex;flex-direction:column;gap:clamp(18px,2vw,26px);}
.v4 .side-block{background:var(--paper-2);border:1px solid var(--rule);padding:clamp(22px,2.4vw,30px);}
.v4 .side-block h2{font-size:21px;margin-bottom:4px;}
.v4 .side-block > p{font-size:14.5px;margin-bottom:16px;}

.v4 .side-steps{list-style:none;display:flex;flex-direction:column;margin-top:16px;}
.v4 .side-steps li{display:grid;grid-template-columns:auto 1fr;gap:15px;align-items:baseline;
  padding:13px 0;border-top:1px solid var(--rule);}
.v4 .side-steps li:last-child{border-bottom:1px solid var(--rule);}
.v4 .side-steps .s{font-family:var(--display);font-size:13px;color:var(--gold-dp);}
.v4 .side-steps .b{color:var(--ink);font-size:15px;font-weight:600;}
.v4 .side-steps .b small{display:block;color:var(--body);font-weight:400;font-size:13.5px;
  margin-top:2px;line-height:1.5;}

.v4 .side-block.dark{background:var(--ink);border-color:var(--ink);}
.v4 .side-block.dark h2{color:#fff;}
.v4 .side-block.dark > p{color:#A9B7C1;}

@media(max-width:1020px){
  .v4 .bms-grid{grid-template-columns:1fr;}
  .v4 .bms-side{position:static;}
}
@media(max-width:640px){
  .v4 .frow{grid-template-columns:1fr;}
}
