/* ═══════════════════════════════════════════════════════════════════════
   SENSORIUM AGENCY — cv-upload.css
   CV upload page. Requires base.css.
   ═══════════════════════════════════════════════════════════════════════ */


/* ── CV HERO ─────────────────────────────────────────────────────────── */
.cv-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(150deg, rgba(13,40,64,.97) 0%, rgba(21,60,95,.9) 60%, rgba(56,182,255,.12) 100%),
              url('/images/home01.jpg') center/cover no-repeat;
  color: var(--clr-white);
  overflow: hidden;
}

.cv-hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 30%, rgba(244,125,85,.08) 0%, transparent 55%);
  z-index: 0;
}

.cv-hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 5rem var(--container-pad) 2.5rem;
  margin-inline: auto;
  width: 100%;
  text-align: center;
}

.cv-hero-content h1 {
  color: var(--clr-white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}
.cv-hero-content h1 em { font-style: normal; color: var(--clr-white); }

.cv-hero-content p {
  color: rgba(255,255,255,.78);
  font-size: clamp(.9rem, 1.7vw, 1.05rem);
  max-width: 620px;
  margin: 0 auto 1.75rem;
  line-height: 1.65;
}

/* Badges row */
.cv-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .65rem;
}

.cv-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius-pill);
  padding: .35rem .9rem;
  font-size: var(--fs-xs, .75rem);
  font-weight: 600;
  color: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
}
.cv-badge i { color: var(--clr-emerald); }

/* ── TRUST BAR (shared pattern with brief-role) ──────────────────────── */
.trust-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  background: rgba(255,255,255,.06);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 1.25rem var(--container-pad);
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  padding: .5rem 2rem;
}

.trust-item strong {
  font-family: var(--font-body);
  font-size: 1.5rem;
  color: var(--clr-sky);
  line-height: 1;
}

.trust-item span {
  font-size: .75rem;
  color: rgba(255,255,255,.65);
  white-space: nowrap;
}

.trust-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,.15);
}

@media (max-width: 575px) {
  .cv-hero { min-height: 62svh; }
  .cv-hero-content { padding: 4rem 1rem 2rem; }
  .trust-divider { display: none; }
  .trust-item { padding: .5rem 1rem; }
}


/* ── MAIN SPLIT ──────────────────────────────────────────────────────── */
.cv-main { background: var(--clr-surface); padding: 3.5rem 0 5rem; }

.cv-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 991px) {
  .cv-grid { grid-template-columns: 1fr; }
}


/* ── CV FORM CARD ────────────────────────────────────────────────────── */
.cv-form-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cv-form-header {
  background: var(--clr-navy);
  padding: 1.5rem 2rem;
}

.cv-form-header h2 {
  color: var(--clr-white);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .3rem;
}
.cv-form-header h2 i { color: var(--clr-coral); }
.cv-form-header p    { font-size: var(--fs-sm); color: rgba(255,255,255,.6); margin: 0; }

.cv-form-body {
  padding: 1.75rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


/* ── FORM FIELDS ─────────────────────────────────────────────────────── */
.cv-row { display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }

.cv-field {
  position: relative;
  display: flex;
  flex-direction: column;
}

.cv-field input,
.cv-field select,
.cv-field textarea {
  width: 100%;
  padding: 1.1rem .9rem .45rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-family: var(--font-body);
  color: var(--clr-text);
  background: var(--clr-surface);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.cv-field textarea { resize: vertical; min-height: 80px; padding-top: 1.3rem; }

.cv-field input:focus,
.cv-field select:focus,
.cv-field textarea:focus {
  border-color: var(--clr-navy);
  box-shadow: 0 0 0 3px rgba(21,60,95,.1);
  background: var(--clr-white);
}

/* Floating labels */
.cv-field label {
  position: absolute;
  top: .75rem;
  left: .9rem;
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  pointer-events: none;
  transition: top .2s, font-size .2s, color .2s;
}

.cv-field input:not(:placeholder-shown) ~ label,
.cv-field input:focus ~ label,
.cv-field textarea:not(:placeholder-shown) ~ label,
.cv-field textarea:focus ~ label,
.cv-field select:valid ~ label,
.cv-field select:focus ~ label {
  top: .28rem;
  font-size: .68rem;
  color: var(--clr-navy);
  font-weight: 600;
}

.cv-hint {
  font-size: .7rem;
  color: var(--clr-text-muted);
  margin-top: .25rem;
  padding-left: .1rem;
}

.req { color: var(--clr-coral); }

/* Invalid state */
.cv-field input.cv-invalid,
.cv-field select.cv-invalid,
.cv-field textarea.cv-invalid { border-color: var(--clr-red, #ef4444); }

@media (max-width: 575px) {
  .cv-row { grid-template-columns: 1fr; }
  .cv-form-body { padding: 1.25rem; }
  .cv-form-header { padding: 1.25rem; }
}


/* ── DRAG-DROP ZONE ──────────────────────────────────────────────────── */
.cv-dropzone {
  position: relative;          /* FIX: needed so hidden file input stays inside */
  border: 2px dashed var(--clr-border);
  border-radius: var(--radius-lg);
  background: var(--clr-surface);
  transition: border-color var(--transition), background var(--transition);
  overflow: hidden;
}

.cv-dropzone.drag-over {
  border-color: var(--clr-sky, #38b6ff);
  background: rgba(56,182,255,.05);
}

.cv-dropzone.cv-drop-has-file {
  border-color: var(--clr-emerald);
  border-style: solid;
}

.cv-drop-inner {
  padding: 2rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
}

.cv-drop-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(21,60,95,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--clr-navy);
  margin-bottom: .35rem;
  transition: background var(--transition), color var(--transition);
}
.cv-dropzone.drag-over .cv-drop-icon { background: var(--clr-sky, #38b6ff); color: var(--clr-white); }

.cv-drop-title  { font-size: var(--fs-base); font-weight: 600; color: var(--clr-navy); margin: 0; }
.cv-drop-sub    { font-size: var(--fs-sm); color: var(--clr-text-muted); margin: 0; }
.cv-drop-formats { font-size: .7rem; color: var(--clr-text-muted); margin: 0; }

.cv-browse-btn {
  background: none;
  border: none;
  color: var(--clr-coral);
  font-weight: 600;
  font-size: inherit;
  cursor: pointer;
  font-family: var(--font-body);
  text-decoration: underline;
  padding: 0;
}

/* Preview state */
.cv-drop-preview {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(16,185,129,.05);
  border-top: 1px solid rgba(16,185,129,.2);
}

/* Hidden-attribute support for preview and progress */
.cv-drop-preview[hidden],
.cv-upload-progress[hidden],
.cv-error[hidden] { display: none !important; }

.cv-drop-preview > i {
  font-size: 1.75rem;
  color: var(--clr-emerald);
  flex-shrink: 0;
}

.cv-preview-info {
  flex: 1;
  min-width: 0;
}
.cv-preview-info strong {
  display: block;
  font-size: var(--fs-sm);
  color: var(--clr-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cv-preview-info span {
  font-size: .72rem;
  color: var(--clr-text-muted);
}

.cv-remove-file {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(239,68,68,.1);
  border: none;
  color: var(--clr-red, #ef4444);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  font-family: var(--font-body);
}
.cv-remove-file:hover { background: var(--clr-red, #ef4444); color: var(--clr-white); }


/* ── UPLOAD PROGRESS BAR ─────────────────────────────────────────────── */
.cv-upload-progress {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: .85rem 1.1rem;
}

.cv-prog-header {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  margin-bottom: .5rem;
}

.cv-prog-track {
  height: 6px;
  background: var(--clr-border);
  border-radius: 6px;
  overflow: hidden;
}

.cv-prog-fill {
  height: 100%;
  background: var(--clr-coral);
  border-radius: 6px;
  transition: width .3s ease;
}


/* ── CONSENT + ERROR ─────────────────────────────────────────────────── */
.cv-consent {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.55;
  cursor: pointer;
}
.cv-consent input[type=checkbox] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: .2rem;
  accent-color: var(--clr-coral);
}
.cv-consent a { color: var(--clr-navy); text-decoration: underline; }

.cv-error {
  background: rgba(239,68,68,.07);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: var(--radius-md);
  padding: .75rem 1rem;
  font-size: var(--fs-sm);
  color: var(--clr-red, #ef4444);
  line-height: 1.5;
}

/* Submit button */
.cv-submit-btn {
  width: 100%;
  justify-content: center;
  font-size: var(--fs-base);
  padding: .95rem;
}
.cv-submit-btn.loading { opacity: .75; pointer-events: none; }
.btn-spinner.hidden, .btn-label.hidden { display: none; }

/* Disclaimer */
.cv-footer-note {
  font-size: .72rem;
  color: var(--clr-text-muted);
  display: flex;
  align-items: flex-start;
  gap: .4rem;
  line-height: 1.5;
}
.cv-footer-note i { color: var(--clr-emerald); flex-shrink: 0; margin-top: .1rem; }


/* ── RIGHT SIDEBAR ───────────────────────────────────────────────────── */
.cv-info-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;      /* FIX: was missing — sidebar now stays in view */
  top: 88px;
}

/* Info and tips cards */
.cv-info-card,
.cv-tips-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
}

.cv-info-card h3,
.cv-tips-card h3 {
  font-size: 1rem;
  color: var(--clr-navy);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--clr-border);
}
.cv-info-card h3 i { color: var(--clr-coral); }
/* FIX: --clr-amber may not exist in base.css — fall back to a safe gold */
.cv-tips-card h3 i { color: var(--clr-amber, #f59e0b); }

/* Next steps list */
.cv-next-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.cv-next-steps li {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
}

.cn-num {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--clr-coral);
  color: var(--clr-white);
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  margin-top: .1rem;
}

.cv-next-steps li > div { flex: 1; }
.cv-next-steps li strong { display: block; font-size: var(--fs-sm); color: var(--clr-navy); margin-bottom: .15rem; }
.cv-next-steps li span  { font-size: .78rem; color: var(--clr-text-muted); line-height: 1.5; }

/* Tips list */
.cv-tips-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.cv-tips-list li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: 1.5;
}
.cv-tips-list i { color: var(--clr-emerald); font-size: .8rem; margin-top: .2rem; flex-shrink: 0; }

.cv-tips-cta {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-coral);
  text-decoration: none;
  transition: gap var(--transition);
}
.cv-tips-cta:hover { gap: .75rem; }

/* Pipeline join CTA */
.cv-join-cta {
  background: var(--clr-navy);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.cv-join-cta > i {
  font-size: 1.5rem;
  color: var(--clr-coral);
  flex-shrink: 0;
  margin-top: .2rem;
}
.cv-join-cta h3 { color: var(--clr-white); font-size: .95rem; margin-bottom: .4rem; }
.cv-join-cta p  { color: rgba(255,255,255,.65); font-size: var(--fs-sm); line-height: 1.6; margin: 0; }

@media (max-width: 991px) {
  .cv-info-wrap { position: static; } /* unstick on mobile — no room for sticky */
}