/* Contact form and consent banner, in the Covelli design system. */
.cf { display: grid; gap: 1.1rem; font-family: var(--wp--preset--font-family--body, system-ui); }
.cf legend { font-family: var(--wp--preset--font-family--mono, monospace); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #1e4d5c; margin-bottom: .6rem; }
/* Two steps: who is writing, then the details. The step counter sits above the question. */
.cf-step { border: 0; padding: 0; margin: 0; display: grid; gap: 1.1rem; min-width: 0; }
.cf-of { display: block; font-family: var(--wp--preset--font-family--mono, monospace); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: #6d7a82; margin-bottom: .35rem; }
.cf-hint { margin: -.7rem 0 0; font-size: .88rem; color: #4f5b64; }
.cf .cf-err-type { margin: -.6rem 0 0; font-size: .9rem; color: #8a2b1f; }
.cf-nav { margin: 0; }
/* What was chosen in step 1, and the way back to it. */
.cf-chosen { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; margin: 0; padding-bottom: 1rem; border-bottom: 1px solid #e3ddd1; }
.cf-chosen .cf-of { flex-basis: 100%; margin: 0; }
.cf-chosen-v { font-weight: 600; color: #0d2437; }
.cf-back { background: 0; border: 0; padding: 0; font: inherit; font-size: .88rem; color: #1e4d5c; text-decoration: underline; cursor: pointer; }
.cf-back:hover { color: #0d2437; }
.cf-types { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .5rem; }
/* The .cf prefix is needed: ".cf label" is more specific than ".cf-type" and would stack the card. */
.cf .cf-type { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem .9rem; border: 1px solid #d8d2c5; background: #fff; cursor: pointer; font-size: .95rem; line-height: 1.35; }
.cf .cf-type:has(input:checked) { border-color: #0d2437; box-shadow: inset 0 0 0 1px #0d2437; }
.cf .cf-type:has(input:focus-visible) { outline: 2px solid #1e4d5c; outline-offset: 1px; }
.cf .cf-type svg { flex: none; width: 22px; height: 22px; color: #1e4d5c; }
.cf .cf-type .cf-type-txt { display: grid; gap: .15rem; }
.cf .cf-type .cf-type-txt span { font-size: .86rem; color: #4f5b64; }
.cf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (max-width: 640px) { .cf-grid { grid-template-columns: 1fr; } }
.cf label { display: grid; gap: .35rem; font-size: .9rem; color: #10202b; }
.cf input:not([type=checkbox]):not([type=radio]), .cf select, .cf textarea { font: inherit; font-size: 1rem; padding: .75rem .85rem; border: 1px solid #b9b2a3; border-radius: 2px; background: #fff; color: #10202b; width: 100%; box-sizing: border-box; }
.cf input:focus-visible, .cf select:focus-visible, .cf textarea:focus-visible { outline: 2px solid #1e4d5c; outline-offset: 1px; }
.cf .cf-check { display: flex; gap: .6rem; align-items: flex-start; font-size: .88rem; color: #4f5b64; }
.cf .cf-check input, .cf-type input { width: 22px; height: 22px; flex: none; margin: 0; accent-color: #0d2437; }
.cf [aria-invalid="true"] { border-color: #b3261e !important; box-shadow: 0 0 0 2px rgba(179, 38, 30, .18); }
.cf .cf-err { margin: -.6rem 0 0; font-size: .85rem; color: #8a2b1f; }
.cf .cf-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf [hidden] { display: none !important; }
.cf-submit { justify-self: start; background: #0d2437; color: #fff; border: 0; border-radius: 2px; padding: 1rem 1.7rem; font-family: var(--wp--preset--font-family--mono, monospace); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.cf-submit:hover { background: #1e4d5c; } .cf-submit:disabled { opacity: .6; cursor: progress; }
.cf-status { min-height: 1.4em; margin: 0; } .cf-status.ok { color: #1f5130; } .cf-status.error { color: #8a2b1f; }

.cc-banner { position: fixed; z-index: 9999; left: 1rem; right: 1rem; bottom: 1rem; display: flex; justify-content: center; }
.cc-banner[hidden] { display: none; }
.cc-inner { max-width: 760px; width: 100%; background: #0d2437; color: #f6f3ec; padding: 1.4rem 1.5rem; box-shadow: 0 20px 60px rgba(0,0,0,.35); font-family: var(--wp--preset--font-family--body, system-ui); font-size: .92rem; line-height: 1.5; }
.cc-title { font-family: var(--wp--preset--font-family--mono, monospace); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: #cdb894; margin: 0 0 .5rem; }
.cc-text { margin: 0 0 1rem; } .cc-text a { color: #cdb894; }
.cc-options { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; } .cc-options[hidden] { display: none; }
.cc-actions { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.cc-btn { background: #f6f3ec; color: #0d2437; border: 1px solid #f6f3ec; border-radius: 2px; padding: .7rem 1.1rem; font-family: var(--wp--preset--font-family--mono, monospace); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.cc-btn.cc-ghost { background: transparent; color: #f6f3ec; border-color: rgba(246,243,236,.5); }
.cc-btn[hidden] { display: none; }
/* On phones the banner takes one strip at the bottom, not the whole opening picture. */
@media (max-width: 640px) {
  .cc-banner { left: .5rem; right: .5rem; bottom: .5rem; }
  .cc-inner { padding: .9rem 1rem; font-size: .85rem; line-height: 1.4; border-radius: 12px; }
  .cc-text { margin-bottom: .6rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .cc-actions { gap: .4rem; } .cc-actions .cc-btn { padding: .55rem .8rem; font-size: .85rem; }
}
