/* The share form's video or picture and its "may the team get back to me" (templates/share-media.php,
   templates/share-contact.php; behaviour in share-form.js). The rest of the form: overlays.css. */

.cil-st-drop[hidden], .cil-st-file[hidden], .cil-st-file [hidden] { display: none; }

/* Read by the keyboard and screen readers, out of sight: the file input and the choices' radios. */
.cil-st .cil-st-field :is(.cil-st-drop__input, .cil-st-choice input) {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; border: 0; clip-path: inset(50%); white-space: nowrap; opacity: 0;
}

/* ---- The file ---- */
/* The place to drop it: a dashed box, the whole of it a way to "בחירת קובץ" (its ::after covers the box). */
.cil-st-drop {
    position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 72px; padding: 14px 18px;
    border: 1.5px dashed var(--cil-black-light-4); border-radius: 10px; background: var(--st-surface); color: var(--cil-black-regular-7); font-size: 16px; line-height: 1.3; text-align: center;
}
.cil-st-drop__icon { flex: none; color: var(--cil-blue-dark-1); }
.cil-st-drop__words { display: inline-flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px; }
.cil-st .cil-st-field .cil-st-drop__choose { color: var(--cil-blue-dark-1); font-size: 16px; font-weight: 700; cursor: pointer; }
.cil-st-drop__choose::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
/* Hover, keyboard focus and a file dragged over (Oren 2026-10-15, item 50): nothing inside moves or recolours --
   a broken outline is drawn round the whole box, just outside its edge, swept in from the reading start. */
.cil-st-drop::before {
    content: ""; position: absolute; inset: -6px; border: 2px dashed var(--cil-blue-dark-1); border-radius: 15px; pointer-events: none;
    /* Drawn from the middle out to both sides at once (Oren 2026-10-15), the same in either direction. */
    clip-path: inset(0 50%); transition: clip-path .35s var(--st-ease);
}
.cil-st-drop:is(:hover, .is-over, :has(.cil-st-drop__input:focus-visible))::before { clip-path: inset(0); }
/* Dragged over: the same outline, a shade stronger. */
.cil-st-drop.is-over::before { border-color: var(--cil-blue-dark-3); border-width: 2.5px; }
.cil-st-drop:has(.cil-st-drop__input[aria-invalid="true"]) { border: 2px solid var(--cil-red-regular-5); }

/* Chosen: its name (cut with "…" when long), its size, and "הסרת הקובץ" -- or, while sending, the upload's progress. */
.cil-st-file { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border: 1px solid var(--cil-black-light-4); border-radius: 10px; background: var(--cil-white); }
.cil-st-file__icon { flex: none; color: var(--cil-blue-dark-1); }
.cil-st-file__words { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.25; }
.cil-st-file__name { overflow: hidden; font-size: 16px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.cil-st-file__size { color: var(--cil-black-regular-7); font-size: 14px; }
.cil-st .cil-st-file__remove {
    flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: none;
    color: var(--cil-black); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.cil-st .cil-st-file__remove img { transition: transform .3s var(--st-ease); }
.cil-st .cil-st-file__remove:is(:hover, :focus-visible) { background: none; color: var(--cil-black); }
.cil-st .cil-st-file__remove:is(:hover, :focus-visible) img { transform: rotate(90deg); }
.cil-st .cil-st-file__remove:focus-visible { outline: 2px solid var(--cil-blue-dark-1); outline-offset: 2px; }
.cil-st-file__progress { flex: none; display: inline-flex; align-items: center; gap: 8px; color: var(--cil-black-regular-7); font-size: 14px; font-variant-numeric: tabular-nums; }
.cil-st-file__progress progress { width: 112px; height: 6px; overflow: hidden; border: 0; border-radius: 3px; background: var(--cil-black-light-3); appearance: none; }
.cil-st-file__progress progress::-webkit-progress-bar { background: var(--cil-black-light-3); }
.cil-st-file__progress progress::-webkit-progress-value { background: var(--cil-blue-dark-1); transition: width .2s linear; }
.cil-st-file__progress progress::-moz-progress-bar { background: var(--cil-blue-dark-1); }

/* ---- Getting back in touch ---- */
.cil-st-form fieldset.cil-st-contact { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.cil-st-contact__question { margin-bottom: 8px; padding: 0; font-size: 16px; font-weight: 700; line-height: 1.2; }
/* The choices: the stories filters' pills (stories.css), the chosen one filled; the change happens in place. */
.cil-st-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.cil-st-choice { position: relative; display: inline-flex; }
.cil-st-choice__words {
    padding: 8px 18px; border: 1px solid var(--cil-black-light-3); border-radius: 20px; background: var(--cil-white); color: var(--cil-black);
    font-size: 14px; font-weight: 600; line-height: 1.2; cursor: pointer; transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.cil-st-choice:hover .cil-st-choice__words { border-color: var(--cil-blue-dark-1); }
.cil-st-choice input:checked + .cil-st-choice__words { border-color: var(--cil-blue-dark-1); background: var(--cil-blue-dark-1); color: var(--cil-white); font-weight: 700; animation: cil-st-press .3s var(--st-ease); }
.cil-st-choice input:focus-visible + .cil-st-choice__words { outline: 2px solid var(--cil-blue-dark-1); outline-offset: 2px; }
/* The email and phone rows (Oren 2026-10-15, item 50): each opens on a 0fr -> 1fr row with a fade and a slight
   rise, and closes the same way, so what is below glides rather than jumps. The space above a row is inside it. */
.cil-st-contact__details { display: flex; flex-direction: column; }
.cil-st-reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transform: translateY(-4px); transition: grid-template-rows .25s var(--st-ease), opacity .25s var(--st-ease), transform .25s var(--st-ease); }
.cil-st-reveal.is-open { grid-template-rows: 1fr; opacity: 1; transform: none; }
/* Clipped while it moves; the focus outline's few pixels round the field stay drawn. */
.cil-st-reveal__inner { min-height: 0; overflow: clip; overflow-clip-margin: 6px; }
.cil-st-reveal .cil-st-field { padding-top: 12px; }
/* Phones have nothing to drag from: only "בחירת קובץ" is said. */
@media (hover: none) {
    .cil-st-drop__drag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .cil-st-drop::before, .cil-st .cil-st-file__remove img, .cil-st-choice__words, .cil-st-reveal { transition: none; }
    .cil-st-reveal { transform: none; }
    .cil-st-choice input:checked + .cil-st-choice__words { animation: none; }
}
