/* ============================================================
   CV UPLOAD PAGE — SkillPeopleHire
   Drop zone, file list, remove buttons, info panel
   ============================================================ */

/* ---- Layout ---------------------------------------------- */
.cv-upload-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2.5rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .cv-upload-layout { grid-template-columns: 1fr; }
}

/* ---- Info Panel ------------------------------------------ */
.cv-info-panel {
  background: #fff;
  border: 1px solid #e8e8e0;
  border-radius: 16px;
  padding: 2rem 1.75rem;
  position: sticky;
  top: 100px;
}

.cv-info-panel h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 1.5rem;
  letter-spacing: -.01em;
}

/* Steps */
.cv-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cv-steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.cv-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #6BBF2B;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: .1rem;
}

.cv-steps li strong {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: .9rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: .2rem;
}

.cv-steps li p {
  font-family: 'Lato', sans-serif;
  font-size: .82rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}

/* Accepted formats */
.cv-accepted-formats {
  background: #f5f5ed;
  border-radius: 10px;
  padding: 1rem 1.125rem;
  margin-bottom: 1.25rem;
}

.cv-accepted-formats__title {
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: .625rem;
}

.cv-accepted-formats__list {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  margin-bottom: .5rem;
}

.cv-format-tag {
  background: #fff;
  border: 1px solid #d0d0c8;
  color: #1a1a2e;
  font-family: 'Inter', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .625rem;
  border-radius: 5px;
  letter-spacing: .04em;
}

.cv-accepted-formats__note {
  font-family: 'Lato', sans-serif;
  font-size: .78rem;
  color: #888;
  margin: 0;
}

/* Trust badges */
.cv-trust-badges {
  display: flex;
  flex-direction: column;
  gap: .625rem;
}

.cv-trust-badge {
  display: flex;
  align-items: center;
  gap: .625rem;
  font-family: 'Lato', sans-serif;
  font-size: .82rem;
  color: #555;
}

.cv-trust-badge svg {
  color: #6BBF2B;
  flex-shrink: 0;
}

/* ---- Form Card ------------------------------------------- */
.cv-form-card {
  background: #fff;
  border: 1px solid #e8e8e0;
  border-radius: 16px;
  padding: 2.5rem 2.25rem;
}

.cv-form-card__title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 2rem;
  letter-spacing: -.01em;
}

.cv-upload-hint {
  font-family: 'Lato', sans-serif;
  font-size: .825rem;
  color: #777;
  margin: .25rem 0 .875rem;
  line-height: 1.6;
}

/* ---- Drop Zone ------------------------------------------- */
.cv-dropzone {
  position: relative;
  border: 2px dashed #c8d8c0;
  border-radius: 12px;
  background: #f7fbf5;
  padding: 2.25rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 200ms, background 200ms;
  outline: none;
}

.cv-dropzone:hover,
.cv-dropzone:focus {
  border-color: #6BBF2B;
  background: #f0f9ea;
}

.cv-dropzone.drag-over {
  border-color: #6BBF2B;
  background: #ebf7e1;
  box-shadow: 0 0 0 4px rgba(107,191,43,.12);
}

.cv-dropzone.has-files {
  border-style: solid;
  border-color: #6BBF2B;
}

/* Hidden real input */
.cv-dropzone__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.cv-dropzone__inner {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.cv-dropzone__icon {
  color: #6BBF2B;
  margin-bottom: .875rem;
  display: flex;
  justify-content: center;
}

.cv-dropzone__title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 .35rem;
}

.cv-dropzone__sub {
  font-family: 'Lato', sans-serif;
  font-size: .875rem;
  color: #777;
  margin: 0 0 .5rem;
}

.cv-dropzone__browse {
  color: #6BBF2B;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cv-dropzone__formats {
  font-family: 'Lato', sans-serif;
  font-size: .78rem;
  color: #aaa;
  margin: 0;
}

/* ---- File List ------------------------------------------- */
.cv-file-list {
  list-style: none;
  padding: 0;
  margin: .875rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.cv-file-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #f5f5ed;
  border: 1px solid #e0e0d8;
  border-radius: 8px;
  padding: .625rem .875rem;
  animation: fileSlideIn 200ms ease forwards;
}

@keyframes fileSlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.cv-file-item__icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.cv-file-item__icon--pdf  { background: #fdecea; color: #e53935; }
.cv-file-item__icon--doc,
.cv-file-item__icon--docx { background: #e3f0ff; color: #1565c0; }
.cv-file-item__icon--jpg,
.cv-file-item__icon--jpeg,
.cv-file-item__icon--png  { background: #e8f5e9; color: #2e7d32; }
.cv-file-item__icon--other { background: #f3f3f3; color: #555; }

.cv-file-item__info {
  flex: 1;
  min-width: 0;
}

.cv-file-item__name {
  font-family: 'Inter', sans-serif;
  font-size: .875rem;
  font-weight: 600;
  color: #1a1a2e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.cv-file-item__meta {
  font-family: 'Lato', sans-serif;
  font-size: .75rem;
  color: #999;
}

.cv-file-item__remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: .3rem;
  border-radius: 5px;
  color: #bbb;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 160ms, background 160ms;
}

.cv-file-item__remove:hover {
  color: #e53935;
  background: #fdecea;
}

/* ---- Shared form helpers (used on this page) ------------- */
.btn-ghost-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .75rem 1.75rem;
  background: transparent;
  color: #6BBF2B;
  border: 2px solid #6BBF2B;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: .9375rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 200ms, color 200ms;
}

.btn-ghost-green:hover {
  background: #6BBF2B;
  color: #fff;
}

/* ---- Mobile -------------------------------------------- */
@media (max-width: 640px) {
  .cv-form-card { padding: 1.5rem 1.125rem; }
  .cv-dropzone  { padding: 1.75rem 1rem; }
}
