#calc-rescisao-widget { 
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
  max-width: 900px; 
  margin: 20px auto; 
  color: #444;
  position: relative;
}

#calc-rescisao-widget .cr-card { 
  background: #ffffff; 
  border-radius: 8px; 
  padding: 30px; 
  box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
  border: 1px solid #eee; 
}

/* RESULTADO ESTILIZADO */
#calc-rescisao-widget .cr-resultado { 
  margin-bottom: 30px; 
  padding-bottom: 20px;
  display: none; 
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

#calc-rescisao-widget .cr-result-title {
  font-size: 28px;
  color: #777;
  margin-bottom: 20px;
  font-weight: 500;
  margin-top: 0;
}

#calc-rescisao-widget .cr-tabela { 
  width: 100%; 
  border-collapse: collapse; 
  margin-bottom: 20px; 
}

#calc-rescisao-widget .cr-tabela th, 
#calc-rescisao-widget .cr-tabela td { 
  padding: 12px 15px; 
  text-align: left; 
  border-bottom: 1px solid #f0f0f0;
}

#calc-rescisao-widget .cr-tabela thead th {
  background: #fff;
  color: #888;
  font-weight: 600;
  border-bottom: 2px solid #f0f0f0;
}

#calc-rescisao-widget .cr-tabela td {
  color: #666;
}

#calc-rescisao-widget .cr-tabela td:last-child, 
#calc-rescisao-widget .cr-tabela th:last-child {
  text-align: right;
}

#calc-rescisao-widget .cr-total-row th {
  font-size: 18px;
  color: #555;
  padding-top: 20px;
  border-bottom: none;
}

#calc-rescisao-widget .cr-details-container {
  background: #f8f9fa;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 25px;
}

#calc-rescisao-widget .cr-details summary {
  cursor: pointer;
  padding: 15px;
  font-weight: 500;
  color: #666;
  list-style: none;
  display: flex;
  align-items: center;
}

#calc-rescisao-widget .cr-details summary::-webkit-details-marker {
  display: none;
}

#calc-rescisao-widget .cr-details summary::before {
  content: "▼";
  font-size: 12px;
  margin-right: 10px;
  transition: transform 0.2s;
}

#calc-rescisao-widget .cr-details[open] summary::before {
  transform: rotate(0deg);
}

#calc-rescisao-widget .cr-details:not([open]) summary::before {
  transform: rotate(-90deg);
}

#calc-rescisao-widget #cr-detalhes-texto {
  padding: 0 15px 15px 15px;
  color: #777;
  line-height: 1.6;
  font-size: 15px;
}

#calc-rescisao-widget #cr-detalhes-texto p {
  margin: 8px 0;
}

/* BOTÕES */
#calc-rescisao-widget .cr-btn, 
#calc-rescisao-widget .cr-btn-secondary { 
  padding: 15px; 
  border: none; 
  border-radius: 6px; 
  font-size: 16px; 
  font-weight: 600; 
  cursor: pointer; 
  width: 100%;
  transition: all 0.3s;
  text-align: center;
}

#calc-rescisao-widget .cr-btn { 
  background: #2563eb; 
  color: #fff; 
}

#calc-rescisao-widget .cr-btn:hover { 
  background: #1d4ed8; 
}

#calc-rescisao-widget .cr-btn-secondary {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #d1d5db;
  margin-top: 10px;
}

#calc-rescisao-widget .cr-btn-secondary:hover {
  background: #e5e7eb;
  color: #1f2937;
}

/* FORMULÁRIO */
#calc-rescisao-widget h2 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #333;
  margin-top: 0;
}

#calc-rescisao-widget .cr-disclaimer {
  color: #888;
  font-size: 14px;
  margin-bottom: 25px;
}

#calc-rescisao-widget .cr-grid { 
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
  gap: 20px; 
  margin-bottom: 25px; 
}

#calc-rescisao-widget .cr-field { 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
}

#calc-rescisao-widget label { 
  font-size: 14px; 
  font-weight: 600; 
  color: #555; 
}

#calc-rescisao-widget input, 
#calc-rescisao-widget select { 
  border-radius: 6px; 
  border: 1px solid #ddd; 
  padding: 10px 12px; 
  font-size: 15px; 
  color: #444;
  background: #fff;
}

#calc-rescisao-widget .cr-loading {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-right: 10px;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
