/* Contact: the application form for Done for you [cream]. The intro on the left (sticky on desktops), the form
   in a white card on the right; one column on phones. While it sends the answers dim and the button turns; once
   it is received the confirmation (.cdone) takes the form's place; if it cannot be sent, .caf__status offers the
   email way. */
.capp { position: relative; overflow: hidden; padding: clamp(150px, 15vw, 190px) var(--gutter) var(--section-y); background: var(--cream); color: var(--ink); }
.capp__bloom {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(215, 55, 43, .1), transparent 70%);
}
.capp__grid { position: relative; display: grid; gap: clamp(36px, 5vw, 72px); align-items: start; }
@media (min-width: 960px) {
  .capp__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .capp__intro { position: sticky; top: 130px; }
}
.capp__intro { display: flex; flex-direction: column; gap: 20px; max-width: 520px; }
.capp__title { margin: 0; font-size: clamp(42px, 5.6vw, 76px); font-weight: 500; line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
.capp__lede { margin: 0; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; color: var(--body-on-light); text-wrap: pretty; }
.capp__direct { margin: 4px 0 0; font-size: 15px; color: var(--label-on-light); }
.capp__direct a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(215, 55, 43, .5); text-underline-offset: 3px; overflow-wrap: anywhere; }
.capp__direct a:hover { color: var(--red-deep); }
.capp__side { min-width: 0; }

.caf {
  display: flex; flex-direction: column; gap: 22px; min-width: 0; padding: clamp(22px, 3.4vw, 40px); border-radius: 28px; background: #fff;
  border: 1px solid rgba(20, 17, 16, .08); box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 40px 90px -50px rgba(20, 17, 16, .4);
}
.caf[hidden] { display: none; }
.caf__row { display: grid; gap: 22px; }
@media (min-width: 600px) { .caf__row { grid-template-columns: 1fr 1fr; } }
.caf__q { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.caf__label { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.caf__opt { margin-left: 6px; font: 500 10.5px 'Geist Mono', ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--label-on-light); }
.caf__input {
  width: 100%; min-height: 50px; padding: 13px 15px; border-radius: 14px; border: 1px solid rgba(20, 17, 16, .16); background: var(--paper);
  font: 400 16px/1.45 Geist, system-ui, -apple-system, sans-serif; color: var(--ink); transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.caf__input::placeholder { color: #9a9087; }
.caf__input:hover { border-color: rgba(20, 17, 16, .3); }
.caf__input:focus { outline: none; background: #fff; border-color: var(--red); box-shadow: 0 0 0 4px rgba(215, 55, 43, .14); }
.caf__area { resize: vertical; min-height: 116px; }
.caf__area--sm { min-height: 74px; }
.caf__q.is-bad .caf__input { border-color: var(--red); background: #fff6f4; }
.caf__err { margin: 0; min-height: 0; font-size: 13.5px; color: var(--red-deep); }
.caf__err:empty { display: none; }
.caf__send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding-top: 8px; border-top: 1px solid rgba(20, 17, 16, .08); }
.caf__send .caf__btn { margin-top: 14px; border: 0; cursor: pointer; font: inherit; }
.caf__fine { flex: 1 1 220px; margin: 14px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--label-on-light); }
.caf__status { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: 16px; background: #fff6f4; border: 1px solid rgba(215, 55, 43, .35); }
.caf__status[hidden] { display: none; }
.caf__status-t { margin: 0; font-weight: 600; color: var(--ink); }
.caf__status-d { margin: 0; font-size: 14.5px; color: var(--body-on-light); }
.caf__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.caf__copy {
  min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(20, 17, 16, .2); background: #fff; cursor: pointer;
  font: 500 14px Geist, system-ui, -apple-system, sans-serif; color: var(--ink); transition: border-color .25s var(--ease);
}
.caf__copy:hover { border-color: var(--ink); }
.caf__copy--main { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.caf__fine a { color: var(--ink); text-decoration: underline; text-decoration-color: rgba(215, 55, 43, .5); text-underline-offset: 3px; }
.caf__fine a:hover { color: var(--red-deep); }
/* the line under the button: with JavaScript the form sends by itself, without it the email app opens */
.js .caf__fine--nojs, html:not(.js) .caf__fine--js { display: none; }
/* the field no person sees: off the page, out of the tab order (apply.ts refuses an application that fills it) */
.caf__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* While it sends */
.caf.is-sending .caf__q { opacity: .55; }
.caf.is-sending .caf__btn { cursor: default; animation: none; background: var(--red-dark); box-shadow: none; transform: none; }
.caf.is-sending .caf__btn .cta-spin__inner { background: var(--red-dark); }
.caf__ring { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: caf-turn .8s linear infinite; }
.caf__ring[hidden] { display: none; }
@keyframes caf-turn { to { transform: rotate(360deg); } }

/* Received: the confirmation in the form's place */
.cdone {
  display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: clamp(24px, 4vw, 48px); border-radius: 28px; background: #fff;
  border: 1px solid rgba(20, 17, 16, .08); box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 40px 90px -50px rgba(20, 17, 16, .4);
}
.cdone[hidden] { display: none; }
.cdone:focus { outline: none; }
.cdone__mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #e9f8ee; border: 1px solid rgba(42, 122, 74, .3); }
.cdone__mark svg { width: 26px; height: 26px; fill: none; stroke: #2a7a4a; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.cdone__title { margin: 0; font-size: clamp(26px, 3vw, 38px); font-weight: 500; line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; color: var(--ink); }
.cdone__p { margin: 0; max-width: 46ch; font-size: clamp(16px, 1.4vw, 17px); line-height: 1.55; color: var(--body-on-light); }
.cdone__to { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border-radius: 16px; background: var(--paper); border: 1px solid rgba(20, 17, 16, .1); }
.cdone__to-k { font: 500 10.5px 'Geist Mono', ui-monospace, monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--label-on-light); }
.cdone__to-v { font-size: 17px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.cdone__to-d { font-size: 14px; line-height: 1.5; color: var(--label-on-light); }
.cdone__to-d a { color: var(--ink); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(215, 55, 43, .5); text-underline-offset: 3px; overflow-wrap: anywhere; }
.cdone__to-d a:hover { color: var(--red-deep); }
.cdone__keep { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-top: 18px; border-top: 1px solid rgba(20, 17, 16, .08); font-size: 14.5px; color: var(--body-on-light); }
@media (prefers-reduced-motion: reduce) { .caf__input, .caf__copy { transition: none; } .caf__ring { animation: none; } }
