/* ══════════════════════════════════════════════════════
   form-curriculo.css — visual 100% temtudinho
   Fundo dark, grid, DM Mono, accent azul
══════════════════════════════════════════════════════ */

:root {
  --ink: #0d0f14;
  --paper: #f0f3f8;
  --accent: #2a6dd9;
  --accent2: #1a4fa8;
  --gold: #7aaef5;
  --muted: #707a8a;
  --border: rgba(240, 243, 248, 0.1);
  --card-bg: rgba(240, 243, 248, 0.04);
  --surface: rgba(240, 243, 248, 0.06);
  --success: rgba(34, 197, 94, 0.9);
  --input-bg: rgba(240, 243, 248, 0.06);
  --input-border: rgba(240, 243, 248, 0.14);
  --text: rgba(240, 243, 248, 0.88);
  --text-muted: rgba(240, 243, 248, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: "DM Sans", sans-serif;
  background: var(--ink);
  background-image:
    linear-gradient(rgba(240, 243, 248, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 243, 248, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* ══ NAV ═══════════════════════════════════════════════ */
.form-nav-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(13, 15, 20, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.form-nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.form-nav-logo {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: 1.1rem;
  color: rgba(240, 243, 248, 0.88);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.form-nav-logo span {
  color: var(--accent);
}
.form-nav-sep {
  color: rgba(240, 243, 248, 0.15);
}
.form-nav-label {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(240, 243, 248, 0.35);
}

.form-nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.save-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 243, 248, 0.35);
  opacity: 0;
  transition: opacity 0.4s;
}
.save-indicator.show {
  opacity: 1;
}
.save-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ee7a0;
}

.form-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 243, 248, 0.55);
  background: none;
  border: 1px solid var(--border);
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 3px;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.form-nav-btn:hover {
  color: rgba(240, 243, 248, 0.9);
  border-color: rgba(240, 243, 248, 0.25);
}

/* ══ PROGRESS BAR ═══════════════════════════════════════ */
.progress-bar {
  height: 2px;
  background: rgba(240, 243, 248, 0.06);
}
.progress-fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.5s ease;
  width: 0%;
}

/* ══ LAYOUT ═════════════════════════════════════════════ */
.form-layout {
  display: grid;
  grid-template-columns: 256px 1fr;
  min-height: calc(100vh - 58px);
}

/* ══ SIDEBAR ════════════════════════════════════════════ */
.sidebar {
  background: rgba(13, 15, 20, 0.6);
  border-right: 1px solid var(--border);
  padding: 2.5rem 1.5rem;
  position: sticky;
  top: 58px;
  height: calc(100vh - 58px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sidebar-title {
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(240, 243, 248, 0.25);
  margin-bottom: 1.25rem;
}

.step-btn {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.65rem 0.875rem;
  border-radius: 4px;
  text-align: left;
  transition: background 0.2s;
  width: 100%;
}
.step-btn:hover {
  background: var(--surface);
}
.step-btn.active {
  background: rgba(42, 109, 217, 0.12);
}
.step-btn.done .step-circle {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.35);
}
.step-btn.done .step-circle::after {
  content: "✓";
  font-size: 0.6rem;
  color: #6ee7a0;
}
.step-btn.partial .step-circle {
  background: rgba(122, 174, 245, 0.1);
  border-color: rgba(122, 174, 245, 0.3);
}
.step-btn.partial .step-circle::after {
  content: "–";
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: bold;
}

.step-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  color: rgba(240, 243, 248, 0.3);
  transition: all 0.25s;
}
.step-btn.active .step-circle {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.step-label {
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(240, 243, 248, 0.4);
  line-height: 1.3;
  transition: color 0.2s;
}
.step-btn.active .step-label {
  color: rgba(240, 243, 248, 0.9);
  font-weight: 500;
}
.step-btn.done .step-label,
.step-btn.partial .step-label {
  color: rgba(240, 243, 248, 0.5);
}

.sidebar-divider {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

.sidebar-cta {
  margin-top: auto;
  padding-top: 2rem;
}
.btn-escolher {
  display: block;
  width: 100%;
  background: var(--accent);
  color: white;
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 0.875rem 1rem;
  border-radius: 3px;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.2s;
}
.btn-escolher:hover {
  background: #3a7de9;
  transform: translateY(-1px);
}

/* ══ FORM AREA ══════════════════════════════════════════ */
.form-area {
  padding: 3rem 4rem;
  max-width: 820px;
}

.form-section {
  display: none;
  animation: fadeUp 0.4s ease forwards;
}
.form-section.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-5px);
  }
  80% {
    transform: translateX(5px);
  }
}

.section-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.section-eyebrow {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}
.section-title {
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  color: rgba(240, 243, 248, 0.92);
}
.section-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
}

/* ── Fields ── */
.fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 2rem;
}
.fields-grid.single {
  grid-template-columns: 1fr;
}
.fields-grid.triple {
  grid-template-columns: 1fr 1fr 1fr;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.field.span-2 {
  grid-column: span 2;
}

label {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(240, 243, 248, 0.5);
}
label .required {
  color: var(--accent);
  margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea,
select {
  font-family: "DM Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: rgba(240, 243, 248, 0.88);
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 3px;
  padding: 0.75rem 1rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
  outline: none;
  width: 100%;
}
input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  background: rgba(42, 109, 217, 0.06);
  box-shadow: 0 0 0 3px rgba(42, 109, 217, 0.1);
}
input::placeholder,
textarea::placeholder {
  color: rgba(240, 243, 248, 0.2);
}
select option {
  background: #1a1d26;
  color: rgba(240, 243, 248, 0.88);
}
textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}
.field-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 300;
}

/* ── Blocks ── */
.block-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}
.block-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  position: relative;
  transition: border-color 0.2s;
}
.block-item:hover {
  border-color: rgba(42, 109, 217, 0.3);
}
.block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.block-index {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}
.btn-remove {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-remove:hover {
  border-color: rgba(239, 68, 68, 0.5);
  color: #f87171;
}
.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px dashed rgba(42, 109, 217, 0.3);
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  width: 100%;
  justify-content: center;
}
.btn-add:hover {
  background: rgba(42, 109, 217, 0.06);
  border-style: solid;
}

/* ── Tags ── */
.tags-input-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  border-radius: 3px;
  min-height: 48px;
  cursor: text;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.tags-input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(42, 109, 217, 0.1);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(42, 109, 217, 0.12);
  border: 1px solid rgba(42, 109, 217, 0.25);
  border-radius: 2px;
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  color: var(--gold);
}
.tag-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  color: rgba(240, 243, 248, 0.35);
  padding: 0;
  transition: color 0.15s;
}
.tag-remove:hover {
  color: #f87171;
}
.tags-input {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0.2rem 0.3rem;
  font-size: 0.9rem;
  background: transparent;
  flex: 1;
  min-width: 120px;
  color: rgba(240, 243, 248, 0.88);
}
.tags-input::placeholder {
  color: rgba(240, 243, 248, 0.2);
}

/* ── Photo ── */
.photo-upload-area {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.photo-preview {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color 0.2s;
}
.photo-preview:hover {
  border-color: var(--accent);
}
.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-preview span {
  font-size: 2rem;
}
.photo-upload-info {
  flex: 1;
}
.photo-upload-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 0.75rem;
}
.btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid var(--border);
  color: rgba(240, 243, 248, 0.6);
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-upload:hover {
  border-color: var(--accent);
  color: var(--gold);
}
#photoInput {
  display: none;
}

/* ── Profile selector ── */
.profile-selector-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(42, 109, 217, 0.06);
  border: 1px solid rgba(42, 109, 217, 0.15);
  padding: 0.6rem 1rem 0.6rem 1.25rem;
  border-radius: 4px;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.profile-selector-bar .ps-label {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 243, 248, 0.3);
  white-space: nowrap;
  margin-right: 0.25rem;
}
.profile-btn {
  background: none;
  border: 1px solid var(--border);
  color: rgba(240, 243, 248, 0.4);
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.profile-btn:hover {
  border-color: rgba(240, 243, 248, 0.3);
  color: rgba(240, 243, 248, 0.8);
}
.profile-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.profile-badge {
  display: inline-block;
  font-size: 0.6rem;
  background: rgba(240, 243, 248, 0.1);
  border-radius: 2px;
  padding: 0.1rem 0.4rem;
  font-family: "DM Mono", monospace;
  letter-spacing: 0.05em;
  margin-left: 0.2rem;
}
.profile-btn.active .profile-badge {
  background: rgba(255, 255, 255, 0.2);
}

/* ── Exp tabs ── */
.exp-type-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.exp-tab {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: rgba(240, 243, 248, 0.4);
  font-family: "DM Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.6rem 1.1rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}
.exp-tab:hover {
  border-color: rgba(240, 243, 248, 0.25);
  color: rgba(240, 243, 248, 0.8);
}
.exp-tab.active {
  background: rgba(42, 109, 217, 0.15);
  border-color: rgba(42, 109, 217, 0.4);
  color: var(--gold);
}

.never-worked-box {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: rgba(122, 174, 245, 0.06);
  border: 1px solid rgba(122, 174, 245, 0.2);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}
.nw-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.never-worked-box strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  color: rgba(240, 243, 248, 0.85);
}
.never-worked-box p {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
}

/* ── Toggle ── */
.toggle-field {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.toggle-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}
.toggle-field label {
  text-transform: none;
  font-family: "DM Sans", sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0;
  color: rgba(240, 243, 248, 0.7);
  cursor: pointer;
}

/* ── Tooltip ── */
.field-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.tooltip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  font-size: 0.6rem;
  color: var(--text-muted);
  cursor: help;
  margin-left: 0.4rem;
  flex-shrink: 0;
  font-style: normal;
  transition:
    background 0.15s,
    color 0.15s;
}
.tooltip-icon:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.tooltip-bubble {
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13, 15, 20, 0.98);
  border: 1px solid var(--border);
  color: rgba(240, 243, 248, 0.8);
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  line-height: 1.5;
  padding: 0.6rem 0.9rem;
  border-radius: 4px;
  width: 240px;
  z-index: 200;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  white-space: normal;
}
.tooltip-bubble::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left: 0;
  border-right-color: var(--border);
}
.tooltip-icon:hover + .tooltip-bubble,
.tooltip-icon:focus + .tooltip-bubble {
  opacity: 1;
}

/* ── Label row ── */
.label-row {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 0;
}
.label-row label {
  margin-bottom: 0;
}

/* ── Validation ── */
input.field-ok,
textarea.field-ok,
select.field-ok {
  border-color: rgba(34, 197, 94, 0.5) !important;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.08) !important;
}
input.field-error,
textarea.field-error,
select.field-error {
  border-color: rgba(239, 68, 68, 0.5) !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.08) !important;
}
.field-msg {
  font-size: 0.72rem;
  font-weight: 400;
  margin-top: -0.25rem;
  display: none;
}
.field-msg.show {
  display: block;
}
.field-msg.ok {
  color: #6ee7a0;
}
.field-msg.err {
  color: #f87171;
}
.char-counter {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  color: var(--text-muted);
  text-align: right;
  margin-top: -0.25rem;
  transition: color 0.2s;
}
.char-counter.warn {
  color: var(--gold);
}
.char-counter.good {
  color: #6ee7a0;
}

/* ── Nav buttons ── */
.form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.btn-prev {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-prev:hover {
  border-color: rgba(240, 243, 248, 0.3);
  color: rgba(240, 243, 248, 0.8);
}
.btn-next {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: white;
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s;
}
.btn-next:hover {
  background: #3a7de9;
  transform: translateY(-1px);
}
.btn-next svg,
.btn-prev svg {
  pointer-events: none;
}

/* ══ STEP 7 — MODEL CARDS ══════════════════════════════ */
.models-chooser {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.model-option {
  background: var(--ink);
  cursor: pointer;
  text-decoration: none;
  display: block;
  transition: background 0.2s;
  position: relative;
}
.model-option::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.model-option:hover {
  background: rgba(42, 109, 217, 0.05);
}
.model-option:hover::after {
  transform: scaleX(1);
}

.model-preview-area {
  aspect-ratio: 3/4;
  max-height: 160px;
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}
.model-preview-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease;
}
.model-option:hover .model-preview-area img {
  transform: scale(1.04);
}

.model-hover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 15, 20, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s;
  backdrop-filter: blur(2px);
}
.model-option:hover .model-hover-overlay {
  opacity: 1;
}
.model-hover-overlay span {
  color: white;
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.model-option-info {
  padding: 0.75rem 0.875rem 1rem;
}
.model-option-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}
.model-option-name {
  font-family: "Playfair Display", serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(240, 243, 248, 0.85);
}
.badge-free-sm {
  font-family: "DM Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--card-bg);
  color: rgba(240, 243, 248, 0.35);
  border: 1px solid var(--border);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
}
.badge-premium-sm {
  font-family: "DM Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(234, 179, 8, 0.08);
  color: #fbbf24;
  border: 1px solid rgba(234, 179, 8, 0.2);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
}
.badge-ats-sm {
  font-family: "DM Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(42, 109, 217, 0.1);
  color: var(--gold);
  border: 1px solid rgba(42, 109, 217, 0.2);
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
}
.model-option-desc {
  font-size: 0.75rem;
  color: rgba(240, 243, 248, 0.35);
  font-weight: 300;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}
.model-option-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.mtag {
  font-family: "DM Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(240, 243, 248, 0.3);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.12rem 0.4rem;
  background: var(--card-bg);
}

.final-section {
  text-align: center;
  padding: 3rem 0;
}
.final-icon {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  display: block;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
.final-title {
  font-family: "Playfair Display", serif;
  font-weight: 900;
  font-size: 2.5rem;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  color: rgba(240, 243, 248, 0.92);
}
.final-title em {
  font-style: italic;
  color: var(--accent);
}
.final-desc {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
  max-width: 45ch;
  margin: 0 auto 3rem;
}
.final-note {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}
.final-note a {
  color: var(--accent);
  text-decoration: none;
}
.final-note a:hover {
  color: var(--gold);
}

/* ══ RESPONSIVE ══════════════════════════════════════════ */
@media (max-width: 900px) {
  .form-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .form-area {
    padding: 2rem 1.5rem;
    max-width: 100%;
  }
  .fields-grid {
    grid-template-columns: 1fr;
  }
  .fields-grid.triple {
    grid-template-columns: 1fr 1fr;
  }
  .field.span-2 {
    grid-column: span 1;
  }
  .models-chooser {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-nav-label {
    display: none;
  }
}
@media (max-width: 560px) {
  .models-chooser {
    grid-template-columns: 1fr;
  }
  .form-area {
    padding: 1.5rem 1rem;
  }
}

/* ══════════════════════════════════════════════════════════
   MOBILE (≤ 768px) — Visual de app
══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* ── NAV ─────────────────────────────────────────────── */
  .form-nav-bar {
    padding: 0 1rem;
    height: 52px;
  }

  .form-nav-sep,
  .form-nav-label,
  .save-indicator {
    display: none;
  }

  .form-nav-logo {
    font-size: 1rem;
  }

  .form-nav-btn {
    font-size: 0.58rem;
    padding: 0.35rem 0.7rem;
  }

  /* ── PROGRESS BAR: mais grossa no mobile ─────────────── */
  .progress-bar {
    height: 3px;
  }

  /* ── LAYOUT: coluna única ────────────────────────────── */
  .form-layout {
    grid-template-columns: 1fr;
    min-height: calc(100vh - 55px);
  }

  .sidebar {
    display: none; /* Substituída pelo step indicator abaixo */
  }

  /* ── STEP INDICATOR MOBILE (bolinha de progresso) ────── */
  .mobile-step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.875rem 1rem;
    background: rgba(13, 15, 20, 0.6);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .mobile-step-indicator::-webkit-scrollbar {
    display: none;
  }

  .msi-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "DM Mono", monospace;
    font-size: 0.55rem;
    color: rgba(240, 243, 248, 0.3);
    flex-shrink: 0;
    transition: all 0.25s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .msi-dot.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    width: 32px;
    height: 32px;
  }

  .msi-dot.done {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.35);
    color: #6ee7a0;
  }

  .msi-line {
    width: 16px;
    height: 1px;
    background: var(--border);
    flex-shrink: 0;
  }

  /* ── FORM AREA ───────────────────────────────────────── */
  .form-area {
    padding: 1.5rem 1rem 6rem; /* bottom para não ficar atrás do form-nav */
    max-width: 100%;
  }

  /* ── SECTION HEADER ──────────────────────────────────── */
  .section-header {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
  }

  .section-eyebrow {
    font-size: 0.58rem;
    letter-spacing: 0.16em;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .section-desc {
    font-size: 0.82rem;
  }

  /* ── CAMPOS: coluna única ────────────────────────────── */
  .fields-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .fields-grid.triple {
    grid-template-columns: 1fr 1fr;
  }

  .field.span-2 {
    grid-column: span 1;
  }

  /* Inputs maiores para toque ─────────────────────────── */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  textarea,
  select {
    font-size: 1rem; /* evita zoom no iOS */
    padding: 0.875rem 1rem;
    border-radius: 6px;
  }

  /* ── FOTO DE PERFIL ──────────────────────────────────── */
  .photo-upload-area {
    gap: 1rem;
  }

  .photo-preview {
    width: 72px;
    height: 72px;
  }

  .photo-upload-info p {
    font-size: 0.78rem;
  }

  /* ── PROFILE SELECTOR: scroll horizontal ────────────── */
  .profile-selector-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0.6rem 0.75rem;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .profile-selector-bar::-webkit-scrollbar {
    display: none;
  }

  .profile-btn {
    flex-shrink: 0;
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    white-space: nowrap;
  }

  /* ── BLOCOS (experiência, formação, etc) ─────────────── */
  .block-item {
    padding: 1.1rem;
    border-radius: 8px;
  }

  .block-header {
    margin-bottom: 1rem;
  }

  /* ── TOOLTIP: aparece embaixo no mobile ──────────────── */
  .tooltip-bubble {
    left: 0;
    top: calc(100% + 8px);
    transform: none;
    width: min(260px, 80vw);
  }

  .tooltip-bubble::before {
    left: 12px;
    top: -5px;
    transform: none;
    border: 5px solid transparent;
    border-bottom-color: var(--border);
    border-top: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
  }

  /* ── EXP TABS: scroll horizontal ────────────────────── */
  .exp-type-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
  }

  .exp-type-tabs::-webkit-scrollbar {
    display: none;
  }

  .exp-tab {
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 0.55rem 0.9rem;
    white-space: nowrap;
  }

  /* ── BOTÕES PREV/NEXT: full width ────────────────────── */
  .form-nav {
    margin-top: 2rem;
    padding-top: 1.5rem;
    gap: 0.75rem;
  }

  .btn-prev,
  .btn-next {
    flex: 1;
    justify-content: center;
    padding: 0.875rem 1rem;
    font-size: 0.65rem;
    border-radius: 6px;
  }

  /* ── STEP 7: ESCOLHER MODELO ─────────────────────────── */
  .final-section {
    padding: 1.5rem 0;
  }

  .final-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .final-title {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
  }

  .final-desc {
    font-size: 0.85rem;
    max-width: 100%;
    margin-bottom: 2rem;
  }

  .models-chooser {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
  }

  .model-preview-area {
    max-height: 130px;
  }

  /* Overlay sempre visível no mobile (sem hover) */
  .model-hover-overlay {
    opacity: 0; /* mantém oculto, tap vai direto pro link */
  }

  .model-option-info {
    padding: 0.6rem 0.75rem 0.75rem;
  }

  .model-option-name {
    font-size: 0.78rem;
  }

  .model-option-desc {
    display: none; /* oculta descrição, só nome + badge + tags */
  }

  .model-option-tags {
    display: none;
  }
}

/* ── Step indicator: oculto no desktop ── */
.mobile-step-indicator {
  display: none;
}

@media (max-width: 768px) {
  .mobile-step-indicator {
    display: flex;
  }
}

/* ── CORREÇÃO OVERFLOW MOBILE ── */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
  }

  * {
    box-sizing: border-box;
  }

  .form-nav-bar,
  .progress-bar,
  .mobile-step-indicator,
  .form-layout,
  .form-area {
    width: 100%;
    max-width: 100vw;
  }

  /* Step indicator: contido, sem overflow da página */
  .mobile-step-indicator {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Impede que o scroll interno vire scroll da página */
    overscroll-behavior-x: contain;
    padding: 0.75rem 1rem;
    gap: 0.25rem;
  }

  .mobile-step-indicator::-webkit-scrollbar {
    display: none;
  }

  /* Dots menores para caber melhor */
  .msi-dot {
    width: 26px;
    height: 26px;
    font-size: 0.5rem;
    flex-shrink: 0;
  }

  .msi-dot.active {
    width: 30px;
    height: 30px;
  }

  /* Linhas conectoras menores */
  .msi-line {
    width: 10px;
    flex-shrink: 0;
  }

  /* Garantir que form-area não extrapole */
  .form-area {
    overflow-x: hidden;
    padding: 1.5rem 1rem 6rem;
  }

  /* Profile selector contido */
  .profile-selector-bar {
    max-width: 100%;
    overflow-x: auto;
  }

  /* Campos não extrapolam */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="url"],
  textarea,
  select {
    max-width: 100%;
    width: 100%;
  }
}

/* ── Step 7: Ver modelos ─────────────────────────────────── */
.models-chooser {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1rem !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  margin-bottom: 2rem;
}

.model-option {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.model-preview-area {
  aspect-ratio: 3/4;
  max-height: none !important;
  overflow: hidden;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.model-preview-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.model-option-info {
  padding: 0.75rem;
  flex: 1;
}

.model-option-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.model-option-name {
  font-family: "Playfair Display", serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(240, 243, 248, 0.88);
}

/* ── Período widget — redesign ───────────────────────────── */
.periodo-widget {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.periodo-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.periodo-group-label {
  font-family: "DM Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(240, 243, 248, 0.35);
}

.periodo-selects {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.periodo-sel {
  flex: 1;
  min-width: 80px;
  font-size: 0.88rem !important;
  padding: 0.6rem 0.75rem !important;
}

/* Toggle "Atual" — visual de toggle, não checkbox solta */
.periodo-atual-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.periodo-atual-toggle input[type="checkbox"] {
  display: none; /* esconde o checkbox nativo */
}

.periodo-toggle-track {
  width: 36px;
  height: 20px;
  border-radius: 20px;
  background: rgba(240, 243, 248, 0.1);
  border: 1px solid var(--border);
  position: relative;
  transition:
    background 0.2s,
    border-color 0.2s;
  flex-shrink: 0;
}

.periodo-toggle-track::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(240, 243, 248, 0.4);
  top: 2px;
  left: 2px;
  transition:
    transform 0.2s,
    background 0.2s;
}

.periodo-atual-toggle input:checked + .periodo-toggle-track {
  background: var(--accent);
  border-color: var(--accent);
}

.periodo-atual-toggle input:checked + .periodo-toggle-track::after {
  transform: translateX(16px);
  background: white;
}

.periodo-toggle-label {
  font-family: "DM Sans", sans-serif;
  font-size: 0.82rem;
  color: rgba(240, 243, 248, 0.55);
  transition: color 0.2s;
}

.periodo-atual-toggle input:checked ~ .periodo-toggle-label {
  color: var(--gold);
}

@media (max-width: 768px) {
  .models-chooser {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.65rem !important;
  }

  .model-option-name {
    font-size: 0.78rem;
  }
  .model-option-desc {
    display: none;
  }
  .model-option-tags {
    display: none;
  }

  .final-section {
    padding: 1rem 0 2rem;
    text-align: center;
  }
  .final-title {
    font-size: 1.6rem;
  }
  .final-desc {
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
  }

  .periodo-sel {
    font-size: 0.85rem !important;
    padding: 0.65rem 0.5rem !important;
  }
}
/* ══════════════════════════════════════════════════════════
   MODAL DE SELEÇÃO DE PERFIL
══════════════════════════════════════════════════════════ */

/* Botão trigger (substitui os profile-btn antigos) */
#profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(42, 109, 217, 0.1);
  border: 1px solid rgba(42, 109, 217, 0.3);
  color: var(--gold);
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  -webkit-tap-highlight-color: transparent;
}
#profile-trigger:hover {
  background: rgba(42, 109, 217, 0.18);
  border-color: rgba(42, 109, 217, 0.55);
}
#profile-trigger svg {
  opacity: 0.6;
  flex-shrink: 0;
}

/* Overlay */
.profile-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  backdrop-filter: blur(4px);
}
.profile-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* Box */
.profile-modal-box {
  background: #0e1118;
  border: 1px solid rgba(42, 109, 217, 0.2);
  border-radius: 12px;
  width: min(680px, 100%);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
  transform: translateY(12px);
  transition: transform 0.25s;
}
.profile-modal-overlay.open .profile-modal-box {
  transform: translateY(0);
}

/* Header */
.profile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.profile-modal-title {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(240, 243, 248, 0.92);
}
.profile-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(240, 243, 248, 0.5);
  transition: all 0.2s;
  flex-shrink: 0;
}
.profile-modal-close:hover {
  border-color: rgba(240, 243, 248, 0.3);
  color: rgba(240, 243, 248, 0.9);
}
.profile-modal-sub {
  padding: 0.75rem 1.5rem 0;
  font-size: 0.82rem;
  color: rgba(240, 243, 248, 0.4);
  font-weight: 300;
  line-height: 1.5;
  flex-shrink: 0;
}

/* Body com scroll */
.profile-modal-body {
  overflow-y: auto;
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Categoria */
.profile-cat-label {
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(240, 243, 248, 0.3);
  margin-bottom: 0.65rem;
}

/* Grid de cards */
.profile-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.5rem;
}

/* Card de perfil */
.profile-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.profile-card:hover {
  background: rgba(42, 109, 217, 0.08);
  border-color: rgba(42, 109, 217, 0.35);
}
.profile-card.active {
  background: rgba(42, 109, 217, 0.15);
  border-color: rgba(42, 109, 217, 0.6);
}
.profile-card-icon {
  font-size: 1.5rem;
  line-height: 1;
}
.profile-card-label {
  font-family: "DM Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(240, 243, 248, 0.75);
  line-height: 1.3;
}
.profile-card.active .profile-card-label {
  color: var(--gold);
}

/* Mobile */
@media (max-width: 768px) {
  .profile-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .profile-modal-box {
    width: 100%;
    max-height: 80dvh;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
    transform: translateY(100%);
  }
  .profile-modal-overlay.open .profile-modal-box {
    transform: translateY(0);
  }
  .profile-modal-header {
    padding: 1rem 1.25rem;
  }
  .profile-modal-header::before {
    content: "";
    display: block;
    width: 36px;
    height: 4px;
    background: rgba(240, 243, 248, 0.15);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
  }
  .profile-modal-body {
    padding: 0.75rem 1rem 2rem;
    gap: 1.25rem;
  }
  .profile-cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 0.4rem;
  }
  .profile-card {
    padding: 0.75rem 0.5rem;
  }
  .profile-card-icon {
    font-size: 1.25rem;
  }
  .profile-card-label {
    font-size: 0.7rem;
  }

  #profile-trigger {
    font-size: 0.8rem;
    padding: 0.45rem 0.85rem;
  }
}
/* ═══════════════════════════════════════════════════════════════
   ADIÇÕES AO form-curriculo.css
   Cole este bloco inteiro no final do arquivo form-curriculo.css
   Variáveis herdadas do styles.css:
     --ink: #0d0f14  --paper: #f0f3f8  --accent: #2a6dd9
     --muted: #8b96a8  --border: rgba(240,243,248,0.14)
     --card-bg: rgba(240,243,248,0.05)  --gold: #7aaef5
   ═══════════════════════════════════════════════════════════════ */

/* ── SUGGEST-BOX ─────────────────────────────────────────────
   O .field já existe no form-curriculo.css; garantimos apenas
   position:relative para o dropdown ficar ancorado nele.       */

.field {
  position: relative;
}

.suggest-box {
  position: absolute;
  top: calc(100% + 3px);
  left: 0;
  right: 0;
  background: #13161e;
  border: 1px solid rgba(42, 109, 217, 0.25);
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  z-index: 200;
  display: none;
  overflow: hidden;
  max-height: 210px;
  overflow-y: auto;
}

.suggest-box::-webkit-scrollbar {
  width: 4px;
}
.suggest-box::-webkit-scrollbar-track {
  background: transparent;
}
.suggest-box::-webkit-scrollbar-thumb {
  background: rgba(240, 243, 248, 0.12);
  border-radius: 2px;
}

.suggest-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid rgba(240, 243, 248, 0.05);
  padding: 0.6rem 1rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(240, 243, 248, 0.78);
  cursor: pointer;
  transition: background 0.12s;
}

.suggest-item:last-child {
  border-bottom: none;
}

.suggest-item:hover,
.suggest-item:focus {
  background: rgba(42, 109, 217, 0.1);
  color: var(--paper);
  outline: none;
}

/* ── TAGS COM NÍVEL ──────────────────────────────────────────  */

.tag {
  display: inline-flex;
  align-items: stretch;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin: 3px 3px 3px 0;
  vertical-align: middle;
  transition: border-color 0.15s;
}

.tag:hover {
  border-color: rgba(42, 109, 217, 0.3);
}

.tag-text {
  padding: 0.3rem 0.6rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(240, 243, 248, 0.82);
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.tag-level {
  display: inline-flex;
  align-items: center;
  padding: 0 0.5rem;
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  border-left: 1px solid rgba(240, 243, 248, 0.08);
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
  white-space: nowrap;
  line-height: 1;
}

.tag-level:hover {
  filter: brightness(1.25);
}

.tag-level-básico {
  background: rgba(42, 109, 217, 0.12);
  color: var(--gold);
}

.tag-level-intermediário {
  background: rgba(234, 179, 8, 0.12);
  color: #fbbf24;
}

.tag-level-avançado {
  background: rgba(34, 197, 94, 0.12);
  color: #6ee7a0;
}

/* Expert — dourado/âmbar vibrante */
.tag-level-expert {
  background: rgba(122, 174, 245, 0.15);
  color: var(--gold);
  font-weight: 700;
}

.tag-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.45rem;
  background: transparent;
  border: none;
  border-left: 1px solid rgba(240, 243, 248, 0.08);
  color: rgba(240, 243, 248, 0.3);
  cursor: pointer;
  font-size: 0.85rem;
  line-height: 1;
  transition:
    background 0.15s,
    color 0.15s;
}

.tag-remove:hover {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
}

/* ── HINTS DAS HABILIDADES ───────────────────────────────────  */

#hint-hardskills,
#hint-softskills {
  display: block;
  margin-top: 0.45rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.5;
}

/* ── PERÍODO TOGGLE LABEL ────────────────────────────────────  */

.periodo-toggle-label {
  font-family: "DM Sans", sans-serif;
  font-size: 0.83rem;
  font-weight: 400;
  color: rgba(240, 243, 248, 0.75);
}
