/* =============================================================================
   SECTION — THE PAYMENT STEP (quote.html #pay)

   Its own file rather than more of quote.css, because this block is the one
   part of the site that will be touched by whoever wires Stripe up, and it is
   easier to hand somebody a file than a region of one.

   The ground is forest, not cream, for a reason: every other band on this page
   is somewhere you read or type, and this is the one where money moves. The
   change of ground is the signal that the page has changed job.

   NOTE ON THE CARD AREA. `.qt-card-mount` is an empty div that Stripe fills
   with its own iframe. Do not style its insides from here - you cannot reach
   across the frame boundary, and trying is how people end up re-implementing
   a card field in plain HTML, which is the thing that must never happen. The
   look of the Stripe fields is set by the appearance object in pay.js, which
   reads the same tokens this file does.
   ========================================================================== */
.qt-pay{
  background:var(--forest);
  color:var(--cream);
  padding-block:clamp(48px,5.4vw,88px);
}
.qt-pay-in{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:clamp(30px,3.4vw,60px);
  align-items:start;
}

/* ---- the explanation ---- */
.qt-kicker-light{color:var(--accent)}
.qt-pay-copy h2{
  margin:0;
  max-width:18ch;
  font-family:var(--font-display);
  font-size:clamp(27px,2.9vw,42px);
  line-height:var(--lh-snug);letter-spacing:-.015em;
  font-weight:var(--fw-medium);
  color:#fff;
  text-wrap:balance;
}
.qt-pay-copy > p{
  margin:clamp(14px,1.6vw,20px) 0 0;
  max-width:54ch;
  font-family:var(--font-body);
  font-size:15.5px;line-height:var(--lh-body);
  color:rgba(245,240,230,.86);
}
.qt-pay-points{
  list-style:none;
  margin:clamp(24px,2.8vw,38px) 0 0;padding:0;
  border-top:1px solid rgba(245,240,230,.2);
}
.qt-pay-points li{
  display:flex;align-items:flex-start;gap:13px;
  padding-block:clamp(13px,1.4vw,18px);
  border-bottom:1px solid rgba(245,240,230,.2);
}
.qt-pay-points svg{
  width:17px;height:17px;flex:0 0 auto;margin-top:3px;
  fill:none;stroke:var(--accent);stroke-width:2;
  stroke-linecap:round;stroke-linejoin:round;
}
.qt-pay-points b{
  display:block;
  font-family:var(--font-body);
  font-size:14px;font-weight:var(--fw-bold);color:#fff;
}
.qt-pay-points span{
  display:block;margin-top:4px;
  font-family:var(--font-body);
  font-size:13px;line-height:1.5;
  color:rgba(245,240,230,.8);
}
.qt-pay-help{
  margin:clamp(18px,2vw,26px) 0 0;
  max-width:52ch;
  font-family:var(--font-body);
  font-size:13.5px;line-height:1.55;
  color:rgba(245,240,230,.8);
}
.qt-pay-help a{color:var(--accent);border-bottom:1px solid rgba(183,200,150,.42)}

/* ---------------------------------------------------------------------------
   THE FORM PANEL
   Cream on forest, so it reads as a thing handed to you rather than part of
   the band. position:relative anchors nothing today, but Stripe's element
   positions its own overlays against the nearest positioned ancestor.
   --------------------------------------------------------------------------- */
.qt-payform{
  position:relative;
  background:var(--cream);
  color:var(--ink);
  border-radius:var(--r-card);
  padding:clamp(22px,2.6vw,38px);
}
.qt-payform-title{
  margin:0 0 clamp(18px,2vw,26px);
  padding-bottom:clamp(14px,1.6vw,20px);
  border-bottom:1px solid rgba(40,52,38,.16);
  font-family:var(--font-body);
  font-size:12px;font-weight:var(--fw-bold);
  letter-spacing:var(--track-kicker);text-transform:uppercase;
  color:var(--forest);
}

/* ---- deposit / balance ----
   Radios, styled as two plates. The native input stays in the DOM and keeps
   its focus ring: a custom control here would cost keyboard access on the one
   screen where getting it wrong is expensive.

   :has() does the selected state from the input itself rather than from a
   class, so the styling and the checked state cannot drift apart. */
.qt-portion{margin-bottom:clamp(16px,1.8vw,22px)}
.qt-portion-lbl{
  margin:0 0 var(--space-sm);
  font-family:var(--font-body);
  font-size:12px;font-weight:var(--fw-bold);
  letter-spacing:.04em;color:#2b3529;
}
.qt-opt{
  display:flex;align-items:flex-start;gap:12px;
  padding:14px 16px;
  border:1px solid rgba(40,52,38,.22);
  background:var(--white);
  cursor:pointer;
}
.qt-opt + .qt-opt{margin-top:10px}
.qt-opt input{
  width:18px;height:18px;flex:0 0 auto;margin:2px 0 0;
  accent-color:var(--rust-deep);
}
.qt-opt-t{
  display:block;
  font-family:var(--font-body);
  font-size:14.5px;font-weight:var(--fw-bold);color:var(--ink);
}
.qt-opt-a{
  display:block;margin-top:3px;
  font-family:var(--font-display);
  font-size:21px;font-weight:var(--fw-medium);
  color:var(--forest);
}
/* Before the owners' link fills it in, the slot says where the number comes
   from rather than showing a number nobody has confirmed. It is set in body
   type so it cannot be mistaken for a figure. */
.qt-opt-a:not([data-filled]){
  font-family:var(--font-body);
  font-size:13px;font-weight:var(--fw-regular);
  color:var(--ink-soft);
}
.qt-opt-n{
  display:block;margin-top:3px;
  font-family:var(--font-body);
  font-size:12.5px;color:var(--ink-soft);
}
.qt-opt:has(input:checked){
  border-color:var(--rust-deep);
  box-shadow:inset 0 0 0 1px var(--rust-deep);
  background:#fffdf9;
}
.qt-opt:has(input:focus-visible){
  outline:2px solid var(--rust-deep);
  outline-offset:2px;
}

/* ---- amount ---- */
.qt-amt{position:relative;display:flex;align-items:stretch}
.qt-amt-cur{
  display:grid;place-items:center;
  width:40px;flex:0 0 auto;
  border:1px solid rgba(40,52,38,.22);border-right:0;
  background:rgba(40,52,38,.05);
  font-family:var(--font-body);
  font-size:15px;font-weight:var(--fw-bold);color:var(--ink-soft);
}
.qt-amt input{flex:1 1 auto;min-width:0}

/* ---- the Stripe mount ---- */
.qt-card{
  margin-top:clamp(18px,2vw,26px);
  padding-top:clamp(16px,1.8vw,22px);
  border-top:1px solid rgba(40,52,38,.16);
}
.qt-card-lbl{
  margin:0 0 var(--space-sm);
  font-family:var(--font-body);
  font-size:12px;font-weight:var(--fw-bold);
  letter-spacing:.04em;color:#2b3529;
}
/* Empty until Stripe mounts, and it should not leave a hole in the layout
   while it is. min-height is roughly one Payment Element at its shortest. */
.qt-card-mount:not(:empty){min-height:220px}
.qt-card-off{
  margin:0;
  padding:13px 15px;
  border-left:3px solid var(--tan);
  background:rgba(194,161,123,.16);
  font-family:var(--font-body);
  font-size:13px;line-height:1.55;color:#4a4034;
}
.qt-card-off a{color:var(--rust-deep);text-decoration:underline;text-underline-offset:2px}

/* ---- submit ---- */
.btn.qt-pay-send{
  display:flex;align-items:center;justify-content:center;gap:12px;
  width:100%;min-height:56px;
  margin-top:clamp(18px,2vw,26px);
  background:var(--rust-deep);border-color:var(--rust-deep);color:#fff;
  cursor:pointer;
}
.btn.qt-pay-send svg{width:24px;height:9px;transition:transform .35s var(--ease-out)}
.btn.qt-pay-send[disabled]{
  opacity:1;                      /* a dimmed button reads as "loading" */
  cursor:not-allowed;
  background:rgba(40,52,38,.1);
  border-color:rgba(40,52,38,.2);
  /* NOT --ink-soft: measured 4.32:1 on this plate. A disabled control is
     exempt from the contrast rule, but this one carries the only sentence
     explaining why it is disabled, so it has to be readable. #4a5447 is
     5.79:1 and is the shade the cabin calendar already uses for the same
     job - a quiet state that still has to be read. */
  color:#4a5447;
}
.btn.qt-pay-send[disabled] svg{display:none}

.qt-pay-legal{
  display:flex;align-items:flex-start;gap:9px;
  margin:var(--space-md) 0 0;
  font-family:var(--font-body);
  font-size:12.5px;line-height:1.5;color:var(--ink-soft);
}
.qt-pay-legal svg{
  width:16px;height:16px;flex:0 0 auto;margin-top:1px;
  fill:none;stroke:var(--sage);stroke-width:1.6;
  stroke-linecap:round;stroke-linejoin:round;
}
.qt-payform .ct-status{color:var(--ink)}

@media (min-width:1040px){
  .qt-pay-in{grid-template-columns:minmax(0,1fr) minmax(360px,.95fr)}
}
@media (hover:hover) and (pointer:fine){
  .btn.qt-pay-send:not([disabled]):hover{background:#762e17;border-color:#762e17}
  .btn.qt-pay-send:not([disabled]):hover svg{transform:translateX(5px)}
  .qt-opt:hover{border-color:rgba(40,52,38,.42)}
  .qt-pay-help a:hover{border-bottom-color:currentColor}
}
@media (prefers-reduced-motion:reduce){
  .btn.qt-pay-send svg{transition:none}
  .btn.qt-pay-send:not([disabled]):hover svg{transform:none}
}
