/* Shared intake card — used by college-essay-review + college-essay-grader landings. */
.er-mock { width: 100%; margin: 0 auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: visible; color: #0f172a; box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12); }
.er-card-head { padding: 16px 24px 14px; border-bottom: 1px solid #eef2f7; background: #f8fafc; }
.er-card-title { margin: 0; color: #0f172a; font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
.er-body { display: flex; align-items: stretch; }
.er-form { flex: 1 1 auto; min-width: 0; padding: 20px 24px; position: relative; }
.er-side { flex: 0 0 185px; min-width: 0; padding: 20px; background: #f8fafc; border-left: 1px solid #eef2f7; }
.er-eyebrow { display: block; margin-bottom: 6px; color: #64748b; font-size: 11px; font-weight: 600; text-transform: uppercase; }
.er-side__eyebrow { display: block; margin-bottom: 12px; color: #94a3b8; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.er-title { display: block; color: #0f172a; font-size: 14px; font-weight: 500; }
.er-sub { display: block; color: #94a3b8; font-size: 12px; }
.er-sub--gap { margin-bottom: 8px; }
.er-field { display: block; width: 100%; box-sizing: border-box; border: 1px solid #d5dae3; border-radius: 6px; font: inherit; font-size: 13px; color: #0f172a; background: #fff; }
.er-field::placeholder { color: #94a3b8; font-size: 13px; }
.er-field:focus { outline: none; border-color: #2563eb; }
.er-input { box-sizing: border-box; height: 38px; padding: 0 13px; margin-bottom: 16px; }
.er-textarea { padding: 11px 13px; min-height: 108px; margin-bottom: 0; line-height: 1.55; resize: vertical; background: #fff; }
.er-textarea:focus { background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.er-draft-wrap { position: relative; margin-bottom: 14px; }
.er-draft-wrap .er-textarea { display: block; width: 100%; }
.er-typewriter {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  padding: 11px 13px; box-sizing: border-box;
  color: #94a3b8; font-size: 13px; line-height: 1.55;
  pointer-events: none; overflow: hidden;
  text-align: left;
}
.er-typewriter__text { white-space: pre-wrap; word-break: break-word; }
.er-draft-wrap.is-filled .er-typewriter { display: none; }
.er-typewriter__caret {
  display: inline-block; width: 1.5px; height: 1em;
  margin-left: 1px; vertical-align: -0.15em;
  background: #94a3b8; animation: er-caret-blink 1s steps(1) infinite;
}
@keyframes er-caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .er-typewriter__caret { animation: none; opacity: 1; }
}
.er-row { display: flex; align-items: center; justify-content: space-between; }
.er-count { color: #94a3b8; font-size: 11px; }
.er-meta { color: #94a3b8; font-size: 11px; }
.er-select-wrap { position: relative; margin-bottom: 16px; z-index: 5; }
.er-select-wrap.is-open { z-index: 20; }
/* `button` / `button:focus { border: 0 }` in style.min.css wins over a bare
   class unless we match that specificity — keep the border always. */
button.er-select,
button.er-select:hover,
button.er-select:focus,
button.er-select:active {
  display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box;
  padding: 9px 13px; border: 1px solid #d5dae3; border-radius: 6px; background: #fff;
  cursor: pointer; text-align: left; font: inherit; outline: none; color: inherit;
}
.er-select-wrap.is-open button.er-select,
.er-select-wrap.is-open button.er-select:focus {
  border-color: #2563eb;
}
.er-select__icon { width: 34px; height: 34px; flex-shrink: 0; border-radius: 6px; background: #eef2ff; display: flex; align-items: center; justify-content: center; font-size: 17px; line-height: 1; overflow: hidden; }
.er-select__icon img,
.er-option__icon img { width: 22px; height: 22px; display: block; object-fit: contain; border-radius: 5px; }
.er-select__main { flex: 1; min-width: 0; }
.er-select__main .er-title, .er-select__main .er-sub { line-height: 1.25; }
.er-select__main .er-title { font-size: 13.5px; }
.er-select__main .er-sub { margin-top: 1px; }
.er-select__chev { display: inline-flex; align-items: center; color: #94a3b8; transition: transform 0.15s ease; }
.er-select-wrap.is-open .er-select__chev { transform: rotate(180deg); }
.er-menu { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; max-height: 280px; overflow-y: auto; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; }
.er-select-wrap.is-open .er-menu { display: block; }
.er-menu__header { padding: 6px 14px; background: #f8fafc; border-bottom: 1px solid #eef2f7; color: #64748b; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.er-menu__group { padding: 7px 14px 5px; color: #94a3b8; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border-top: 1px solid #f1f5f9; }
.er-option { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; border-bottom: 1px solid #f1f5f9; }
.er-option:last-child { border-bottom: none; }
.er-option:hover { background: #f8fafc; }
.er-option.is-active { background: #f5f8ff; }
.er-option__icon { width: 32px; height: 32px; flex-shrink: 0; border-radius: 6px; background: #eef2ff; display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; }
.er-option.is-active .er-option__icon { background: #dbe4ff; }
.er-option__main { flex: 1; min-width: 0; }
.er-option__title { display: block; color: #0f172a; font-size: 13px; font-weight: 500; line-height: 1.25; }
.er-option__desc { display: block; margin-top: 2px; color: #94a3b8; font-size: 11px; line-height: 1.35; }
.er-option__words { flex-shrink: 0; color: #94a3b8; font-size: 11px; white-space: nowrap; padding-left: 8px; }
.er-progress { height: 4px; margin-top: 4px; margin-bottom: 8px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.er-progress__bar { width: 0; height: 100%; background: #2563eb; border-radius: 999px; transition: width 0.2s ease, background 0.2s ease; }
.er-meta-row { display: flex; justify-content: space-between; margin-bottom: 15px; }
.er-submit { display: block; width: 100%; box-sizing: border-box; padding: 10px; border: none; border-radius: 6px; background: #2563eb; color: #fff; font: inherit; font-size: 14px; font-weight: 600; text-align: center; cursor: pointer; transition: background 0.15s ease; }
.er-submit:hover { background: #1d4ed8; }
.er-free { margin: 10px 0 0; text-align: center; color: #94a3b8; font-size: 12px; }
.er-college { margin-bottom: 0; }
.er-college[hidden] { display: none !important; }
.er-college-wrap { position: relative; margin-bottom: 16px; z-index: 4; }
.er-college-wrap.is-open { z-index: 25; }
.er-college-input { margin-bottom: 0; }
.er-college-menu { max-height: 220px; }
.er-college-wrap.is-open .er-college-menu { display: block; }
.er-college-empty { padding: 12px 14px; color: #94a3b8; font-size: 12px; }
.er-college-option { display: block; padding: 10px 12px; cursor: pointer; border-bottom: 1px solid #f1f5f9; color: #0f172a; font-size: 13px; font-weight: 500; line-height: 1.3; }
.er-college-option:last-child { border-bottom: none; }
.er-college-option:hover,
.er-college-option.is-active { background: #f5f8ff; }
.er-college-option__custom { color: #2563eb; font-weight: 600; }
.er-prompt-opt { display: block; padding: 10px 12px; cursor: pointer; border-bottom: 1px solid #f1f5f9; }
.er-prompt-opt:last-child { border-bottom: none; }
.er-prompt-opt:hover, .er-prompt-opt.is-active { background: #f5f8ff; }
.er-prompt-opt__title { display: block; color: #0f172a; font-size: 13px; font-weight: 500; line-height: 1.25; }
.er-prompt-opt__text { display: block; margin-top: 3px; color: #94a3b8; font-size: 11px; line-height: 1.4; }
/* Prompt closed state = same height as free-text prompt input. Menu options stay 2-line. */
#erPromptSelectWrap button.er-select {
  height: 38px; padding: 0 13px; gap: 8px;
}
#erPromptSelectWrap .er-select__main .er-title {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 13px; font-weight: 400; line-height: 1.2; color: #0f172a;
}
#erPromptSelectWrap.is-placeholder .er-select__main .er-title { color: #94a3b8; }
.er-side .er-title { font-size: 12px; }
.er-side .er-sub { font-size: 11px; }
.er-receive-item { margin-bottom: 14px; }
.er-receive-item:last-child { margin-bottom: 0; }
.er-visual { position: relative; box-sizing: border-box; width: 100%; height: 56px; padding: 10px 12px; border: 1px solid #eef1f6; border-radius: 7px; background: #fff; display: flex; flex-direction: column; gap: 5px; justify-content: center; }

@media (max-width: 767px) {
  .er-body { flex-direction: column; }
  .er-side { flex-basis: auto; border-left: none; border-top: 1px solid #eef2f7; }
}
@media (min-width: 992px) {
  .video-container .er-mock { margin-left: 28px; margin-right: 28px; width: auto; }
}
