/* Compact greeting form, following the template reference layout. */
.video-greeting-panel[hidden],
.video-greeting-file[hidden] { display: none; }
.video-greeting-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
  color: var(--text);
}
.video-greeting-note {
  max-width: 285px;
  margin: 0 auto 22px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.4;
}
.video-greeting-upload { margin-bottom: 3px; min-width: 0; }
.video-greeting-upload__button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 88px;
  padding: 10px;
  border: 2px dashed #cfd5e2;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.video-greeting-upload__button small { color: var(--muted); font-size: 12px; }
.video-greeting-upload__icon { flex: none; }
.video-greeting-upload__hint { margin-top: 5px; font-size: 11px; }
.video-greeting-panel .field { display: grid; gap: 5px; margin: 0; min-width: 0; }
.video-greeting-panel label { font-size: 14px; font-weight: 400; line-height: 1.35; }
.video-greeting-panel .required-star { color: #f04452; }
body.page-video #videoForm .video-greeting-panel .select,
body.page-video #videoForm .video-greeting-panel .textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--card);
  color: var(--text);
  font: 14px/20px var(--sans);
  box-shadow: none;
}
body.page-video #videoForm .video-greeting-panel .textarea { height: 38px; resize: vertical; }
body.page-video #videoForm .video-greeting-panel .video-greeting-textarea--tall { height: 60px; }
.video-greeting-panel .textarea::placeholder { color: var(--muted); opacity: .85; }
.video-greeting-panel :is(button, select, textarea):focus-visible {
  outline: 2px solid #8299f1;
  outline-offset: 2px;
}
body.page-video #videoForm .video-greeting-submit {
  width: 100%;
  min-height: 40px;
  margin-top: 2px;
  padding: 9px 12px;
  border: 0;
  border-radius: 12px;
  color: #142b4b;
  background: linear-gradient(110deg, #b5c0ff, #9fdfda);
  box-shadow: 0 2px 0 #82daf2;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
body.page-video #videoForm .video-greeting-submit:disabled { opacity: .65; cursor: wait; }
.video-greeting-details { margin: 0; text-align: center; font-size: 11px; }
.video-greeting-file {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.video-greeting-file img { width: 42px; height: 42px; object-fit: cover; border-radius: 5px; }
.video-greeting-file span { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 12px; }
.video-greeting-file button { width: 32px; height: 32px; flex: none; border: 0; background: transparent; color: inherit; font-size: 22px; cursor: pointer; }
body.video-template-greeting-active #videoForm { gap: 0; }
html[data-theme="light"] body.video-template-greeting-active .video-main-col { background: #fff; }
body.video-template-greeting-active #form { scroll-margin-top: 90px; }
body.video-template-greeting-active #videoWizardError:not(:empty) { margin-top: 12px; }
@media (max-width: 600px) {
  body.video-template-greeting-active #form { scroll-margin-top: 145px; }
  body.page-video.video-template-greeting-active .video-main-col { padding: 20px 16px; }
}
