/* Modal de download e estados do formulário */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgb(0 0 0 / 0.72);
}

.modal-overlay.is-open {
  display: flex;
}

.modal-card {
  position: relative;
  width: min(100%, 32rem);
  border-radius: 1.5rem;
  background: var(--secondary);
  color: var(--secondary-foreground);
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.35);
}

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: inline-flex;
  height: 2.25rem;
  width: 2.25rem;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0.7;
}

.modal-close:hover {
  opacity: 1;
  background: rgb(255 255 255 / 0.08);
}

.modal-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  padding-right: 2rem;
}

.modal-card p {
  margin-top: 0.4rem;
  opacity: 0.72;
}

.download-actions {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.35rem;
}

.download-btn {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  border-radius: 1rem;
  padding: 0.95rem 1.1rem;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.download-btn:hover {
  transform: translateY(-2px);
}

.download-btn svg {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
}

.download-btn small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.78;
}

.download-android {
  background: #3ddc84;
  color: #052e16;
}

.download-windows {
  background: #0078d4;
  color: #fff;
}

.form-feedback {
  display: none;
  margin-top: 1rem;
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
}

.form-feedback.is-visible {
  display: block;
}

.form-feedback.success {
  background: #dcfce7;
  color: #166534;
}

.form-feedback.error {
  background: #fee2e2;
  color: #991b1b;
}

body.modal-open {
  overflow: hidden;
}
