/* Olona contact-form.css: the theme's contact form card on the Contact page (template-parts/contact/form.php).
   Loaded on that page only, right after contact.css, which already styles the card itself (.fcard, .fhead, .fh, .fsub,
   .factions, .fpriv). Ported from the form of the F10 design (F10-ContactHelp.dc.html, "write to us"). Every rule
   starts with .cf-page .cf-nf so it wins over the shared form rules of base.css (.pg input[type="text"], .pg select). */

@keyframes cf-pop{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes cf-tick{from{stroke-dashoffset:22}to{stroke-dashoffset:0}}

.cf-page .cf-nf{scroll-margin-top:24px}
.cf-page .cf-nf .cf-panel,.cf-page .cf-nf .cf-form-n{display:flex;flex-direction:column;gap:26px;min-width:0}
.cf-page .cf-nf .cf-form-n{position:relative}
.cf-page .cf-nf .fgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 20px}
.cf-page .cf-nf .field{display:flex;flex-direction:column;gap:8px;min-width:0}
.cf-page .cf-nf .field-w{grid-column:1 / -1}
.cf-page .cf-nf .flabel{display:flex;align-items:baseline;justify-content:space-between;gap:10px;font-family:var(--font-display);font-size:16px;font-weight:600;line-height:1.3;color:var(--ink)}
.cf-page .cf-nf .flabel small{font-family:var(--font-body);font-size:14px;font-weight:500;color:var(--muted)}
.cf-page .cf-nf .freq{margin-left:4px;color:var(--red-text)}

/* fields: the design's look (sand fill, grey ring, ink ring on focus, red ring when a fix is needed) */
.cf-page .cf-nf .finput{display:block;width:100%;min-height:56px;margin:0;padding:0 18px;border:0;border-radius:18px;background-color:var(--ground);box-shadow:inset 0 0 0 1.5px #808284;font-family:var(--font-body);font-size:16px;line-height:1.4;color:var(--ink);outline:none;transition:box-shadow .2s ease,background-color .2s ease}
.cf-page .cf-nf .finput::placeholder{color:var(--muted);opacity:1}
.cf-page .cf-nf .finput:hover{box-shadow:inset 0 0 0 1.5px var(--ink)}
.cf-page .cf-nf .finput:focus{background-color:#FFFFFF;box-shadow:inset 0 0 0 2px var(--ink)}
.cf-page .cf-nf .finput:focus-visible{outline:none}
.cf-page .cf-nf .finput[aria-invalid="true"]{background-color:#FFFFFF;box-shadow:inset 0 0 0 2px var(--red-text)}
.cf-page .cf-nf .fta{min-height:176px;padding:16px 18px;line-height:1.6;resize:vertical}
.cf-page .cf-nf .fsel{-webkit-appearance:none;appearance:none;padding-right:48px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23262527' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;background-size:18px 18px;cursor:pointer}
.cf-page .cf-nf .fsel:invalid{color:var(--muted)}
.cf-page .cf-nf .fsel option{color:var(--ink)}

/* under a field: the error line, and the character count of the message */
.cf-page .cf-nf .ffoot{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:20px}
.cf-page .cf-nf .ferr{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600;line-height:1.35;color:var(--red-text);animation:cf-pop .4s cubic-bezier(.2,.8,.2,1) both}
.cf-page .cf-nf .ferr svg{width:18px;height:18px;flex:none}
.cf-page .cf-nf .fcount{margin-left:auto;font-family:var(--font-display);font-size:14px;font-weight:600;color:var(--muted);white-space:nowrap}

/* the alert above the fields when a send did not work */
.cf-page .cf-nf .cf-alert{display:flex;align-items:flex-start;gap:12px;padding:16px 20px;border-radius:20px;background:var(--blush);color:var(--ink);font-size:16px;font-weight:600;line-height:1.5;animation:cf-pop .4s cubic-bezier(.2,.8,.2,1) both}
.cf-page .cf-nf .cf-alert svg{width:20px;height:20px;flex:none;margin-top:2px;color:var(--red-text)}
.cf-page .cf-nf .cf-alert:focus,.cf-page .cf-nf .fdone-h:focus{outline:none}

/* the honeypot: off screen, not display none (some bots skip hidden fields) */
.cf-page .cf-nf .cf-hp{position:absolute;left:-10000px;top:0;width:1px;height:1px;overflow:hidden}

/* sending */
.cf-page .cf-nf .btn[aria-disabled="true"]{opacity:.72;cursor:progress;transform:none;box-shadow:none}

/* thank you note */
.cf-page .cf-nf .fdone{display:flex;flex-direction:column;align-items:flex-start;gap:18px;padding:8px 0 4px;animation:cf-pop .6s cubic-bezier(.2,.8,.2,1) both}
.cf-page .cf-nf .done-i{position:relative;flex:none;width:96px;height:96px;margin:8px 0 6px 8px;border-radius:50%;background:var(--blush);color:var(--ink);display:flex;align-items:center;justify-content:center}
.cf-page .cf-nf .done-i .o{position:absolute;left:-8px;top:-8px;width:112px;height:112px}
.cf-page .cf-nf .done-i .i{width:40px;height:40px}
.cf-page .cf-nf .tick{stroke-dasharray:22;animation:cf-tick .7s cubic-bezier(.2,.7,.2,1) .25s both}
.cf-page .cf-nf .fdone-h{margin:0;font-family:var(--font-display);font-size:40px;font-weight:600;line-height:1.08;letter-spacing:-.02em;color:var(--ink)}
.cf-page .cf-nf .fdone-p{font-size:18px;line-height:1.6;color:var(--body);max-width:520px}

/* small phone (desktop rules first, then these, as in the kit; contact.css already handles .fcard and .factions) */
@media (max-width: 560px){
  .cf-page .cf-nf .fgrid{grid-template-columns:minmax(0,1fr) !important}
  .cf-page .cf-nf .fdone-h{font-size:32px !important}
}

/* Windows high contrast (forced colours) draws no box-shadow: give the fields a real border and the focus an outline */
@media (forced-colors: active){
  .cf-page .cf-nf .finput{border:1px solid CanvasText}
  .cf-page .cf-nf .finput:focus,.cf-page .cf-nf .finput:focus-visible{outline:2px solid Highlight;outline-offset:2px}
}
