body {
  font-family: 'Inter', sans-serif;
  background: #f4f6f8;
  margin: 0;
}

/* CONTAINER */
.cv-builder {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  padding: 20px 30px 30px;
  max-width: 1200px;
  margin: 0 auto;
}

/* FORM */
.form {
  width: 350px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.form button {
  width: 100%;
  margin-bottom: 10px;
  padding: 14px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.form button:hover {
  background: #0056b3;
}

/* =========================
   🔥 BLOCOS (FORM)
========================= */

.experiencia-item,
.formacao-item {
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 10px;
  background: #fafafa;
}

/* CAMPOS DUPLOS */
.linha-dupla {
  display: flex;
  gap: 10px;
}

.linha-dupla input {
  flex: 1;
}

/* LABEL DATA */
.campo-data {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.campo-data label {
  font-size: 12px;
  margin-bottom: 3px;
  color: #555;
}

/* =========================
   🔥 CV
========================= */

.cv {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);

  /* 🔥 leitura equilibrada */
  line-height: 1.35;
}

/* TEXTOS */
.cv p {
  white-space: pre-line;
  word-break: break-word;
  margin: 3px 0;
  line-height: 1.35;
}

/* TÍTULOS */
.cv h1 {
  margin-bottom: 5px;
}

.cv h2 {
  margin-top: 16px;
  font-size: 14px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 4px;
}

/* =========================
   🔥 EXPERIÊNCIA (OUTPUT)
========================= */

.exp-item {
  margin-bottom: 10px;
}

.exp-empresa {
  font-weight: 600;
  margin-bottom: 2px;
}

 .exp-cargo {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 3px;
  }

.exp-periodo {
  font-size: 12px;
  color: #666;
  margin-bottom: 3px;
  line-height: 1.2;
}

/* =========================
   🔥 FORMAÇÃO (OUTPUT)
========================= */

.formacao-item-preview {
  margin-bottom: 10px;
}

.formacao-periodo {
  font-size: 12px;
  color: #666;
  margin-bottom: 3px;
  line-height: 1.2;
}

/* =========================
   RESPONSIVO
========================= */

@media (max-width: 900px) {
  .cv-builder {
    flex-direction: column;
  }

  .form {
    width: 100%;
  }
}

/* =========================
   🔥 PRINT (PDF PERFEITO)
========================= */

@media print {

  @page {
    margin: 15mm;
  }

  body {
    margin: 0;
    background: white;
    font-family: 'Inter', Arial, sans-serif;
  }

  /* 🔥 ESCONDE TUDO */
  body * {
    visibility: hidden;
  }

  /* 🔥 MOSTRA SÓ O CURRÍCULO */
  .cv, .cv * {
    visibility: visible;
  }

  /* 🔥 GARANTE POSIÇÃO NO TOPO */
  .cv {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;

    margin: 0;
    padding: 0;

    box-shadow: none;
    border-radius: 0;
  }

  /* TEXTOS */
  .cv p {
    margin: 2px 0;
    line-height: 1.3;
  }

  /* 🔥 BLOQUEIA CORTE DE CONTEÚDO */
  .exp-item,
  .formacao-item-preview {
    margin-bottom: 8px;
    page-break-inside: avoid;
    break-inside: avoid;
  }

  /* 🔥 EVITA TÍTULO FICAR SOZINHO */
  h1, h2, h3 {
    page-break-after: avoid;
  }

  h2 {
    margin-top: 12px;
  }


 
}