/* ==========================================================================
   NAPISZ DO NAS — okno kontaktu (od 11.10.2026, notatki/napisz-do-nas.md)
   Rodzina malych okienek (dialog.css: dlg-ovl, dlg-modal, dlg-hd, dlg-btn...),
   tu tylko czesci wlasne, przedrostek „sup-”. Wariant 2 z mockupu: formularz,
   pod spodem link „Wolisz napisac mailem?”, ktory rozwija czesc mailowa
   (GMAIL / OUTLOOK / POCZTA w rzedzie + osobno KOPIUJ).
   ========================================================================== */

/* rodzaj wiadomosci: 3 przyciski z ikona */
.sup-kind { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sup-kind button {
  height: 40px; margin: 0; padding: 0 6px; border-radius: 10px; cursor: pointer;
  border: 1px solid #232a31; background: #0e1115; color: #c9d1d8;
  font-family: inherit; font-size: var(--fs-small); font-weight: 700; letter-spacing: 1px;
  display: flex; align-items: center; justify-content: center; gap: 7px; transition: 0.15s;
}
.sup-kind button i { color: var(--txt-dim); transition: 0.15s; }
.sup-kind button:hover, .sup-kind button:focus-visible { border-color: #33404a; color: #fff; outline: none; }
.sup-kind button.on { border-color: var(--accent); color: #fff; background: color-mix(in srgb, var(--accent) 10%, #0e1115); }
.sup-kind button.on i { color: var(--accent); }

/* opis: wieloliniowe pole w stylu .dlg-fld input */
.sup-area { position: relative; }
.sup-area textarea {
  display: block; width: 100%; min-height: 128px; resize: vertical; box-sizing: border-box;
  padding: 12px 14px 26px; margin: 0; border-radius: 10px;
  background: #050608; border: 1px solid #232a31; color: #fff;
  /* 16 px: mniej i iPhone powieksza strone przy wpisywaniu */
  font-family: inherit; font-size: var(--fs-lead); line-height: 1.45; text-align: left;
  outline: none; box-shadow: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.sup-area textarea::placeholder { color: #4f5962; }
/* fokus: kreska od srodka pod polem — motion.css E3 (animacje etap 2, 18.10.2026; dawna ramka zdjeta) */
.sup-cnt { position: absolute; right: 12px; bottom: 8px; font-size: var(--fs-tag); color: #4f5962; letter-spacing: 0.5px; pointer-events: none; }
/* ile brakuje do minimum 10 znakow (13.10.2026) — widoczniej niz zwykly licznik */
.sup-cnt.min { color: var(--accent); }

/* dolaczane dane techniczne i adres odpowiedzi */
.sup-tech { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #0a0c10; border: 1px solid #1a1f25; }
.sup-tech .dlg-lbl { margin: 0 0 4px; }
.sup-tech div { font-size: var(--fs-small); color: #aab3bc; line-height: 1.55; word-break: break-word; }
.sup-tech div span { color: #4f5962; margin: 0 1px 0 5px; }
.sup-reply { margin-top: 8px; font-size: var(--fs-small); color: var(--txt-dim); word-break: break-word; }
.sup-reply b { color: #c9d1d8; font-weight: 600; }
#contact-modal .dlg-err { margin: 0 16px 12px; }

/* link do czesci mailowej i sama czesc mailowa */
.sup-more {
  display: block; margin: 0 auto 16px; padding: 4px 8px; background: none; border: 0; cursor: pointer;
  color: var(--txt-dim); font-family: inherit; font-size: var(--fs-small);
  text-decoration: underline; text-underline-offset: 3px;
}
.sup-more:hover, .sup-more:focus-visible { color: #fff; outline: none; }
.sup-alt { margin: 0 16px 16px; padding-top: 12px; border-top: 1px solid #191c21; }
.sup-alt .dlg-lbl { text-align: center; margin-bottom: 8px; }
.sup-mails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sup-mails button {
  height: 36px; margin: 0; padding: 0 4px; border-radius: 9px; cursor: pointer;
  border: 1px solid #1d232a; background: #0a0c10; color: #aab3bc;
  font-family: inherit; font-size: var(--fs-tag); font-weight: 700; letter-spacing: 0.5px;
  display: flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; overflow: hidden; transition: 0.15s;
}
.sup-mails button:hover, .sup-mails button:focus-visible { border-color: #33404a; color: #fff; outline: none; }
.sup-mails button i { font-size: 12px; }
/* telefon: jeden szeroki OTWORZ POCZTE (mailto -> aplikacja pocztowa z gotowym mailem) */
.sup-mails.one { grid-template-columns: minmax(0, 1fr); }
.sup-mails.one button { height: 42px; font-size: var(--fs-small); letter-spacing: 1.5px; gap: 8px; }
.sup-mails.one button i { color: var(--accent); font-size: 14px; }
.sup-note { margin-top: 8px; text-align: center; font-size: var(--fs-tag); color: var(--txt-dim); line-height: 1.5; word-break: break-word; }
.sup-note b { color: var(--accent); font-weight: 700; }
.sup-copy { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #1d232a; }
.sup-copy .dlg-btn { width: 100%; height: 38px; font-size: var(--fs-tag); }
.sup-copy .dlg-btn.done { border-color: color-mix(in srgb, var(--accent) 50%, transparent); color: var(--accent); }

/* wyslane */
.sup-ok { text-align: center; padding: 10px 4px 4px; }
.sup-ok .sup-ic {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center;
  font-size: 22px; color: #000; background: var(--accent);
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 35%, transparent);
}
.sup-ok .dlg-txt { font-size: var(--fs-lead); }

/* przycisk w trakcie wysylania */
#contact-modal .dlg-btn .fa-spinner { animation: sup-spin 0.9s linear infinite; }
@keyframes sup-spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
  .sup-mails button { height: 40px; }
  .sup-area textarea { min-height: 110px; }
}
