.form-group {
  margin-bottom: 1.2rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

input[type="file"],
input[type="email"] {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #c4c4c4;
  border-radius: var(--radius);
  background-color: rgba(255, 255, 255, 0.9);
  transition: border-color 0.3s, background-color 0.3s;
}

input[type="file"]:focus,
input[type="email"]:focus {
  outline: none;
  border: 2px solid;
  border-color: var(--primary-color);
  background-color: white;
}


input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #c4c4c4;
  border-radius: var(--radius);
  background-color: rgba(255, 255, 255, 0.9);
  transition: border-color 0.3s, background-color 0.3s;
}

input[type="text"]:focus {
  outline: none;
  border: 2px solid;
  border-color: var(--primary-color);
  background-color: white;
}

textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #c4c4c4;
  border-radius: var(--radius);
  background-color: rgba(255, 255, 255, 0.9);
  resize: vertical;
  transition: border-color 0.3s, background-color 0.3s;
}

textarea:focus {
  outline: none;
  border: 2px solid;
  border-color: var(--primary-color);
  background-color: white;
}

.drop-zone {
  border: 2px dashed #f49a0c;
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
  margin-top: 10px;
  background-color: white; 
}

.drop-zone.dragover {
  border-color: var(--dropbox-hover);
  background-color: #f2f4f7; 
}

.drop-zone:hover {
      border-color: var(--dropbox-hover);
      background: #f2f4f7;
}

.file-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.file-badge {
  background: #fffbf5;
  border: 1px solid #c4c4c4;
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  cursor: default;
}

.file-badge button {
  background: none;
  border: none;
  font-size: 1rem;
  color: #888;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.file-badge button:hover {
  color: #000;
}

.hidden {
  display: none;
}


.btn {
  width: 100%;
  padding: 0.875rem;
  font-size: 1rem;
  background-color: var(--primary-color);
  background: linear-gradient(to right, var(--gradient-1), var(--gradient-2));
  color: white;
  border: none;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background-color 0.3s, transform 0.2s;
  margin-bottom: 0.625rem;
}

.btn:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.email-link {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s, text-shadow 0.3s;
}

.email-link:hover {
  color: var(--primary-color);
  text-shadow: 0 0 5px var(--primary-color);
}

.error-message {
  color: red;
  margin-top: 5px;
  font-size: 14px;
}

.validation-message {
  font-size: 1rem;
  line-height: 1.2;
  margin: 0.25rem 0 0.3rem 0;
  padding: 0;
}


.hidden {
  display: none;
}

input[type="file"] {
  color: #333; /* Dark text color for better visibility */
}

.pdf-buttons-container {
  display: flex;
  gap: 0.625rem; /* Matches existing margin-bottom spacing */
  width: 100%;
}

.pdf-buttons-container .btn {
  flex: 1; /* Equal width buttons */
  margin-bottom: 0.625rem; /* Maintain existing margin */
  width: auto; /* Override previous 100% width */
}

.pdf-buttons-container.hidden {
  display: none;
}

.pdf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Responsivo */
  gap: 1rem; /* Espaçamento entre os itens */
  margin-top: 2rem;
}

.navigation-links {
  display: flex;
  justify-content: flex-end; /* Alinha os links à direita */
  gap: 1rem; /* Espaçamento entre os links */
  margin-top: 1rem;
}

.nav-link {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.3s, text-shadow 0.3s;
}

.nav-link:hover {
  color: var(--primary-hover);
  text-shadow: 0 0 5px var(--primary-hover);
}

.nav-link:active {
  color: var(--primary-color);
  text-shadow: none;
}

.pdf-list-container {
  padding: 2rem;
}

.pdf-list-container h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

#pdf-list {
  list-style: none;
  padding: 0;
}

#pdf-list li {
  padding: 0.5rem;
  border: 1px solid #ccc;
  margin-bottom: 0.5rem;
  border-radius: 5px;
  background-color: #f9f9f9;
}


.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* Semi-transparent dark backdrop */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.progress-container {
  width: 100%;
  background: #eee;
  border-radius: 5px;
  height: 8px;
  margin: 15px 0;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: #ff9800;
   transition: width 0.5s ease;
}

/* NEW VERTICAL STEPS */
.steps {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  margin-top: 20px;
}
.step-container {
  display: flex;
  align-items: center;
  gap: 10px;
}
.step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  border: 2px solid #ccc; /* Gray border by default */
  background: white;
  color: transparent;
  transition: all 0.3s ease;
}
.step-circle.completed {
  border: 2px solid #ff9800;
  background: #ff9800;
  color: white;
}
.step-circle.active {
  border: none;
  background: none;
}
.step-label {
  font-size: 0.9rem;
  color: #333;
}
/* Spinner SVG */
.spinner {
  animation: rotate 2s linear infinite;
  width: 20px;
  height: 20px;
}
.spinner .path {
  stroke: #ff9800;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}
@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}
@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}