body {
  font-family: Arial, sans-serif;
}

.form-field.col-1 {
  width: calc(100% / 12 * 1);
}

.form-field.col-2 {
  width: calc(100% / 12 * 2);
}

.form-field.col-3 {
  width: calc(100% / 12 * 3);
}

.form-field.col-4 {
  width: calc(100% / 12 * 4);
}

.form-field.col-5 {
  width: calc(100% / 12 * 5);
}

.form-field.col-6 {
  width: calc(100% / 12 * 6);
}

.form-field.col-7 {
  width: calc(100% / 12 * 7);
}

.form-field.col-8 {
  width: calc(100% / 12 * 8);
}

.form-field.col-9 {
  width: calc(100% / 12 * 9);
}

.form-field.col-10 {
  width: calc(100% / 12 * 10);
}

.form-field.col-11 {
  width: calc(100% / 12 * 11);
}

.form-field.col-12 {
  width: calc(100% / 12 * 12);
}

.form-field.max-width {
  flex-grow: 1;
  width: auto;
}
.form-field.fit-content {
  width: auto;
}

.btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, opacity 0.3s ease;
}
.btn-outline {
  background: none;
  border: 2px solid #4a90e2;
  color: #4a90e2;
}
.btn-outline:hover {
  background-color: #4a90e2;
  color: white;
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.lexey-expediente-form .btn-primary {
  background: linear-gradient(120deg, var(--color-primary), var(--color-secondary));
  border: none;
  color: white;
  transition: all 0.3s ease;
}
.lexey-expediente-form .btn-primary:hover {
  background: linear-gradient(120deg, var(--color-secondary), var(--color-primary));
}

.lexey-form-container {
  max-width: 800px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.5rem 1rem;
  width: 100%;
}

.form-field {
  padding: 0 0.5rem;
  margin-bottom: 1rem;
  width: 100%;
}
.form-field label {
  text-align: left;
  padding-left: 10px;
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #333;
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  height: 50px;
  line-height: 1.5;
  padding: 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(69, 58, 148, 0.2);
}
.form-field textarea {
  height: auto;
  min-height: 100px;
  resize: vertical;
}

.required-asterisk {
  color: red;
  margin-left: 4px;
}

.error-message {
  padding-left: 10px;
  color: #ff4136;
  font-size: 0.85em;
  margin-top: 5px;
  display: flex;
}

.progress-bar {
  height: 6px;
  background: #e0e0e0;
  margin-bottom: 2rem;
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-inner {
  height: 100%;
  background: linear-gradient(120deg, var(--color-primary), var(--color-secondary));
  transition: width 0.5s ease-in-out;
}

.file-upload-container {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex-wrap: nowrap;
  overflow: hidden;
  gap: 10px;
  padding-bottom: 10px;
  margin-top: 1rem;
  scrollbar-width: thin;
  scrollbar-color: #4a90e2 #f0f0f0;
}

.file-upload-button {
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  background-color: #4a90e2;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  flex: 0 0 auto;
  width: 200px;
  height: 50px;
  white-space: nowrap;
  text-align: center;
}
.file-upload-button:hover {
  background-color: #3a7bc8;
}

.file-list {
  display: flex;
  overflow-x: auto;
  flex: 1;
  white-space: nowrap;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  gap: 10px;
  max-width: calc(100% - 210px);
  scrollbar-width: thin;
  scrollbar-color: #4a90e2 #e0e0e0;
}
.file-list::-webkit-scrollbar {
  height: 6px;
}
.file-list::-webkit-scrollbar-track {
  background: #f1f1f1;
}
.file-list::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}
.file-list::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.file-item {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0.5rem;
  background-color: #f0f0f0;
  border-radius: 4px;
  margin-right: 0.5rem;
  width: 300px;
  min-width: 300px;
  height: 50px;
}

.file-name {
  font-size: 0.9rem;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 120px;
}

.file-actions {
  display: flex;
  align-items: center;
}

.file-action-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  margin-left: 0.25rem;
  color: #4a90e2;
  transition: color 0.3s ease;
}
.file-action-button:hover {
  color: #3a7bc8;
}

.lexey-expediente-form-container {
  max-width: 1100px;
  margin: 2rem auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.form-card {
  padding: 2rem;
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-title {
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.form-description {
  font-size: 1rem;
  color: #666;
}

.form-step {
  display: none;
  transition: opacity 0.5s ease-in-out;
}
.form-step.active {
  display: block;
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 9999;
}
#loading-overlay p {
  color: white;
  margin-top: 10px;
}

.loading-spinner {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
@media (max-width: 768px) {
  .form-card {
    padding: 1.5rem;
  }
  .form-field {
    width: 100% !important;
  }
  .form-navigation {
    flex-direction: column;
  }
  .form-navigation button {
    width: 100%;
    margin-bottom: 1rem;
  }
}