form#integrationForm {
  padding-top: 1.8rem;
  padding-bottom: 3.8rem;
}

.form-section {
  margin-bottom: 26px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-section h2 {
  margin-top: 0;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
  color: #333;
  font-size: 20px;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.form-row.no-wrap {
  flex-wrap: nowrap;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.wth25 {
  width: calc(25% - 11px);
}

.wth50 {
  width: calc(50% - 8px);
}

.wth75 {
  width: calc(75% - 4px);
}

.wth100 {
  width: 100%;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 10px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

.form-group textarea {
  min-height: 110px;
}

.form-group.has-error label {
  color: #b91c1c;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea,
input.error,
select.error,
textarea.error {
  border-color: #dc2626 !important;
  background-color: #fef2f2;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12) !important;
}

.checkbox-label {
  display: block;
  margin: 8px 0;
  cursor: pointer;
}

.checkbox-label input {
  margin-right: 8px;
}

.checkbox-label.has-error {
  color: #b91c1c;
  font-weight: 600;
  background: rgba(220, 38, 38, 0.08);
  padding: 6px 8px;
  border-radius: 6px;
}

.checkbox-label input.error {
  outline: 2px solid #dc2626;
  outline-offset: 2px;
}

.contato-item {
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  position: relative;
}

.contato-header {
  position: absolute;
  top: 6px;
  right: 6px;
}

.btn-remover-contato {
  background-color: #e74c3c;
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
}

.btn {
  border: none;
  padding: 9px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
}

.btn-primary {
  background-color: #0073aa;
  color: #fff;
}

.btn-primary[disabled] {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
}

.btn-secondary {
  background-color: #6c757d;
  color: #fff;
}

#adicionarContato {
  background-color: #fff;
  color: #004aa0;
  border: 1px solid #004aa0;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.error {
  border-color: #e74c3c !important;
}

.error-message {
  color: #e74c3c;
  font-size: 12px;
  display: block;
  margin-top: 5px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  max-width: 550px;
  width: 90%;
  text-align: center;
}

.modal-content ul {
  text-align: left;
  margin: 15px 0;
  max-height: 200px;
  overflow-y: auto;
  padding-left: 20px;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-top: 5px solid #0073aa;
  border-radius: 50%;
  animation: cfz-spin 1s linear infinite;
  margin-bottom: 14px;
}

@keyframes cfz-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.loading-overlay p {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.btn-down-pdf {
  font-weight: 600;
  margin-bottom: 2rem;
  margin-top: 1rem;
  color: #004aa0;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 4px;
  border: solid #004aa0 1px;
  display: inline-block;
}

.btn-down-pdf:hover {
  background: #004aa0;
  color: #fff;
}

@media (max-width: 900px) {
  .form-row.no-wrap {
    flex-wrap: wrap;
  }

  .wth25,
  .wth50,
  .wth75 {
    width: 100%;
  }

  .form-actions {
    gap: 10px;
    flex-direction: column;
  }
}
