
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px; 
}


.aneca-responde-section {
  margin: 30px 0 20px;
  padding-bottom: 20px;
  padding-left: 20px; 
  border-bottom: 1px solid #e5e5e5;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}

.aneca-logo-container {
  margin-bottom: 15px;
}

.aneca-responde-logo {
  height: 50px;
}

.aneca-description {
  color: #333;
  font-size: 16px;
  line-height: 1.5;
  max-width: 980px;
  margin: 0;
}


.forms-container {
  display: flex;
  border: none;
  border-radius: 0;
  overflow: visible;
  position: relative;
  margin: 30px auto;
  max-width: 1140px;
  gap: 30px;
  padding-left: 20px; 
}


.forms-tabs {
  width: 330px;
  background-color: transparent;
  border-right: none;
  margin-right: 30px;
  display: flex;
  flex-direction: column;
  padding: 0;
  position: sticky;
  top: 20px;
  align-self: flex-start;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.tab-button {
  text-decoration:none;
  text-align: left;
  padding: 15px;
  margin-bottom: 10px; 
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  transition: all 0.2s;
  border-radius: 8px;
  background: #FFF;
  box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.10), 0px 6px 12px 0px rgba(0, 0, 0, 0.05);

}

.tab-button:hover {
  background-color: #f0f0f0;
}

.tab-button.active {
  background-color: #00747c;
  color: white;
  border-left: 3px solid #005c62;
  font-weight: 600;
}


.forms-content {
  flex: 1;
  background: #ffffff;
  min-height: 500px;
  padding: 0;
}

.forms-empty {
  display: block;
  padding: 24px;
  color: #555;
  font-size: 16px;
  background: #f7f7f7;
  border: 1px dashed #d0d0d0;
  border-radius: 6px;
}

.form-panel {
  display: none;
}

.form-panel.active {
  display: block;
}

.form-panel h2 {
  color: #007b7f;
  margin-top: 0;
  margin-bottom: 25px;
  font-weight: normal;
  font-size: 24px;
  display: none; 
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}


.form-group {
  margin-bottom: 0px; 
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  color: #444;
  font-size: 14px;
}


.required label:after {
  content: " *";
  color: #00747c;
}

.form input, 
.form select, 
.form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  transition: border 0.2s;
  box-sizing: border-box;
}

.form input:focus, 
.form select:focus, 
.form textarea:focus {
  outline: none;
  border-color: #00747c;
  box-shadow: 0 0 0 2px rgba(0, 116, 124, 0.2);
}


.form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 12px;
  padding-right: 36px;
}

.form textarea {
  min-height: 120px;
}


.info-text {
  font-size: 0.9em;
  color: #666;
  margin-top: 8px;
  line-height: 1.4;
}

.info-text a {
  color: #00747c;
  text-decoration: none;
}

.info-text a:hover {
  text-decoration: underline;
}

.form button {
  padding: 12px 24px;
  background-color: #00747c;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 15px;
  align-self: flex-start;
  font-weight: 600;
  font-size: 14px;
  transition: background-color 0.2s;
}

.form button:hover {
  background-color: #006366;
}

.form button.secondary-button {
  background-color: #f0f0f0;
  color: #333;
  border: 1px solid #ccc;
  padding: 8px 16px;
  font-size: 13px;
}


.confirm-message {
  margin-top: 15px;
  padding: 12px 15px;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  color: #155724;
  font-size: 14px;
}

.error-message {
  margin-top: 15px;
  padding: 12px 15px;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  color: #721c24;
  font-size: 14px;
}

.error {
  color: #dc3545;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

input.is-invalid, 
select.is-invalid, 
textarea.is-invalid {
  border-color: #dc3545;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}

input.is-valid, 
select.is-valid, 
textarea.is-valid {
  border-color: #28a745;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
}


input[type="file"] {
  padding: 8px;
  background-color: #f9f9f9;
}

#rb-participants-list {
  margin-bottom: 10px;
}

#rb-participants-list input {
  margin-bottom: 8px;
}


#rb-image {
  border-radius: 6px;
  border: 1px solid #ddd;
}

.form-input{
  border-radius: 10px !important;
  border: 1px solid #848484 !important;
}

/* Loading spinner styles */
.form-loading {
  display: none;
}

.form-loading.active {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  padding: 12px 15px;
  background-color: #e7f3ff;
  border: 1px solid #b3d9ff;
  border-radius: 6px;
  color: #0066cc;
  font-size: 14px;
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #b3d9ff;
  border-top: 2px solid #0066cc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Incidencia info box */
.incidencia-info-box {
  background-color: #f8f9fa;
  border-left: 4px solid #0066cc;
  padding: 16px;
  border-radius: 4px;
  margin-bottom: 16px;
}

.incidencia-info-box p:first-child {
  margin-top: 0;
  margin-bottom: 12px;
  font-weight: 600;
}

.incidencia-info-box p {
  margin-bottom: 12px;
  line-height: 1.6;
}

.incidencia-info-box ul {
  margin-bottom: 12px;
  padding-left: 20px;
  line-height: 1.6;
}

.incidencia-info-box li {
  margin-bottom: 8px;
}

.incidencia-info-box li strong {
  color: #333;
}

.incidencia-info-box p:last-child {
  margin-bottom: 0;
  font-size: 0.9em;
  color: #555;
}

